var zP=Object.defineProperty,HP=Object.defineProperties,VP=Object.getOwnPropertyDescriptors,qM=Object.getOwnPropertySymbols,jP=Object.prototype.hasOwnProperty,GP=Object.prototype.propertyIsEnumerable,W3=Math.pow,oS=(St,oe,S)=>oe in St?zP(St,oe,{enumerable:!0,configurable:!0,writable:!0,value:S}):St[oe]=S,aS=(St,oe)=>{for(var S in oe||(oe={}))jP.call(oe,S)&&oS(St,S,oe[S]);if(qM)for(var S of qM(oe))GP.call(oe,S)&&oS(St,S,oe[S]);return St},lS=(St,oe)=>HP(St,VP(oe)),jb=(St,oe,S)=>(oS(St,"symbol"!=typeof oe?oe+"":oe,S),S),cS=(St,oe,S)=>{if(!oe.has(St))throw TypeError("Cannot "+S)},ar=(St,oe,S)=>(cS(St,oe,"read from private field"),S?S.call(St):oe.get(St)),Qo=(St,oe,S)=>{if(oe.has(St))throw TypeError("Cannot add the same private member more than once");oe instanceof WeakSet?oe.add(St):oe.set(St,S)},qa=(St,oe,S,a)=>(cS(St,oe,"write to private field"),a?a.call(St,S):oe.set(St,S),S),Hl=(St,oe,S)=>(cS(St,oe,"access private method"),S);(self.webpackChunkjsa_showcase_website=self.webpackChunkjsa_showcase_website||[]).push([[179],{801:(St,oe,S)=>{"use strict";S.d(oe,{xiG:()=>xn,BDt:()=>jt,eW2:()=>Wr,Uu6:()=>Zr,I4f:()=>Ie,l1h:()=>Be,kZ_:()=>hs,Ozh:()=>_s,egO:()=>Ga,q7m:()=>_n,co4:()=>Ef,aj4:()=>v1,UJf:()=>Tg,KtF:()=>Og,wf8:()=>Bg,XSV:()=>m2,r6l:()=>b2,wn1:()=>Kf,vsP:()=>Oo,N7g:()=>Jg,sq$:()=>tv,Tab:()=>T1,d8e:()=>mv,I7k:()=>Bp,X7o:()=>N2,yXf:()=>d0,_Ob:()=>J4});var xn={prefix:"fas",iconName:"bars",icon:[448,512,[],"f0c9","M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"]},jt={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"]},Wr={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"]},Zr={prefix:"fas",iconName:"caret-left",icon:[192,512,[],"f0d9","M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"]},Ie={prefix:"fas",iconName:"caret-right",icon:[192,512,[],"f0da","M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"]},Be={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"]},hs={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"]},_s={prefix:"fas",iconName:"credit-card",icon:[576,512,[],"f09d","M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"]},Ga={prefix:"fas",iconName:"dollar-sign",icon:[288,512,[],"f155","M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"]},_n={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"]},Ef={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"]},v1={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"]},Tg={prefix:"fas",iconName:"pencil-alt",icon:[512,512,[],"f303","M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"]},Og={prefix:"fas",iconName:"plus-circle",icon:[512,512,[],"f055","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]},Bg={prefix:"fas",iconName:"print",icon:[512,512,[],"f02f","M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]},m2={prefix:"fas",iconName:"redo",icon:[512,512,[],"f01e","M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"]},b2={prefix:"fas",iconName:"save",icon:[448,512,[],"f0c7","M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"]},Kf={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"]},Oo={prefix:"fas",iconName:"search-minus",icon:[512,512,[],"f010","M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"]},Jg={prefix:"fas",iconName:"search-plus",icon:[512,512,[],"f00e","M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"]},tv={prefix:"fas",iconName:"shopping-cart",icon:[576,512,[],"f07a","M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"]},T1={prefix:"fas",iconName:"star",icon:[576,512,[],"f005","M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]},mv={prefix:"fas",iconName:"sync-alt",icon:[512,512,[],"f2f1","M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"]},Bp={prefix:"fas",iconName:"trash-alt",icon:[448,512,[],"f2ed","M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]},N2={prefix:"fas",iconName:"undo",icon:[512,512,[],"f0e2","M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"]},d0={prefix:"fas",iconName:"user-edit",icon:[640,512,[],"f4ff","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 48h274.9c-2.4-6.8-3.4-14-2.6-21.3l6.8-60.9 1.2-11.1 7.9-7.9 77.3-77.3c-24.5-27.7-60-45.5-99.9-45.5zm45.3 145.3l-6.8 61c-1.1 10.2 7.5 18.8 17.6 17.6l60.9-6.8 137.9-137.9-71.7-71.7-137.9 137.8zM633 268.9L595.1 231c-9.3-9.3-24.5-9.3-33.8 0l-37.8 37.8-4.1 4.1 71.8 71.7 41.8-41.8c9.3-9.4 9.3-24.5 0-33.9z"]},J4={prefix:"fas",iconName:"window-close",icon:[512,512,[],"f410","M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"]}},7155:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,setLoginRedirectPage:()=>N,setAccount:()=>ze,logout:()=>p,login:()=>K,loginCustomer:()=>r,createResetPasswordCode:()=>O,createResetPasswordCodeSuccess:()=>P,createResetPasswordCodeFail:()=>H,resetPassword:()=>E,resetPasswordSuccess:()=>ee,resetPasswordFail:()=>x,getAccounts:()=>U,getAccountsSuccess:()=>le,getAccountsFail:()=>xe,getAccount:()=>re,getAccountSuccess:()=>ce,getAccountFail:()=>L,registerEmployee:()=>J,registerEmployeeSuccess:()=>we,registerEmployeeFail:()=>ge,updateAccount:()=>fe,updateAccountSuccess:()=>Ce,updateAccountFail:()=>e,deleteAccount:()=>z,deleteAccountSuccess:()=>je,deleteAccountFail:()=>rt,getClaims:()=>it,getClaimsSuccess:()=>ct,getClaimsFail:()=>g,addClaimToAccount:()=>qe,addClaimToAccountSuccess:()=>Ve,addClaimToAccountFail:()=>He,deleteClaim:()=>X,deleteClaimSuccess:()=>Le,deleteClaimFail:()=>Te});var a=S(5620);const C=(0,a.PH)("[Account] ClearStoreFlags"),N=(0,a.PH)("[App] Set Login Redirect Page",(0,a.Ky)()),ze=(0,a.PH)("[Account] Set Account",(0,a.Ky)()),p=(0,a.PH)("[Account] Logout"),K=(0,a.PH)("[Account] Login",(0,a.Ky)()),r=(0,a.PH)("[Account] Login Customer",(0,a.Ky)()),O=(0,a.PH)("[Account] Create Reset Password Code",(0,a.Ky)()),P=(0,a.PH)("[Account] Create Reset Password Code Success",(0,a.Ky)()),H=(0,a.PH)("[Account] Create Reset Password Code Fail"),E=(0,a.PH)("[Account] Reset Password",(0,a.Ky)()),ee=(0,a.PH)("[Account] Reset Password Success",(0,a.Ky)()),x=(0,a.PH)("[Account] Reset Password Fail",(0,a.Ky)()),U=(0,a.PH)("[Account] Get Accounts",(0,a.Ky)()),le=(0,a.PH)("[Account] Get Accounts Success",(0,a.Ky)()),xe=(0,a.PH)("[Account] Get Accounts Fail",(0,a.Ky)()),re=(0,a.PH)("[Account] Get Account",(0,a.Ky)()),ce=(0,a.PH)("[Account] Get Account Success",(0,a.Ky)()),L=(0,a.PH)("[Account] Get Account Fail",(0,a.Ky)()),J=(0,a.PH)("[Account] register Employee",(0,a.Ky)()),we=(0,a.PH)("[Account] register Employee Success",(0,a.Ky)()),ge=(0,a.PH)("[Account] register Employee Fail",(0,a.Ky)()),fe=(0,a.PH)("[Account] Update Account",(0,a.Ky)()),Ce=(0,a.PH)("[Account] Update Account Success",(0,a.Ky)()),e=(0,a.PH)("[Account] Update Account Fail",(0,a.Ky)()),z=(0,a.PH)("[Account] delete Account",(0,a.Ky)()),je=(0,a.PH)("[Account] delete Account Success",(0,a.Ky)()),rt=(0,a.PH)("[Account] delete Account Fail",(0,a.Ky)()),it=(0,a.PH)("[Claim] Get Claims",(0,a.Ky)()),ct=(0,a.PH)("[Claim] Get Claims Success",(0,a.Ky)()),g=(0,a.PH)("[Claim] Get Claims Fail",(0,a.Ky)()),qe=(0,a.PH)("[Claim] save Claim",(0,a.Ky)()),Ve=(0,a.PH)("[Claim] save Claim Success",(0,a.Ky)()),He=(0,a.PH)("[Claim] save Claim Fail",(0,a.Ky)()),X=(0,a.PH)("[Claim] delete Claim",(0,a.Ky)()),Le=(0,a.PH)("[Claim] delete Claim Success",(0,a.Ky)()),Te=(0,a.PH)("[Claim] delete Claim Fail",(0,a.Ky)())},1095:(St,oe,S)=>{"use strict";S.d(oe,{rs:()=>N});var a=S(5620),C=S(7155);const N="account";(0,a.Lq)({resetPasswordCodeCreated:void 0,passwordResetError:void 0,passwordReset:void 0,accountsResponse:void 0,account:void 0,accountSaved:void 0,accountDeleted:void 0,accountRegistered:void 0,claimsResponse:void 0,claimSaved:void 0,claimDeleted:void 0},(0,a.on)(C.clearStoreFlags,r=>Object.assign(Object.assign({},r),{resetPasswordCodeCreated:void 0,passwordResetError:void 0,passwordReset:void 0,accountsResponse:void 0,account:void 0,accountSaved:void 0,accountDeleted:void 0,accountRegistered:void 0,claimsResponse:void 0,claimSaved:void 0,claimDeleted:void 0})),(0,a.on)(C.setAccount,(r,{model:O})=>Object.assign(Object.assign({},r),{account:O})),(0,a.on)(C.createResetPasswordCode,r=>Object.assign(Object.assign({},r),{resetPasswordCodeCreated:void 0})),(0,a.on)(C.createResetPasswordCodeSuccess,(r,{success:O})=>Object.assign(Object.assign({},r),{resetPasswordCodeCreated:O})),(0,a.on)(C.createResetPasswordCodeFail,r=>Object.assign(Object.assign({},r),{resetPasswordCodeCreated:!1})),(0,a.on)(C.resetPasswordFail,(r,{error:O})=>Object.assign(Object.assign({},r),{passwordResetError:O})),(0,a.on)(C.resetPasswordSuccess,(r,{success:O})=>Object.assign(Object.assign({},r),{passwordReset:O})),(0,a.on)(C.getAccounts,r=>Object.assign(Object.assign({},r),{accountsResponse:void 0})),(0,a.on)(C.getAccountsSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{accountsResponse:O})),(0,a.on)(C.getAccountsFail,r=>Object.assign(Object.assign({},r),{accountsResponse:void 0})),(0,a.on)(C.getAccount,r=>Object.assign(Object.assign({},r),{account:void 0})),(0,a.on)(C.getAccountSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{account:O.firstItem})),(0,a.on)(C.getAccountFail,r=>Object.assign(Object.assign({},r),{account:void 0})),(0,a.on)(C.updateAccount,r=>Object.assign(Object.assign({},r),{accountSaved:void 0})),(0,a.on)(C.updateAccountSuccess,(r,{})=>Object.assign(Object.assign({},r),{accountSaved:!0})),(0,a.on)(C.updateAccountFail,r=>Object.assign(Object.assign({},r),{accountSaved:!1})),(0,a.on)(C.registerEmployee,r=>Object.assign(Object.assign({},r),{accountRegistered:void 0})),(0,a.on)(C.registerEmployeeSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{accountRegistered:O.firstItem.value})),(0,a.on)(C.registerEmployeeFail,r=>Object.assign(Object.assign({},r),{accountRegistered:void 0})),(0,a.on)(C.deleteAccount,r=>Object.assign(Object.assign({},r),{account:void 0,accountDeleted:void 0})),(0,a.on)(C.deleteAccountSuccess,(r,{})=>Object.assign(Object.assign({},r),{accountDeleted:!0})),(0,a.on)(C.deleteAccountFail,r=>Object.assign(Object.assign({},r),{account:void 0,accountDeleted:void 0})),(0,a.on)(C.getClaims,r=>Object.assign(Object.assign({},r),{claimsResponse:void 0})),(0,a.on)(C.getClaimsSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{claimsResponse:O})),(0,a.on)(C.getClaimsFail,r=>Object.assign(Object.assign({},r),{claimsResponse:void 0})),(0,a.on)(C.addClaimToAccount,r=>Object.assign(Object.assign({},r),{claimSaved:void 0})),(0,a.on)(C.addClaimToAccountSuccess,(r,{})=>Object.assign(Object.assign({},r),{claimSaved:!0})),(0,a.on)(C.addClaimToAccountFail,r=>Object.assign(Object.assign({},r),{claimSaved:void 0})),(0,a.on)(C.deleteClaim,r=>Object.assign(Object.assign({},r),{claimDeleted:void 0})),(0,a.on)(C.deleteClaimSuccess,(r,{})=>Object.assign(Object.assign({},r),{claimDeleted:!0})),(0,a.on)(C.deleteClaimFail,r=>Object.assign(Object.assign({},r),{claimDeleted:void 0})))},2997:(St,oe,S)=>{"use strict";var a=S(5620),C=S(1095);const N=(0,a.ZF)(C.rs);(0,a.P1)(N,le=>le.resetPasswordCodeCreated),(0,a.P1)(N,le=>le.passwordResetError),(0,a.P1)(N,le=>le.passwordReset),(0,a.P1)(N,le=>le.accountsResponse),(0,a.P1)(N,le=>le.account),(0,a.P1)(N,le=>le.accountSaved),(0,a.P1)(N,le=>le.accountDeleted),(0,a.P1)(N,le=>le.accountRegistered),(0,a.P1)(N,le=>le.claimsResponse),(0,a.P1)(N,le=>le.claimSaved),(0,a.P1)(N,le=>le.claimDeleted)},9963:(St,oe,S)=>{"use strict";S.d(oe,{K:()=>P});var a=S(655);class N{}var K=S(520),r=S(5e3),O=S(2908);let P=(()=>{class E{constructor(x){this.apiHelperService=x,this.suppressErrorHandler=!1}getItemAsync(x=null,U=null,le=null,xe=!0,re=!0){return(0,a.mG)(this,void 0,void 0,function*(){const ce=this.apiHelperService.setupApiCall(this.apiEndpointType,xe,x,U,le,null,re);return ce?this.apiHelperService.callApi(ce):new Promise((L,J)=>J("Could not set up API Call!"))})}getAllItemsAsync(x=null,U=null,le=!0,xe=!0){return(0,a.mG)(this,void 0,void 0,function*(){const re=this.apiHelperService.setupApiCall(this.apiEndpointType,le,null,x,U,null,xe);return re?this.apiHelperService.callApi(re):new Promise((ce,L)=>L("Could not set up API Call!"))})}getItemsAsync(x=null,U=null,le=null,xe=!0,re=!0){return(0,a.mG)(this,void 0,void 0,function*(){if(le||(le=new K.LE),x){if(x.orderBy){var ce="";x.orderBy.forEach(J=>{ce.length>0&&(ce+=", "),J.dir||(J.dir="asc"),ce+=J.field+" "+J.dir}),le=le.set("orderBy",ce)}x.searchTerm&&(le=le.set("searchTerm",x.searchTerm)),le=(le=(le=le.set("partialMatches",x.partialMatches.toString())).set("page",x.page.toString())).set("pageSize",x.pageSize.toString()),x.dateFrom&&(le=le.set("dateFrom",x.dateFrom.toISOString())),x.dateTo&&(le=le.set("dateTo",x.dateTo.toISOString()))}else le=le.set("pageSize","-1");const L=this.apiHelperService.setupApiCall(this.apiEndpointType,xe,null,U,le,null,re);return L?this.apiHelperService.callApi(L):new Promise((J,we)=>we("Could not set up API Call!"))})}saveItemAsync(x,U=null,le=!0,xe=!0){return(0,a.mG)(this,void 0,void 0,function*(){const re=this.apiHelperService.setupApiCall(this.apiEndpointType,le,x.id,U,null,null,xe);return re?(re.data=JSON.stringify(x),re.verb=x.id?"put":"post",this.apiHelperService.callApi(re)):new Promise((ce,L)=>ce(new N))})}deleteItemAsync(x,U=null,le=!0,xe=!0){return(0,a.mG)(this,void 0,void 0,function*(){const re=this.apiHelperService.setupApiCall(this.apiEndpointType,le,x,U,null,null,xe);return re?(re.verb="delete",this.apiHelperService.callApi(re)):new Promise((ce,L)=>L("Could not set up API Call!"))})}getRequestAsync(x=null,U=null,le=!0,xe=!0){return(0,a.mG)(this,void 0,void 0,function*(){const re=this.apiHelperService.setupApiCall(this.apiEndpointType,le,null,x,U,null,xe);return re?this.apiHelperService.callApi(re):new Promise((ce,L)=>L("Could not set up API Call!"))})}postRequestAsync(x,U=null,le=null,xe=!0,re=!0){return(0,a.mG)(this,void 0,void 0,function*(){const ce=this.apiHelperService.setupApiCall(this.apiEndpointType,xe,null,U,null,null,re);return ce?(x&&(ce.data=JSON.stringify(x)),ce.verb="post",this.apiHelperService.callApi(ce)):new Promise((L,J)=>J("Could not set up API Call!"))})}putRequestAsync(x,U=null,le=null,xe=!0,re=!0){return(0,a.mG)(this,void 0,void 0,function*(){const ce=this.apiHelperService.setupApiCall(this.apiEndpointType,xe,null,U,null,null,re);return ce?(x&&(ce.data=JSON.stringify(x)),ce.verb="put",this.apiHelperService.callApi(ce)):new Promise((L,J)=>J("Could not set up API Call!"))})}deleteRequestAsync(x=null,U=null,le=!0,xe=!0){return(0,a.mG)(this,void 0,void 0,function*(){const re=this.apiHelperService.setupApiCall(this.apiEndpointType,le,null,x,null,null,xe);return re?(re.verb="delete",this.apiHelperService.callApi(re)):new Promise((ce,L)=>L("Could not set up API Call!"))})}}return E.\u0275fac=function(x){return new(x||E)(r.LFG(O.Q))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},6043:(St,oe,S)=>{"use strict";S.d(oe,{RW:()=>r,nR:()=>O});var a=S(7579),C=S(2722),N=S(5618),ze=S(5e3),p=S(5620),r=(()=>{return(P=r||(r={}))[P.LOGIN=0]="LOGIN",P[P.LOGGING=1]="LOGGING",P[P.CUSTOMER=2]="CUSTOMER",P[P.ACCOUNT=3]="ACCOUNT",P[P.APPSETTINGSTORE_APPSETTINGCATEGORY=4]="APPSETTINGSTORE_APPSETTINGCATEGORY",P[P.APPSETTINGSTORE_APPSETTINGKEY=5]="APPSETTINGSTORE_APPSETTINGKEY",P[P.APPSETTINGSTORE_APPSETTING=6]="APPSETTINGSTORE_APPSETTING",P[P.COMMERCE_RECEIVEDSHIPMENT=7]="COMMERCE_RECEIVEDSHIPMENT",P[P.COMMERCE_SHIPMENT=8]="COMMERCE_SHIPMENT",P[P.COMMERCE_PRODUCT=9]="COMMERCE_PRODUCT",P[P.COMMERCE_PRODUCTCATEGORY=10]="COMMERCE_PRODUCTCATEGORY",P[P.COMMERCE_ORDER=11]="COMMERCE_ORDER",P[P.COMMERCE_ORDERITEM=12]="COMMERCE_ORDERITEM",P[P.COMMERCE_CART=13]="COMMERCE_CART",P[P.COMMERCE_CARTITEM=14]="COMMERCE_CARTITEM",P[P.ORGANIZATION=15]="ORGANIZATION",P[P.ORGANIZATION_LOCATION=16]="ORGANIZATION_LOCATION",P[P.BUSINESSSERVICES_SUBMISSIONITEM=17]="BUSINESSSERVICES_SUBMISSIONITEM",P[P.BUSINESSSERVICES_SUBMISSIONITEMTYPE=18]="BUSINESSSERVICES_SUBMISSIONITEMTYPE",P[P.BUSINESSSERVICES_EVENT=19]="BUSINESSSERVICES_EVENT",P[P.BUSINESSSERVICES_DEALER=20]="BUSINESSSERVICES_DEALER",P[P.BUSINESSSERVICES_LOGO=21]="BUSINESSSERVICES_LOGO",P[P.BUSINESSSERVICES_BLOG=22]="BUSINESSSERVICES_BLOG",P[P.BUSINESSSERVICES_BLOG_AUTHOR=23]="BUSINESSSERVICES_BLOG_AUTHOR",P[P.BUSINESSSERVICES_CERTIFICATE=24]="BUSINESSSERVICES_CERTIFICATE",P[P.BUSINESSSERVICES_CERTIFICATE_FAILUREREASON=25]="BUSINESSSERVICES_CERTIFICATE_FAILUREREASON",P[P.BUSINESSSERVICES_CERTIFICATE_OBSERVATION=26]="BUSINESSSERVICES_CERTIFICATE_OBSERVATION",P[P.BUSINESSSERVICES_OBSERVATION=27]="BUSINESSSERVICES_OBSERVATION",P[P.BUSINESSSERVICES_FAILUREREASON=28]="BUSINESSSERVICES_FAILUREREASON",P[P.BUSINESSSERVICES_FIRSTLOOK=29]="BUSINESSSERVICES_FIRSTLOOK",P[P.BUSINESSSERVICES_SIGNER=30]="BUSINESSSERVICES_SIGNER",P[P.BUSINESSSERVICES_SIGNABLEITEM=31]="BUSINESSSERVICES_SIGNABLEITEM",P[P.BUSINESSSERVICES_SIGNINGCATEGORY=32]="BUSINESSSERVICES_SIGNINGCATEGORY",P[P.BUSINESSSERVICES_LETTERPARAGRAPH=33]="BUSINESSSERVICES_LETTERPARAGRAPH",P[P.BUSINESSSERVICES_LETTERSIGNER=34]="BUSINESSSERVICES_LETTERSIGNER",P[P.COMMUNICATION=35]="COMMUNICATION",P[P.COMMUNICATION_EMAIL=36]="COMMUNICATION_EMAIL",P[P.COMMUNICATION_EMAILMASTERTEMPLATES=37]="COMMUNICATION_EMAILMASTERTEMPLATES",P[P.COMMUNICATION_EMAILDELIVERYHISTORY=38]="COMMUNICATION_EMAILDELIVERYHISTORY",P[P.COMMUNICATION_EMAILTEMPLATES=39]="COMMUNICATION_EMAILTEMPLATES",P[P.COMMUNICATION_EMAILTEMPLATECATEGORIES=40]="COMMUNICATION_EMAILTEMPLATECATEGORIES",P[P.FILE_MANAGEMENT=41]="FILE_MANAGEMENT",P[P.PAYMENT_TRANSACTION=42]="PAYMENT_TRANSACTION",P[P.PAYMENT_CREDITVOUCHER=43]="PAYMENT_CREDITVOUCHER",P[P.PAYMENT_MERCHANT=44]="PAYMENT_MERCHANT",P[P.PAYMENT_PAYMENTPROFILE=45]="PAYMENT_PAYMENTPROFILE",P[P.PAYMENT_PROCESSING=46]="PAYMENT_PROCESSING",P[P.PAYMENT_PROCESSOR=47]="PAYMENT_PROCESSOR",r;var P})();let O=(()=>{class P{constructor(E){this.appStore=E,this.ngDestroyed$=new a.x,this.storeSubscriptions()}storeSubscriptions(){this.appStore.select(N.GR).pipe((0,C.R)(this.ngDestroyed$)).subscribe(E=>{!E||(this.environment=E)})}ngOnDestroy(){this.ngDestroyed$.next(!0),this.ngDestroyed$.unsubscribe()}get apiEndpoints(){return this._apiEndpoints||this.buildApiEndpoints(this.environment),this._apiEndpoints}buildApiEndpoints(E){this._apiEndpoints=[{apiEndpointType:r.LOGIN,name:"Login",url:E.identityUrl},{apiEndpointType:r.COMMUNICATION,name:"Communication",url:"/communication"},{apiEndpointType:r.COMMUNICATION_EMAIL,name:"Communication-Email",url:"/communication/emails"},{apiEndpointType:r.COMMUNICATION_EMAILMASTERTEMPLATES,name:"Communication-EmailMasterTemplates",url:"/communication/emailmastertemplates"},{apiEndpointType:r.COMMUNICATION_EMAILDELIVERYHISTORY,name:"Communication-EmailDeliveryHistory",url:"/communication/emaildeliveryhistory"},{apiEndpointType:r.COMMUNICATION_EMAILTEMPLATES,name:"Communication-EmailTemplates",url:"/communication/emailtemplates"},{apiEndpointType:r.COMMUNICATION_EMAILTEMPLATECATEGORIES,name:"Communication-EmailTemplateCategories",url:"/communication/emailtemplatecategories"},{apiEndpointType:r.FILE_MANAGEMENT,name:"FileManagement",url:"/files"},{apiEndpointType:r.LOGGING,name:"Logging",url:"/logging"},{apiEndpointType:r.ACCOUNT,name:"Account",url:"/accounts"},{apiEndpointType:r.CUSTOMER,name:"Customer",url:"/customers"},{apiEndpointType:r.APPSETTINGSTORE_APPSETTINGCATEGORY,name:"AppSettingCategories",url:E.appSettingStoreUrl+"/appsettingcategories"},{apiEndpointType:r.APPSETTINGSTORE_APPSETTINGKEY,name:"AppSettingKeys",url:E.appSettingStoreUrl+"/appsettingkeys"},{apiEndpointType:r.APPSETTINGSTORE_APPSETTING,name:"AppSettings",url:E.appSettingStoreUrl+"/appsettings"},{apiEndpointType:r.COMMERCE_RECEIVEDSHIPMENT,name:"Commerce-ReceivedShipments",url:"/commerce/receivedshipments"},{apiEndpointType:r.COMMERCE_SHIPMENT,name:"Commerce-Shipments",url:"/commerce/shipments"},{apiEndpointType:r.COMMERCE_PRODUCT,name:"Commerce-Products",url:"/commerce/products"},{apiEndpointType:r.COMMERCE_PRODUCTCATEGORY,name:"Commerce-ProductCategories",url:"/commerce/productcategories"},{apiEndpointType:r.COMMERCE_ORDER,name:"Commerce-Orders",url:"/commerce/orders"},{apiEndpointType:r.COMMERCE_ORDERITEM,name:"Commerce-Orderitems",url:"/commerce/orderitems"},{apiEndpointType:r.COMMERCE_CART,name:"Commerce-Cart",url:"/commerce/carts"},{apiEndpointType:r.COMMERCE_CARTITEM,name:"Commerce-CartItem",url:"/commerce/cartitems"},{apiEndpointType:r.ORGANIZATION,name:"Organizations",url:"/organizations"},{apiEndpointType:r.ORGANIZATION_LOCATION,name:"Organizations-Locations",url:"/locations"},{apiEndpointType:r.BUSINESSSERVICES_EVENT,name:"Events",url:"/businessservices/events"},{apiEndpointType:r.BUSINESSSERVICES_DEALER,name:"Dealers",url:"/businessservices/dealers"},{apiEndpointType:r.BUSINESSSERVICES_LOGO,name:"Logos",url:"/businessservices/logos"},{apiEndpointType:r.BUSINESSSERVICES_BLOG,name:"Blogs",url:"/businessservices/blogs"},{apiEndpointType:r.BUSINESSSERVICES_BLOG_AUTHOR,name:"Blog Authors",url:"/businessservices/blogauthors"},{apiEndpointType:r.BUSINESSSERVICES_CERTIFICATE,name:"Certificates",url:"/businessservices/certificates"},{apiEndpointType:r.BUSINESSSERVICES_CERTIFICATE_FAILUREREASON,name:"Certificates",url:"/businessservices/certificates"},{apiEndpointType:r.BUSINESSSERVICES_CERTIFICATE_OBSERVATION,name:"Certificates",url:"/businessservices/certificates"},{apiEndpointType:r.BUSINESSSERVICES_OBSERVATION,name:"Certificates",url:"/businessservices/observations"},{apiEndpointType:r.BUSINESSSERVICES_FIRSTLOOK,name:"FirstLooks",url:"/businessservices/firstlooks"},{apiEndpointType:r.BUSINESSSERVICES_FAILUREREASON,name:"Certificates",url:"/businessservices/failurereasons"},{apiEndpointType:r.BUSINESSSERVICES_LETTERPARAGRAPH,name:"Letter Paragraphs",url:"/businessservices/letterparagraphs"},{apiEndpointType:r.BUSINESSSERVICES_LETTERSIGNER,name:"Letter Signers",url:"/businessservices/lettersigners"},{apiEndpointType:r.BUSINESSSERVICES_SIGNER,name:"Signers",url:"/businessservices/signers"},{apiEndpointType:r.BUSINESSSERVICES_SIGNABLEITEM,name:"Signable Items",url:"/businessservices/signableitems"},{apiEndpointType:r.BUSINESSSERVICES_SIGNINGCATEGORY,name:"Signing Category",url:"/businessservices/signingcategories"},{apiEndpointType:r.PAYMENT_TRANSACTION,name:"Payment-Transactions",url:"/payments/transactions"},{apiEndpointType:r.PAYMENT_CREDITVOUCHER,name:"Payment-Credit Voucher",url:"/payments/creditvouchers"},{apiEndpointType:r.PAYMENT_MERCHANT,name:"Payment-Merchants",url:"/payments/merchants"},{apiEndpointType:r.PAYMENT_PAYMENTPROFILE,name:"Payment-Payment Profile",url:"/payments/paymentprofiles"},{apiEndpointType:r.PAYMENT_PROCESSING,name:"Payment-Processing",url:"/payments/processing"},{apiEndpointType:r.PAYMENT_PROCESSOR,name:"Payment-Processor",url:"/payments/processors"}]}}return P.\u0275fac=function(E){return new(E||P)(ze.LFG(p.yh))},P.\u0275prov=ze.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})()},2908:(St,oe,S)=>{"use strict";S.d(oe,{Q:()=>ee});var a=S(520),C=S(2722),N=S(3099),ze=S(5618),p=S(6805);function K(x,U){const le="object"==typeof U;return new Promise((xe,re)=>{let L,ce=!1;x.subscribe({next:J=>{L=J,ce=!0},error:re,complete:()=>{ce?xe(L):le?xe(U.defaultValue):re(new p.K)}})})}var r=S(7579),O=S(5e3),P=S(6043),H=S(5620);class E{constructor(){this.verb="get",this.contentType="application/json",this.suppressErrorHandler=!1,this.showspinner=!0}}let ee=(()=>{class x{constructor(le,xe,re){this.http=le,this.apiEndpointsService=xe,this.appStore=re,this.ngDestroyed$=new r.x,this.storeSubscriptions()}ngOnDestroy(){this.ngDestroyed$.next(!0),this.ngDestroyed$.unsubscribe()}storeSubscriptions(){this.appStore.select(ze.GR).pipe((0,C.R)(this.ngDestroyed$)).subscribe(le=>{!le||(this.environment=le)})}setupApiCall(le,xe,re=null,ce=null,L=null,J=!1,we=!0){const ge=new E;ge.params=new a.LE;var fe=this.apiEndpointsService.apiEndpoints.find(Ce=>Ce.apiEndpointType==le);return ge.endpoint=JSON.parse(JSON.stringify(fe)),ge.data="",ge.verb="get",ge.endpoint.requiresAuthentication=xe,ge.showspinner=we,ge.endpoint.url.startsWith("http")||(ge.endpoint.url=this.environment.apiUrl+ge.endpoint.url),ge.suppressErrorHandler=J,ce&&(ge.endpoint.url+=ce),re&&!ge.endpoint.url.endsWith(re)&&(ge.endpoint.url+="/"+re),L&&(ge.params=L),ge}callApi(le){this.buildApiHeaderOptions(le);let xe=this.buildApiBodyString(le);switch(le.verb){case"get":return K(this.http.get(le.endpoint.url,{observe:"body",params:le.params,headers:le.headers,reportProgress:le.showspinner}).pipe((0,N.B)()));case"post":return K(this.http.post(le.endpoint.url,xe,{observe:"body",params:le.params,headers:le.headers,reportProgress:le.showspinner}));case"put":return K(this.http.put(le.endpoint.url,xe,{observe:"body",params:le.params,headers:le.headers,reportProgress:le.showspinner}));case"delete":return K(this.http.delete(le.endpoint.url,{observe:"body",params:le.params,headers:le.headers,reportProgress:le.showspinner}));default:return new Promise((re,ce)=>ce("Invalid Verb"))}}buildApiHeaderOptions(le){le.headers||(le.headers=new a.WM),le.contentType&&(le.headers=le.headers.set("Content-Type",le.contentType)),le.endpoint.requiresAuthentication&&(le.headers=le.headers.set("Requires-Auth",le.endpoint.requiresAuthentication.toString()))}buildApiBodyString(le){let xe="";return("post"==le.verb||"put"==le.verb)&&(xe=le.contentType?le.data:JSON.stringify(le.data)),xe}}return x.\u0275fac=function(le){return new(le||x)(O.LFG(a.eN),O.LFG(P.nR),O.LFG(H.yh))},x.\u0275prov=O.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},6767:(St,oe,S)=>{"use strict";S.d(oe,{a:()=>ge});var a=S(520),C=S(2843),N=S(8505),ze=S(262),p=S(2759),K=S(7559),r=S(5e3),O=S(5620),P=S(2290),H=S(384);let E=(()=>{class fe{constructor(e,z,je){this.authStore=e,this.toastr=z,this.router=je}intercept(e,z){return z.handle(e).pipe((0,N.b)(je=>je),(0,ze.K)(je=>this.handleError(je)))}handleError(e){var z,je=new p.c;switch(je.httpStatusCode=e.status.toString(),je.suppressErrorHandler=!1,e.status){case 0:je.message="It looks like there is an error contacting the server. Please try again later or contact support if the problem continues.";break;case 400:return(null===(z=e.url)||void 0===z?void 0:z.includes("connect/token"))?(je.message=e.error.error_description,(0,C._)(je)):(e.error.errors?e.error.errors.forEach(it=>{this.showErrorToast(it)}):(je.message=e.error.message,this.showErrorToast(e.error.message)),(0,C._)(je));case 401:je.message="A resource that the system is trying to access requires you to be authenicated. Please log in and try again.",this.authStore.dispatch(K.Us({loginRedirectPage:"/login"})),this.router.navigate([this.environment.loginPage]);break;case 403:je.message="You are not authorized for this transaction.";break;case 404:je.message="The page you are looking for could not be found.";break;case 500:je.message="There was a server error - please contact support.";break;default:je.errorCode="999",je.message=e.statusText?e.statusText:"Unknown Error - please contact support for more help."}return this.toastr.error(je.message,"Problem With Your Request",{disableTimeOut:!0,closeButton:!0}),je.suppressErrorHandler=!0,(0,C._)(je)}showErrorToast(e,z){this.toastr.error(e,z,{disableTimeOut:!0,closeButton:!0})}}return fe.\u0275fac=function(e){return new(e||fe)(r.LFG(O.yh),r.LFG(P._W),r.LFG(H.F0))},fe.\u0275prov=r.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var ee=S(3654),x=S(6751),U=S(7579),le=S(5618),xe=S(2722),re=S(1224);let ce=(()=>{class fe{constructor(e,z,je,rt){this.authStore=e,this.authHelperService=z,this.appStore=je,this.router=rt,this.ngDestroyed$=new U.x,this.storeSubscription()}ngOnDestroy(){this.ngDestroyed$.next(!0),this.ngDestroyed$.unsubscribe()}storeSubscription(){this.appStore.select(le.GR).pipe((0,xe.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.environment=e)})}intercept(e,z){if(this.authHelperService.isAuthenticated()){const je=this.authHelperService.getCurrentUser();e=e.clone({headers:e.headers.set("Authorization","Bearer "+(null==je?void 0:je.bearerToken))})}return e=(e=e.clone({params:e.params.append("applicationId",this.environment.applicationId)})).clone({params:e.params.append("organizationId",this.environment.organizationId)}),z.handle(e)}}return fe.\u0275fac=function(e){return new(e||fe)(r.LFG(O.yh),r.LFG(re.K),r.LFG(O.yh),r.LFG(H.F0))},fe.\u0275prov=r.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();var L=S(8746),J=S(7846);let we=(()=>{class fe{constructor(e){this.appStore=e,this.requestCounter=0}intercept(e,z){return e.reportProgress&&this.startSpinner(),z.handle(e).pipe((0,L.x)(()=>{e.reportProgress&&this.endSpinner()}))}startSpinner(){this.requestCounter=Math.max(this.requestCounter,0)+1,this.setAppBusyFlag()}endSpinner(){this.requestCounter=Math.max(this.requestCounter,1)-1,this.setAppBusyFlag()}setAppBusyFlag(){this.appStore.dispatch(J.setAppBusy({appBusy:1===this.requestCounter}))}}return fe.\u0275fac=function(e){return new(e||fe)(r.LFG(O.yh))},fe.\u0275prov=r.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),ge=(()=>{class fe{}return fe.\u0275fac=function(e){return new(e||fe)},fe.\u0275mod=r.oAB({type:fe}),fe.\u0275inj=r.cJS({providers:[{provide:a.TP,useClass:E,multi:!0,deps:[ee.q,P._W,O.yh,H.F0]},{provide:a.TP,useClass:ce,multi:!0},{provide:a.TP,useClass:we,multi:!0,deps:[O.yh]}],imports:[[a.JF,x.t]]}),fe})()},3587:(St,oe,S)=>{"use strict";S.d(oe,{a:()=>ze});var a=S(5e3),C=S(384),N=S(1224);let ze=(()=>{class p{constructor(r,O){this.router=r,this.authenticationHelperService=O}canActivate(r,O){return!!this.authenticationHelperService.isAuthenticated()||(this.router.navigate(["/login"],{queryParams:{returnUrl:O.url}}),!1)}}return p.\u0275fac=function(r){return new(r||p)(a.LFG(C.F0),a.LFG(N.K))},p.\u0275prov=a.Yz7({token:p,factory:p.\u0275fac}),p})()},1224:(St,oe,S)=>{"use strict";S.d(oe,{K:()=>p});var a=S(7579),C=S(7559),N=S(5e3),ze=S(5620);let p=(()=>{class K{constructor(O){this.authStore=O,this.ngDestroyed$=new a.x}ngOnDestroy(){this.ngDestroyed$.next(!0),this.ngDestroyed$.unsubscribe()}isAuthenticated(){return!this.tokenExpired()}isAuthenticatedCustomer(){return!!this.getCustomerId()&&this.isAuthenticated()}tokenExpired(){const O=this.getCurrentUser();return!(O&&O.bearerTokenExpiration&&(new Date(O.bearerTokenExpiration).getTime()>(new Date).getTime()||(this.authStore.dispatch(C.kS()),0)))}setCurrentUser(O){O?localStorage.setItem("currentUser",JSON.stringify(O)):localStorage.removeItem("currentUser")}getCurrentUser(){var O=localStorage.getItem("currentUser");if(O)return JSON.parse(O)}setLastUserName(O){O?localStorage.setItem("lastUserName",O):localStorage.removeItem("lastUserName")}getLastUserName(){var O=localStorage.getItem("lastUserName");if(O)return O}setLocationId(O){O?localStorage.setItem("locationId",O):localStorage.removeItem("locationId")}getLocationId(){var O=localStorage.getItem("locationId");if(O)return O}setCustomerId(O){O?localStorage.setItem("customerId",O):localStorage.removeItem("customerId")}getCustomerId(){var O=localStorage.getItem("customerId");if(O)return O}setActor(O){O?localStorage.setItem("actor",O):localStorage.removeItem("actor")}getActor(){var O=localStorage.getItem("actor");if(O)return O}setRoles(O){O?localStorage.setItem("roles",O.toString()):localStorage.removeItem("roles")}getRoles(){var O=localStorage.getItem("roles");if(O)return O.split(",")}}return K.\u0275fac=function(O){return new(O||K)(N.LFG(ze.yh))},K.\u0275prov=N.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},7559:(St,oe,S)=>{"use strict";S.d(oe,{Us:()=>C,kS:()=>N,x4:()=>K,he:()=>O,KZ:()=>P});var a=S(5620);const C=(0,a.PH)("[App] Set Login Redirect Page",(0,a.Ky)()),N=(0,a.PH)("[Authentication] Logout"),K=((0,a.PH)("[Authentication] Logout Success",(0,a.Ky)()),(0,a.PH)("[Authentication] Logout Fail",(0,a.Ky)()),(0,a.PH)("[Authentication] Login",(0,a.Ky)())),O=((0,a.PH)("[Authentication] Login Customer",(0,a.Ky)()),(0,a.PH)("[Authentication] Login Success",(0,a.Ky)())),P=(0,a.PH)("[Authentication] Login Fail",(0,a.Ky)())},9688:(St,oe,S)=>{"use strict";S.d(oe,{KJ:()=>N});var a=S(5620),C=S(7559);const N="authentication";(0,a.Lq)({loginSuccess:void 0,loginError:void 0,loginRedirectPage:void 0},(0,a.on)(C.kS,r=>Object.assign(Object.assign({},r),{loginSuccess:void 0,loginError:void 0,resetPasswordCode:void 0})),(0,a.on)(C.x4,r=>Object.assign(Object.assign({},r),{loginSuccess:void 0,loginError:void 0})),(0,a.on)(C.he,(r,{success:O})=>Object.assign(Object.assign({},r),{loginSuccess:O})),(0,a.on)(C.KZ,(r,{error:O})=>Object.assign(Object.assign({},r),{loginSuccess:!1,loginError:O})),(0,a.on)(C.Us,(r,{loginRedirectPage:O})=>Object.assign(Object.assign({},r),{loginRedirectPage:O})))},3688:(St,oe,S)=>{"use strict";var a=S(5620),C=S(9688);const N=(0,a.ZF)(C.KJ);(0,a.P1)(N,r=>r.loginSuccess),(0,a.P1)(N,r=>r.loginError),(0,a.P1)(N,r=>r.loginRedirectPage)},9349:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,setBlog:()=>N,loadBlog:()=>ze,loadBlogSuccess:()=>p,loadBlogFail:()=>K,loadBlogs:()=>r,loadBlogsSuccess:()=>O,loadBlogsFail:()=>P,saveBlog:()=>H,saveBlogSuccess:()=>E,saveBlogFail:()=>ee,deleteBlog:()=>x,deleteBlogSuccess:()=>U,deleteBlogFail:()=>le});var a=S(5620);const C=(0,a.PH)("[Blogs] Clear Store Flags"),N=(0,a.PH)("[Blogs] Set Blog",(0,a.Ky)()),ze=(0,a.PH)("[Blogs] Load Blog",(0,a.Ky)()),p=(0,a.PH)("[Blogs] Load Blog Success",(0,a.Ky)()),K=(0,a.PH)("[Blogs] Load Blog Fail"),r=(0,a.PH)("[Blogs] Load Blogs",(0,a.Ky)()),O=(0,a.PH)("[Blogs] Load Blogs Success",(0,a.Ky)()),P=(0,a.PH)("[Blogs] Load Blogs Fail"),H=(0,a.PH)("[Blogs] Save Blog",(0,a.Ky)()),E=(0,a.PH)("[Blogs] Save Blog Success",(0,a.Ky)()),ee=(0,a.PH)("[Blogs] Save Blog Fail"),x=(0,a.PH)("[Blogs] Delete Blog",(0,a.Ky)()),U=(0,a.PH)("[Blogs] Delete Blog Success",(0,a.Ky)()),le=(0,a.PH)("[Blogs] Delete Blog Fail")},3658:(St,oe,S)=>{"use strict";S.d(oe,{qJ:()=>N,M9:()=>p});var a=S(5620),C=S(9349);const N="blog",p=(0,a.Lq)({blog:void 0,blogs:void 0,blogsResponse:void 0,reloadBlogs:void 0,blogSaved:void 0},(0,a.on)(C.clearStoreFlags,r=>Object.assign(Object.assign({},r),{blog:void 0,blogs:void 0,blogsResponse:void 0,reloadBlogs:void 0,blogSaved:void 0})),(0,a.on)(C.setBlog,(r,{model:O})=>Object.assign(Object.assign({},r),{blog:O})),(0,a.on)(C.loadBlogs,r=>Object.assign(Object.assign({},r),{blogsResponse:void 0,blogs:void 0})),(0,a.on)(C.loadBlogsSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{blogsResponse:O,blogs:O.items})),(0,a.on)(C.loadBlogsFail,r=>Object.assign(Object.assign({},r),{blogsResponse:void 0,blogs:void 0})),(0,a.on)(C.loadBlog,r=>Object.assign(Object.assign({},r),{blog:void 0,reloadBlogs:void 0})),(0,a.on)(C.loadBlogSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{blog:O.firstItem})),(0,a.on)(C.loadBlogFail,r=>Object.assign(Object.assign({},r),{blog:void 0,reloadBlogs:void 0})),(0,a.on)(C.saveBlog,r=>Object.assign(Object.assign({},r),{blog:void 0,blogSaved:void 0,reloadBlogs:void 0})),(0,a.on)(C.saveBlogSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{blog:O.firstItem,blogSaved:!0,reloadBlogs:!0})),(0,a.on)(C.saveBlogFail,r=>Object.assign(Object.assign({},r),{blog:void 0,blogSaved:!1,reloadBlogs:void 0})),(0,a.on)(C.deleteBlog,r=>Object.assign(Object.assign({},r),{blog:void 0,reloadBlogs:void 0})),(0,a.on)(C.deleteBlogSuccess,(r,{})=>Object.assign(Object.assign({},r),{reloadBlogs:!0})),(0,a.on)(C.deleteBlogFail,r=>Object.assign(Object.assign({},r),{blog:void 0,reloadBlogs:void 0})))},536:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,wR:()=>N,Md:()=>ze,Yi:()=>p,_b:()=>K,CP:()=>r,Mw:()=>O,Ww:()=>P,Jo:()=>H,nm:()=>E,Mv:()=>ee,S1:()=>x,K8:()=>U,cS:()=>le,GP:()=>xe,HP:()=>re});var a=S(5620);const C=(0,a.PH)("[CertificateFailureReason] Clear Store Flags"),N=(0,a.PH)("[CertificateFailureReason] Load CertificateFailureReason",(0,a.Ky)()),ze=(0,a.PH)("[CertificateFailureReason] Load CertificateFailureReason Success",(0,a.Ky)()),p=(0,a.PH)("[CertificateFailureReason] Load CertificateFailureReason Fail"),K=(0,a.PH)("[CertificateFailureReason] Load CertificateFailureReasons",(0,a.Ky)()),r=(0,a.PH)("[CertificateFailureReason] Load CertificateFailureReasons Success",(0,a.Ky)()),O=(0,a.PH)("[CertificateFailureReason] Load CertificateFailureReasons Fail"),P=(0,a.PH)("[CertificateFailureReason] Save CertificateFailureReason",(0,a.Ky)()),H=(0,a.PH)("[CertificateFailureReason] Save CertificateFailureReason Success",(0,a.Ky)()),E=(0,a.PH)("[CertificateFailureReason] Save CertificateFailureReason Fail"),ee=(0,a.PH)("[CertificateFailureReason] Move CertificateFailureReason",(0,a.Ky)()),x=(0,a.PH)("[CertificateFailureReason] Move CertificateFailureReason Success",(0,a.Ky)()),U=(0,a.PH)("[CertificateFailureReason] Move CertificateFailureReason Fail"),le=(0,a.PH)("[CertificateFailureReason] Delete CertificateFailureReason",(0,a.Ky)()),xe=(0,a.PH)("[CertificateFailureReason] Delete CertificateFailureReason Success",(0,a.Ky)()),re=(0,a.PH)("[CertificateFailureReason] Delete CertificateFailureReason Fail")},6348:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,$W:()=>N,z6:()=>ze,l9:()=>p,Nz:()=>K,NO:()=>r,hF:()=>O,Fu:()=>P,CS:()=>H,fd:()=>E,E8:()=>ee,qG:()=>x,EE:()=>U,Jk:()=>le,tu:()=>xe,Pl:()=>re});var a=S(5620);const C=(0,a.PH)("[CertificateObservation] Clear Store Flags"),N=(0,a.PH)("[CertificateObservation] Load CertificateObservation",(0,a.Ky)()),ze=(0,a.PH)("[CertificateObservation] Load CertificateObservation Success",(0,a.Ky)()),p=(0,a.PH)("[CertificateObservation] Load CertificateObservation Fail"),K=(0,a.PH)("[CertificateObservation] Load CertificateObservations",(0,a.Ky)()),r=(0,a.PH)("[CertificateObservation] Load CertificateObservations Success",(0,a.Ky)()),O=(0,a.PH)("[CertificateObservation] Load CertificateObservations Fail"),P=(0,a.PH)("[CertificateObservation] Save CertificateObservation",(0,a.Ky)()),H=(0,a.PH)("[CertificateObservation] Save CertificateObservation Success",(0,a.Ky)()),E=(0,a.PH)("[CertificateObservation] Save CertificateObservation Fail"),ee=(0,a.PH)("[CertificateObservation] Move CertificateObservation",(0,a.Ky)()),x=(0,a.PH)("[CertificateObservation] Move CertificateObservation Success",(0,a.Ky)()),U=(0,a.PH)("[CertificateObservation] Move CertificateObservation Fail"),le=(0,a.PH)("[CertificateObservation] Delete CertificateObservation",(0,a.Ky)()),xe=(0,a.PH)("[CertificateObservation] Delete CertificateObservation Success",(0,a.Ky)()),re=(0,a.PH)("[CertificateObservation] Delete CertificateObservation Fail")},196:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,clearCertificates:()=>N,setCertificate:()=>ze,loadCertificate:()=>p,loadCertificateSuccess:()=>K,loadCertificateFail:()=>r,loadCertificates:()=>O,loadCertificatesSuccess:()=>P,loadCertificatesForPrintingSuccess:()=>H,loadCertificatesFail:()=>E,clearCertificatesForPrinting:()=>ee,loadLetterCertificates:()=>x,loadLetterCertificatesSuccess:()=>U,loadLetterCertificatesFail:()=>le,saveCertificate:()=>xe,saveCertificateSuccess:()=>re,saveCertificateFail:()=>ce,deleteCertificate:()=>L,deleteCertificateSuccess:()=>J,deleteCertificateFail:()=>we,deleteCertificateByCertificateNumber:()=>ge,deleteCertificateByCertificateNumberSuccess:()=>fe,deleteCertificateByCertificateNumberFail:()=>Ce,batchDeleteCertificates:()=>e,batchDeleteCertificatesSuccess:()=>z,batchDeleteCertificatesFail:()=>je,getLetterCertificates:()=>rt,getLetterCertificatesSuccess:()=>it,getLetterCertificatesFail:()=>ct,checkCertificateExists:()=>g,checkCertificateExistsSuccess:()=>qe,checkCertificateExistsFail:()=>Ve,createSubmissionForm:()=>He,createSubmissionFormSuccess:()=>X,createSubmissionFormFail:()=>Le,copyCertificate:()=>Te,copyCertificateSuccess:()=>Ze,copyCertificateFail:()=>he,upgradeCertificate:()=>Ne,upgradeCertificateSuccess:()=>Me,upgradeCertificateFail:()=>ke,uploadBasicCerts:()=>G,uploadBasicCertsSuccess:()=>ot,uploadBasicCertsFail:()=>We,printEncapsulationLabel:()=>ut,printEncapsulationLabelSuccess:()=>Mt,printEncapsulationLabelFail:()=>At});var a=S(5620);const C=(0,a.PH)("[Certificates] Clear Store Flags"),N=(0,a.PH)("[Certificates] Clear Certificates"),ze=(0,a.PH)("[Certificates] Set Certificate",(0,a.Ky)()),p=(0,a.PH)("[Certificates] Load Certificate",(0,a.Ky)()),K=(0,a.PH)("[Certificates] Load Certificate Success",(0,a.Ky)()),r=(0,a.PH)("[Certificates] Load Certificate Fail"),O=(0,a.PH)("[Certificates] Load Certificates",(0,a.Ky)()),P=(0,a.PH)("[Certificates] Load Certificates Success",(0,a.Ky)()),H=(0,a.PH)("[Certificates] Load Certificates Success For Printing",(0,a.Ky)()),E=(0,a.PH)("[Certificates] Load Certificates Fail"),ee=(0,a.PH)("[Certificates] Clear Certificates For Printing"),x=(0,a.PH)("[Certificates] Load Letter Certificates",(0,a.Ky)()),U=(0,a.PH)("[Certificates] Load Letter Certificates Success",(0,a.Ky)()),le=(0,a.PH)("[Certificates] Load Letter Certificates Fail"),xe=(0,a.PH)("[Certificates] Save Certificate",(0,a.Ky)()),re=(0,a.PH)("[Certificates] Save Certificate Success",(0,a.Ky)()),ce=(0,a.PH)("[Certificates] Save Certificate Fail"),L=(0,a.PH)("[Certificates] Delete Certificate",(0,a.Ky)()),J=(0,a.PH)("[Certificates] Delete Certificate Success",(0,a.Ky)()),we=(0,a.PH)("[Certificates] Delete Certificate Fail"),ge=(0,a.PH)("[Certificates] Delete Certificate By Certificate Number",(0,a.Ky)()),fe=(0,a.PH)("[Certificates] Delete Certificate By Certificate Number Success",(0,a.Ky)()),Ce=(0,a.PH)("[Certificates] Delete Certificate By Certificate Number Fail"),e=(0,a.PH)("[Certificates] Batch Delete Certificate",(0,a.Ky)()),z=(0,a.PH)("[Certificates] Batch Delete Certificate Success",(0,a.Ky)()),je=(0,a.PH)("[Certificates] Batch Delete Certificate Fail"),rt=(0,a.PH)("[Certificates] Get Letter Certificates",(0,a.Ky)()),it=(0,a.PH)("[Certificates] Get Letter Certificates Success",(0,a.Ky)()),ct=(0,a.PH)("[Certificates] Get Letter Certificates Fail"),g=(0,a.PH)("[Certificates] Check Certificate Exists",(0,a.Ky)()),qe=(0,a.PH)("[Certificates] Check Certificate Exists Success",(0,a.Ky)()),Ve=(0,a.PH)("[Certificates] Check Certificate Exists Fail"),He=(0,a.PH)("[Certificates] Create Submission Form"),X=(0,a.PH)("[Certificates] Create Submission Form Success",(0,a.Ky)()),Le=(0,a.PH)("[Certificates] Create Submission Form Fail"),Te=(0,a.PH)("[Certificates] Copy Certificate",(0,a.Ky)()),Ze=(0,a.PH)("[Certificates] Copy Certificate Success",(0,a.Ky)()),he=(0,a.PH)("[Certificates] Copy Certificate Fail"),Ne=(0,a.PH)("[Certificates] Upgrade Certificate",(0,a.Ky)()),Me=(0,a.PH)("[Certificates] Upgrade Certificate Success",(0,a.Ky)()),ke=(0,a.PH)("[Certificates] Upgrade Certificate Fail"),G=(0,a.PH)("[Certificates] Upload Basic Certs",(0,a.Ky)()),ot=(0,a.PH)("[Certificates] Upload Basic Certs Success",(0,a.Ky)()),We=(0,a.PH)("[Certificates] Upload Basic Certs Fail"),ut=(0,a.PH)("[Certificates] Print Encapsulation Label",(0,a.Ky)()),Mt=(0,a.PH)("[Certificates] Print Encapsulation Label Success",(0,a.Ky)()),At=(0,a.PH)("[Certificates] Print Encapsulation Label Fail")},5696:(St,oe,S)=>{"use strict";S.d(oe,{xi:()=>N,kr:()=>ze,tI:()=>p,_H:()=>K,Qt:()=>r,$W:()=>O,n:()=>P,W4:()=>H,OL:()=>E,Zj:()=>ee,a4:()=>x,nb:()=>U});var a=S(5620);(0,a.PH)("[FailureReason] Clear Store Flags");const N=(0,a.PH)("[FailureReason] Load FailureReason",(0,a.Ky)()),ze=(0,a.PH)("[FailureReason] Load FailureReason Success",(0,a.Ky)()),p=(0,a.PH)("[FailureReason] Load FailureReason Fail"),K=(0,a.PH)("[FailureReason] Load FailureReasons",(0,a.Ky)()),r=(0,a.PH)("[FailureReason] Load FailureReasons Success",(0,a.Ky)()),O=(0,a.PH)("[FailureReason] Load FailureReasons Fail"),P=(0,a.PH)("[FailureReason] Save FailureReason",(0,a.Ky)()),H=(0,a.PH)("[FailureReason] Save FailureReason Success",(0,a.Ky)()),E=(0,a.PH)("[FailureReason] Save FailureReason Fail"),ee=(0,a.PH)("[FailureReason] Delete FailureReason",(0,a.Ky)()),x=(0,a.PH)("[FailureReason] Delete FailureReason Success",(0,a.Ky)()),U=(0,a.PH)("[FailureReason] Delete FailureReason Fail")},5774:(St,oe,S)=>{"use strict";S.d(oe,{ug:()=>N,xf:()=>ze,hf:()=>p,rY:()=>K,ky:()=>r,bQ:()=>O,VZ:()=>P,uq:()=>H,Zo:()=>E,B0:()=>ee,uS:()=>x,hD:()=>U});var a=S(5620);(0,a.PH)("[LetterParagraph] Clear Store Flags");const N=(0,a.PH)("[LetterParagraph] Load LetterParagraph",(0,a.Ky)()),ze=(0,a.PH)("[LetterParagraph] Load LetterParagraph Success",(0,a.Ky)()),p=(0,a.PH)("[LetterParagraph] Load LetterParagraph Fail"),K=(0,a.PH)("[LetterParagraph] Load LetterParagraphs",(0,a.Ky)()),r=(0,a.PH)("[LetterParagraph] Load LetterParagraphs Success",(0,a.Ky)()),O=(0,a.PH)("[LetterParagraph] Load LetterParagraphs Fail"),P=(0,a.PH)("[LetterParagraph] Save LetterParagraph",(0,a.Ky)()),H=(0,a.PH)("[LetterParagraph] Save LetterParagraph Success",(0,a.Ky)()),E=(0,a.PH)("[LetterParagraph] Save LetterParagraph Fail"),ee=(0,a.PH)("[LetterParagraph] Delete LetterParagraph",(0,a.Ky)()),x=(0,a.PH)("[LetterParagraph] Delete LetterParagraph Success",(0,a.Ky)()),U=(0,a.PH)("[LetterParagraph] Delete LetterParagraph Fail")},4745:(St,oe,S)=>{"use strict";S.d(oe,{dT:()=>N,L7:()=>ze,_4:()=>p,lO:()=>K,xQ:()=>r,R$:()=>O,uw:()=>P,xV:()=>H,o9:()=>E,FK:()=>ee,L8:()=>x,yo:()=>U});var a=S(5620);(0,a.PH)("[LetterSigner] Clear Store Flags");const N=(0,a.PH)("[LetterSigner] Load LetterSigner",(0,a.Ky)()),ze=(0,a.PH)("[LetterSigner] Load LetterSigner Success",(0,a.Ky)()),p=(0,a.PH)("[LetterSigner] Load LetterSigner Fail"),K=(0,a.PH)("[LetterSigner] Load LetterSigners",(0,a.Ky)()),r=(0,a.PH)("[LetterSigner] Load LetterSigners Success",(0,a.Ky)()),O=(0,a.PH)("[LetterSigner] Load LetterSigners Fail"),P=(0,a.PH)("[LetterSigner] Save LetterSigner",(0,a.Ky)()),H=(0,a.PH)("[LetterSigner] Save LetterSigner Success",(0,a.Ky)()),E=(0,a.PH)("[LetterSigner] Save LetterSigner Fail"),ee=(0,a.PH)("[LetterSigner] Delete LetterSigner",(0,a.Ky)()),x=(0,a.PH)("[LetterSigner] Delete LetterSigner Success",(0,a.Ky)()),U=(0,a.PH)("[LetterSigner] Delete LetterSigner Fail")},1001:(St,oe,S)=>{"use strict";S.d(oe,{e2:()=>N,VJ:()=>ze,pZ:()=>p,iT:()=>K,se:()=>r,C4:()=>O,Xe:()=>P,_l:()=>H,u3:()=>E,Dn:()=>ee,py:()=>x,jT:()=>U});var a=S(5620);(0,a.PH)("[Observation] Clear Store Flags");const N=(0,a.PH)("[Observation] Load Observation",(0,a.Ky)()),ze=(0,a.PH)("[Observation] Load Observation Success",(0,a.Ky)()),p=(0,a.PH)("[Observation] Load Observation Fail"),K=(0,a.PH)("[Observation] Load Observations",(0,a.Ky)()),r=(0,a.PH)("[Observation] Load Observations Success",(0,a.Ky)()),O=(0,a.PH)("[Observation] Load Observations Fail"),P=(0,a.PH)("[Observation] Save Observation",(0,a.Ky)()),H=(0,a.PH)("[Observation] Save Observation Success",(0,a.Ky)()),E=(0,a.PH)("[Observation] Save Observation Fail"),ee=(0,a.PH)("[Observation] Delete Observation",(0,a.Ky)()),x=(0,a.PH)("[Observation] Delete Observation Success",(0,a.Ky)()),U=(0,a.PH)("[Observation] Delete Observation Fail")},5543:(St,oe,S)=>{"use strict";S.d(oe,{Z:()=>fe,c:()=>Ce});var a=S(5620),C=S(536);const ze=(0,a.Lq)({certificateFailureReason:void 0,certificateFailureReasonsResponse:void 0,reloadCertificateFailureReasons:void 0,certificateFailureReasonSaved:void 0},(0,a.on)(C.p3,e=>Object.assign(Object.assign({},e),{certificateFailureReasonSaved:void 0,reloadCertificateFailureReasons:void 0})),(0,a.on)(C._b,e=>Object.assign(Object.assign({},e),{certificateFailureReasonsResponse:void 0,certificateFailureReason:void 0})),(0,a.on)(C.CP,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateFailureReasonsResponse:z})),(0,a.on)(C.Mw,e=>Object.assign(Object.assign({},e),{certificateFailureReasonsResponse:void 0})),(0,a.on)(C.wR,e=>Object.assign(Object.assign({},e),{certificateFailureReason:void 0,reloadCertificateFailureReasons:void 0})),(0,a.on)(C.Md,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateFailureReason:z.firstItem})),(0,a.on)(C.Yi,e=>Object.assign(Object.assign({},e),{certificateFailureReason:void 0,reloadCertificateFailureReasons:void 0})),(0,a.on)(C.Ww,e=>Object.assign(Object.assign({},e),{certificateFailureReason:void 0,certificateFailureReasonSaved:void 0,reloadCertificateFailureReasons:void 0})),(0,a.on)(C.Jo,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateFailureReason:z.firstItem,certificateFailureReasonSaved:!0,reloadCertificateFailureReasons:!0})),(0,a.on)(C.nm,e=>Object.assign(Object.assign({},e),{certificateFailureReason:void 0,certificateFailureReasonSaved:!1,reloadCertificateFailureReasons:void 0})),(0,a.on)(C.cS,e=>Object.assign(Object.assign({},e),{certificateFailureReason:void 0,reloadCertificateFailureReasons:void 0})),(0,a.on)(C.GP,(e,{})=>Object.assign(Object.assign({},e),{reloadCertificateFailureReasons:!0})),(0,a.on)(C.HP,e=>Object.assign(Object.assign({},e),{certificateFailureReason:void 0,reloadCertificateFailureReasons:void 0})));var p=S(6348);const r=(0,a.Lq)({certificateObservation:void 0,certificateObservationsResponse:void 0,reloadCertificateObservations:void 0,certificateObservationSaved:void 0},(0,a.on)(p.p3,e=>Object.assign(Object.assign({},e),{certificateObservationSaved:void 0,reloadCertificateObservations:void 0})),(0,a.on)(p.Nz,e=>Object.assign(Object.assign({},e),{certificateObservationsResponse:void 0,certificateObservation:void 0})),(0,a.on)(p.NO,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateObservationsResponse:z})),(0,a.on)(p.hF,e=>Object.assign(Object.assign({},e),{certificateObservationsResponse:void 0})),(0,a.on)(p.$W,e=>Object.assign(Object.assign({},e),{certificateObservation:void 0,reloadCertificateObservations:void 0})),(0,a.on)(p.z6,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateObservation:z.firstItem})),(0,a.on)(p.l9,e=>Object.assign(Object.assign({},e),{certificateObservation:void 0,reloadCertificateObservations:void 0})),(0,a.on)(p.Fu,e=>Object.assign(Object.assign({},e),{certificateObservation:void 0,certificateObservationSaved:void 0,reloadCertificateObservations:void 0})),(0,a.on)(p.CS,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateObservation:z.firstItem,certificateObservationSaved:!0,reloadCertificateObservations:!0})),(0,a.on)(p.EE,e=>Object.assign(Object.assign({},e),{certificateObservation:void 0,certificateObservationSaved:!1,reloadCertificateObservations:void 0})),(0,a.on)(p.E8,e=>Object.assign(Object.assign({},e),{certificateObservation:void 0,certificateObservationSaved:void 0,reloadCertificateObservations:void 0})),(0,a.on)(p.qG,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateObservation:z.firstItem,certificateObservationSaved:!0,reloadCertificateObservations:!0})),(0,a.on)(p.fd,e=>Object.assign(Object.assign({},e),{certificateObservation:void 0,certificateObservationSaved:!1,reloadCertificateObservations:void 0})),(0,a.on)(p.Jk,e=>Object.assign(Object.assign({},e),{certificateObservationSaved:void 0,certificateObservation:void 0,reloadCertificateObservations:void 0})),(0,a.on)(p.tu,(e,{})=>Object.assign(Object.assign({},e),{certificateObservationSaved:!0,reloadCertificateObservations:!0})),(0,a.on)(p.Pl,e=>Object.assign(Object.assign({},e),{certificateObservationSaved:!1,certificateObservation:void 0,reloadCertificateObservations:void 0})));var O=S(196);const H=(0,a.Lq)({certificate:void 0,certificatesResponse:void 0,certificatesForPrintingResponse:void 0,uploadBasicCertificatesResponse:void 0,reloadCertificates:void 0,certificateSaved:void 0,certificatesBulkDeleted:void 0,certificateUpgraded:void 0,certificateCopied:void 0,labelPrinted:void 0,submissionForm:void 0},(0,a.on)(O.clearCertificates,e=>Object.assign(Object.assign({},e),{certificatesResponse:void 0})),(0,a.on)(O.clearStoreFlags,e=>Object.assign(Object.assign({},e),{reloadCertificates:void 0,certificateUpgraded:void 0,certificateSaved:void 0,certificateCopied:void 0,certificatesBulkDeleted:void 0,certificatesForPrintingResponse:void 0})),(0,a.on)(O.setCertificate,(e,{model:z})=>Object.assign(Object.assign({},e),{certificate:z,reloadCertificates:void 0,certificateUpgraded:void 0,certificateSaved:void 0,certificateCopied:void 0})),(0,a.on)(O.loadCertificates,e=>Object.assign(Object.assign({},e),{certificatesResponse:void 0,reloadCertificates:void 0,certificateUpgraded:void 0,certificateSaved:void 0,certificateCopied:void 0})),(0,a.on)(O.loadCertificatesSuccess,(e,{response:z})=>Object.assign(Object.assign({},e),{certificatesResponse:z})),(0,a.on)(O.loadCertificatesForPrintingSuccess,(e,{response:z})=>Object.assign(Object.assign({},e),{certificatesForPrintingResponse:z})),(0,a.on)(O.loadCertificatesFail,e=>Object.assign(Object.assign({},e),{certificatesResponse:void 0})),(0,a.on)(O.clearCertificatesForPrinting,e=>Object.assign(Object.assign({},e),{certificatesForPrintingResponse:void 0})),(0,a.on)(O.loadCertificate,e=>Object.assign(Object.assign({},e),{certificate:void 0,reloadCertificates:void 0,certificateSaved:void 0,certificateUpgraded:void 0,certificateCopied:void 0})),(0,a.on)(O.loadCertificateSuccess,(e,{response:z})=>Object.assign(Object.assign({},e),{certificate:z.firstItem})),(0,a.on)(O.loadCertificateFail,e=>Object.assign(Object.assign({},e),{certificate:void 0,reloadCertificates:void 0})),(0,a.on)(O.saveCertificate,e=>Object.assign(Object.assign({},e),{certificate:void 0,certificateSaved:void 0,reloadCertificates:void 0,certificateUpgraded:void 0,certificateCopied:void 0})),(0,a.on)(O.saveCertificateSuccess,(e,{response:z})=>Object.assign(Object.assign({},e),{certificate:z.firstItem,certificateId:z.firstItem.id,certificateSaved:!0,reloadCertificates:!0})),(0,a.on)(O.saveCertificateFail,e=>Object.assign(Object.assign({},e),{certificate:void 0,certificateSaved:!1,reloadCertificates:void 0})),(0,a.on)(O.createSubmissionForm,e=>Object.assign(Object.assign({},e),{submissionForm:void 0})),(0,a.on)(O.createSubmissionFormSuccess,(e,{response:z})=>Object.assign(Object.assign({},e),{submissionForm:z.firstItem})),(0,a.on)(O.createSubmissionFormFail,e=>Object.assign(Object.assign({},e),{submissionForm:void 0})),(0,a.on)(O.upgradeCertificate,e=>Object.assign(Object.assign({},e),{certificateUpgraded:void 0,reloadCertificates:void 0,certificateSaved:void 0,certificateCopied:void 0})),(0,a.on)(O.upgradeCertificateFail,e=>Object.assign(Object.assign({},e),{certificateUpgraded:void 0,reloadCertificates:void 0})),(0,a.on)(O.upgradeCertificateSuccess,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateUpgraded:z.firstItem,certificateId:z.firstItem.id,reloadCertificates:!0})),(0,a.on)(O.copyCertificate,e=>Object.assign(Object.assign({},e),{certificateUpgraded:void 0,reloadCertificates:void 0,certificateSaved:void 0,certificateCopied:void 0})),(0,a.on)(O.copyCertificateFail,e=>Object.assign(Object.assign({},e),{certificateCopied:void 0,reloadCertificates:void 0})),(0,a.on)(O.copyCertificateSuccess,(e,{response:z})=>Object.assign(Object.assign({},e),{certificateCopied:z.firstItem,certificateId:z.firstItem.id,reloadCertificates:!0})),(0,a.on)(O.uploadBasicCerts,e=>Object.assign(Object.assign({},e),{certificateUpgraded:void 0,reloadCertificates:void 0,certificateSaved:void 0,certificateCopied:void 0})),(0,a.on)(O.uploadBasicCertsFail,e=>Object.assign(Object.assign({},e),{certificateCopied:void 0,reloadCertificates:void 0})),(0,a.on)(O.uploadBasicCertsSuccess,(e,{response:z})=>Object.assign(Object.assign({},e),{uploadBasicCertificatesResponse:z})),(0,a.on)(O.deleteCertificate,e=>Object.assign(Object.assign({},e),{certificate:void 0,reloadCertificates:void 0,certificateSaved:void 0,certificateCopied:void 0})),(0,a.on)(O.deleteCertificateSuccess,(e,{})=>Object.assign(Object.assign({},e),{reloadCertificates:!0})),(0,a.on)(O.deleteCertificateFail,e=>Object.assign(Object.assign({},e),{certificate:void 0,reloadCertificates:void 0})),(0,a.on)(O.batchDeleteCertificates,e=>Object.assign(Object.assign({},e),{certificatesBulkDeleted:void 0})),(0,a.on)(O.batchDeleteCertificatesSuccess,(e,{})=>Object.assign(Object.assign({},e),{certificatesBulkDeleted:!0})),(0,a.on)(O.batchDeleteCertificatesFail,e=>Object.assign(Object.assign({},e),{certificatesBulkDeleted:void 0})),(0,a.on)(O.printEncapsulationLabel,e=>Object.assign(Object.assign({},e),{labelPrinted:void 0})),(0,a.on)(O.printEncapsulationLabelSuccess,(e,{})=>Object.assign(Object.assign({},e),{labelPrinted:!0})),(0,a.on)(O.printEncapsulationLabelFail,e=>Object.assign(Object.assign({},e),{labelPrinted:void 0})));var E=S(5696);const x=(0,a.Lq)({failureReason:void 0,failureReasons:void 0,reloadFailureReasons:void 0,failureReasonSaved:void 0},(0,a.on)(E._H,e=>Object.assign(Object.assign({},e),{failureReasons:void 0,failureReason:void 0})),(0,a.on)(E.Qt,(e,{response:z})=>Object.assign(Object.assign({},e),{failureReasons:z.items})),(0,a.on)(E.$W,e=>Object.assign(Object.assign({},e),{failureReasons:void 0})),(0,a.on)(E.xi,e=>Object.assign(Object.assign({},e),{failureReason:void 0,reloadFailureReasons:void 0})),(0,a.on)(E.kr,(e,{response:z})=>Object.assign(Object.assign({},e),{failureReason:z.firstItem})),(0,a.on)(E.tI,e=>Object.assign(Object.assign({},e),{failureReason:void 0,reloadFailureReasons:void 0})),(0,a.on)(E.n,e=>Object.assign(Object.assign({},e),{failureReason:void 0,failureReasonSaved:void 0,reloadFailureReasons:void 0})),(0,a.on)(E.W4,(e,{response:z})=>Object.assign(Object.assign({},e),{failureReason:z.firstItem,failureReasonSaved:!0,reloadFailureReasons:!0})),(0,a.on)(E.OL,e=>Object.assign(Object.assign({},e),{failureReason:void 0,failureReasonSaved:!1,reloadFailureReasons:void 0})),(0,a.on)(E.Zj,e=>Object.assign(Object.assign({},e),{failureReason:void 0,reloadFailureReasons:void 0})),(0,a.on)(E.a4,(e,{})=>Object.assign(Object.assign({},e),{reloadFailureReasons:!0})),(0,a.on)(E.nb,e=>Object.assign(Object.assign({},e),{failureReason:void 0,reloadFailureReasons:void 0})));var U=S(5774);const xe=(0,a.Lq)({letterParagraph:void 0,letterParagraphs:void 0,reloadLetterParagraphs:void 0,letterParagraphSaved:void 0},(0,a.on)(U.rY,e=>Object.assign(Object.assign({},e),{letterParagraphs:void 0,letterParagraph:void 0})),(0,a.on)(U.ky,(e,{response:z})=>Object.assign(Object.assign({},e),{letterParagraphs:z.items})),(0,a.on)(U.bQ,e=>Object.assign(Object.assign({},e),{letterParagraphs:void 0})),(0,a.on)(U.ug,e=>Object.assign(Object.assign({},e),{letterParagraph:void 0,reloadLetterParagraphs:void 0})),(0,a.on)(U.xf,(e,{response:z})=>Object.assign(Object.assign({},e),{letterParagraph:z.firstItem})),(0,a.on)(U.hf,e=>Object.assign(Object.assign({},e),{letterParagraph:void 0,reloadLetterParagraphs:void 0})),(0,a.on)(U.VZ,e=>Object.assign(Object.assign({},e),{letterParagraph:void 0,letterParagraphSaved:void 0,reloadLetterParagraphs:void 0})),(0,a.on)(U.uq,(e,{response:z})=>Object.assign(Object.assign({},e),{letterParagraph:z.firstItem,letterParagraphSaved:!0,reloadLetterParagraphs:!0})),(0,a.on)(U.Zo,e=>Object.assign(Object.assign({},e),{letterParagraph:void 0,letterParagraphSaved:!1,reloadLetterParagraphs:void 0})),(0,a.on)(U.B0,e=>Object.assign(Object.assign({},e),{letterParagraph:void 0,reloadLetterParagraphs:void 0})),(0,a.on)(U.uS,(e,{})=>Object.assign(Object.assign({},e),{reloadLetterParagraphs:!0})),(0,a.on)(U.hD,e=>Object.assign(Object.assign({},e),{letterParagraph:void 0,reloadLetterParagraphs:void 0})));var re=S(4745);const L=(0,a.Lq)({letterSigner:void 0,letterSigners:void 0,reloadLetterSigners:void 0,letterSignerSaved:void 0},(0,a.on)(re.lO,e=>Object.assign(Object.assign({},e),{letterSigners:void 0,letterSigner:void 0})),(0,a.on)(re.xQ,(e,{response:z})=>Object.assign(Object.assign({},e),{letterSigners:z.items})),(0,a.on)(re.R$,e=>Object.assign(Object.assign({},e),{letterSigners:void 0})),(0,a.on)(re.dT,e=>Object.assign(Object.assign({},e),{letterSigner:void 0,reloadLetterSigners:void 0})),(0,a.on)(re.L7,(e,{response:z})=>Object.assign(Object.assign({},e),{letterSigner:z.firstItem})),(0,a.on)(re._4,e=>Object.assign(Object.assign({},e),{letterSigner:void 0,reloadLetterSigners:void 0})),(0,a.on)(re.uw,e=>Object.assign(Object.assign({},e),{letterSigner:void 0,letterSignerSaved:void 0,reloadLetterSigners:void 0})),(0,a.on)(re.xV,(e,{response:z})=>Object.assign(Object.assign({},e),{letterSigner:z.firstItem,letterSignerSaved:!0,reloadLetterSigners:!0})),(0,a.on)(re.o9,e=>Object.assign(Object.assign({},e),{letterSigner:void 0,letterSignerSaved:!1,reloadLetterSigners:void 0})),(0,a.on)(re.FK,e=>Object.assign(Object.assign({},e),{letterSigner:void 0,reloadLetterSigners:void 0})),(0,a.on)(re.L8,(e,{})=>Object.assign(Object.assign({},e),{reloadLetterSigners:!0})),(0,a.on)(re.yo,e=>Object.assign(Object.assign({},e),{letterSigner:void 0,reloadLetterSigners:void 0})));var J=S(1001);const ge=(0,a.Lq)({observation:void 0,observations:void 0,reloadObservations:void 0,observationSaved:void 0},(0,a.on)(J.iT,e=>Object.assign(Object.assign({},e),{observations:void 0,observation:void 0})),(0,a.on)(J.se,(e,{response:z})=>Object.assign(Object.assign({},e),{observations:z.items})),(0,a.on)(J.C4,e=>Object.assign(Object.assign({},e),{observations:void 0})),(0,a.on)(J.e2,e=>Object.assign(Object.assign({},e),{observation:void 0,reloadObservations:void 0})),(0,a.on)(J.VJ,(e,{response:z})=>Object.assign(Object.assign({},e),{observation:z.firstItem})),(0,a.on)(J.pZ,e=>Object.assign(Object.assign({},e),{observation:void 0,reloadObservations:void 0})),(0,a.on)(J.Xe,e=>Object.assign(Object.assign({},e),{observation:void 0,observationSaved:void 0,reloadObservations:void 0})),(0,a.on)(J._l,(e,{response:z})=>Object.assign(Object.assign({},e),{observation:z.firstItem,observationSaved:!0,reloadObservations:!0})),(0,a.on)(J.u3,e=>Object.assign(Object.assign({},e),{observation:void 0,observationSaved:!1,reloadObservations:void 0})),(0,a.on)(J.Dn,e=>Object.assign(Object.assign({},e),{observation:void 0,reloadObservations:void 0})),(0,a.on)(J.py,(e,{})=>Object.assign(Object.assign({},e),{reloadObservations:!0})),(0,a.on)(J.jT,e=>Object.assign(Object.assign({},e),{observation:void 0,reloadObservations:void 0}))),fe="certificate",Ce=(0,a.UY)({certificateFailureReasonStore:ze,certificateObservationStore:r,certificateStore:H,observationStore:ge,failureReasonStore:x,letterParagraphStore:xe,letterSignerStore:L})},8476:(St,oe,S)=>{"use strict";S.d(oe,{jR:()=>K});var a=S(5620),C=S(5543);const N=(0,a.ZF)(C.Z),K=((0,a.P1)(N,O=>O.failureReasonStore.failureReason),(0,a.P1)(N,O=>O.failureReasonStore.failureReasonSaved),(0,a.P1)(N,O=>O.failureReasonStore.failureReasons));(0,a.P1)(N,O=>O.failureReasonStore.reloadFailureReasons)},6238:(St,oe,S)=>{"use strict";S.d(oe,{es:()=>K});var a=S(5620),C=S(5543);const N=(0,a.ZF)(C.Z),K=((0,a.P1)(N,O=>O.letterParagraphStore.letterParagraph),(0,a.P1)(N,O=>O.letterParagraphStore.letterParagraphSaved),(0,a.P1)(N,O=>O.letterParagraphStore.letterParagraphs));(0,a.P1)(N,O=>O.letterParagraphStore.reloadLetterParagraphs)},8872:(St,oe,S)=>{"use strict";S.d(oe,{Cj:()=>K});var a=S(5620),C=S(5543);const N=(0,a.ZF)(C.Z),K=((0,a.P1)(N,O=>O.letterSignerStore.letterSigner),(0,a.P1)(N,O=>O.letterSignerStore.letterSignerSaved),(0,a.P1)(N,O=>O.letterSignerStore.letterSigners));(0,a.P1)(N,O=>O.letterSignerStore.reloadLetterSigners)},4886:(St,oe,S)=>{"use strict";S.d(oe,{BA:()=>K});var a=S(5620),C=S(5543);const N=(0,a.ZF)(C.Z),K=((0,a.P1)(N,O=>O.observationStore.observation),(0,a.P1)(N,O=>O.observationStore.observationSaved),(0,a.P1)(N,O=>O.observationStore.observations));(0,a.P1)(N,O=>O.observationStore.reloadObservations)},359:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,setDealer:()=>N,loadDealer:()=>ze,loadDealerSuccess:()=>p,loadDealerFail:()=>K,loadDealers:()=>r,loadDealersSuccess:()=>O,loadDealersFail:()=>P,saveDealer:()=>H,saveDealerSuccess:()=>E,saveDealerFail:()=>ee,deleteDealer:()=>x,deleteDealerSuccess:()=>U,deleteDealerFail:()=>le});var a=S(5620);const C=(0,a.PH)("[Dealers] Clear Store Flags"),N=(0,a.PH)("[Dealers] Set Dealer",(0,a.Ky)()),ze=(0,a.PH)("[Dealers] Load Dealer",(0,a.Ky)()),p=(0,a.PH)("[Dealers] Load Dealer Success",(0,a.Ky)()),K=(0,a.PH)("[Dealers] Load Dealer Fail"),r=(0,a.PH)("[Dealers] Load Dealers",(0,a.Ky)()),O=(0,a.PH)("[Dealers] Load Dealers Success",(0,a.Ky)()),P=(0,a.PH)("[Dealers] Load Dealers Fail"),H=(0,a.PH)("[Dealers] Save Dealer",(0,a.Ky)()),E=(0,a.PH)("[Dealers] Save Dealer Success",(0,a.Ky)()),ee=(0,a.PH)("[Dealers] Save Dealer Fail"),x=(0,a.PH)("[Dealers] Delete Dealer",(0,a.Ky)()),U=(0,a.PH)("[Dealers] Delete Dealer Success",(0,a.Ky)()),le=(0,a.PH)("[Dealers] Delete Dealer Fail")},6947:(St,oe,S)=>{"use strict";S.d(oe,{R:()=>N,AD:()=>p});var a=S(5620),C=S(359);const N="dealer",p=(0,a.Lq)({dealer:void 0,dealers:void 0,dealersResponse:void 0,reloadDealers:void 0,dealerSaved:void 0},(0,a.on)(C.clearStoreFlags,r=>Object.assign(Object.assign({},r),{dealer:void 0,dealers:void 0,dealersResponse:void 0,dealerSaved:void 0,reloadDealers:void 0})),(0,a.on)(C.setDealer,(r,{model:O})=>Object.assign(Object.assign({},r),{dealer:O})),(0,a.on)(C.loadDealers,r=>Object.assign(Object.assign({},r),{dealersResponse:void 0,dealers:void 0})),(0,a.on)(C.loadDealersSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{dealersResponse:O,dealers:O.items})),(0,a.on)(C.loadDealersFail,r=>Object.assign(Object.assign({},r),{dealersResponse:void 0,dealers:void 0})),(0,a.on)(C.loadDealer,r=>Object.assign(Object.assign({},r),{dealer:void 0,reloadDealers:void 0})),(0,a.on)(C.loadDealerSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{dealer:O.firstItem})),(0,a.on)(C.loadDealerFail,r=>Object.assign(Object.assign({},r),{dealer:void 0,reloadDealers:void 0})),(0,a.on)(C.saveDealer,r=>Object.assign(Object.assign({},r),{dealer:void 0,dealerSaved:void 0,reloadDealers:void 0})),(0,a.on)(C.saveDealerSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{dealer:O.firstItem,dealerSaved:!0,reloadDealers:!0})),(0,a.on)(C.saveDealerFail,r=>Object.assign(Object.assign({},r),{dealer:void 0,dealerSaved:!1,reloadDealers:void 0})),(0,a.on)(C.deleteDealer,r=>Object.assign(Object.assign({},r),{dealer:void 0,reloadDealers:void 0})),(0,a.on)(C.deleteDealerSuccess,(r,{})=>Object.assign(Object.assign({},r),{reloadDealers:!0})),(0,a.on)(C.deleteDealerFail,r=>Object.assign(Object.assign({},r),{dealer:void 0,reloadDealers:void 0})))},9673:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,setEvent:()=>N,loadEvent:()=>ze,loadEventSuccess:()=>p,loadEventFail:()=>K,loadEvents:()=>r,loadEventsSuccess:()=>O,loadEventsFail:()=>P,getUSAEventCount:()=>H,getUSAEventCountSuccess:()=>E,getUSAEventCountFail:()=>ee,getCanadaEventCount:()=>x,getCanadaEventCountSuccess:()=>U,getCanadaEventCountFail:()=>le,loadFeaturedEvents:()=>xe,loadFeaturedEventsSuccess:()=>re,loadFeaturedEventsFail:()=>ce,saveEvent:()=>L,saveEventSuccess:()=>J,saveEventFail:()=>we,deleteEvent:()=>ge,deleteEventSuccess:()=>fe,deleteEventFail:()=>Ce});var a=S(5620);const C=(0,a.PH)("[Events] Clear Store Flags"),N=(0,a.PH)("[Events] Set Event",(0,a.Ky)()),ze=(0,a.PH)("[Events] Load Event",(0,a.Ky)()),p=(0,a.PH)("[Events] Load Event Success",(0,a.Ky)()),K=(0,a.PH)("[Events] Load Event Fail"),r=(0,a.PH)("[Events] Load Events",(0,a.Ky)()),O=(0,a.PH)("[Events] Load Events Success",(0,a.Ky)()),P=(0,a.PH)("[Events] Load Events Fail"),H=(0,a.PH)("[Events] Get USA Event Count",(0,a.Ky)()),E=(0,a.PH)("[Events] Get USA Event Count Success",(0,a.Ky)()),ee=(0,a.PH)("[Events] Get USA Event Count Fail"),x=(0,a.PH)("[Events] Get Canada Event Count",(0,a.Ky)()),U=(0,a.PH)("[Events] Get Canada Event Count Success",(0,a.Ky)()),le=(0,a.PH)("[Events] Get Canada Event Count Fail"),xe=(0,a.PH)("[FeaturedEvents] Load FeaturedEvents",(0,a.Ky)()),re=(0,a.PH)("[FeaturedEvents] Load FeaturedEvents Success",(0,a.Ky)()),ce=(0,a.PH)("[FeaturedEvents] Load FeaturedEvents Fail"),L=(0,a.PH)("[Events] Save Event",(0,a.Ky)()),J=(0,a.PH)("[Events] Save Event Success",(0,a.Ky)()),we=(0,a.PH)("[Events] Save Event Fail"),ge=(0,a.PH)("[Events] Delete Event",(0,a.Ky)()),fe=(0,a.PH)("[Events] Delete Event Success",(0,a.Ky)()),Ce=(0,a.PH)("[Events] Delete Event Fail")},4003:(St,oe,S)=>{"use strict";S.d(oe,{Zo:()=>N,OY:()=>p});var a=S(5620),C=S(9673);const N="event",p=(0,a.Lq)({event:void 0,events:void 0,eventsResponse:void 0,featuredEvents:void 0,featuredEventsResponse:void 0,reloadEvents:void 0,eventSaved:void 0,usaEventCount:void 0,canadaEventCount:void 0},(0,a.on)(C.clearStoreFlags,r=>Object.assign(Object.assign({},r),{event:void 0,events:void 0,eventsResponse:void 0,featuredEvents:void 0,featuredEventsResponse:void 0,reloadEvents:void 0,eventSaved:void 0,usaEventCount:void 0,canadaEventCount:void 0})),(0,a.on)(C.setEvent,(r,{model:O})=>Object.assign(Object.assign({},r),{event:O})),(0,a.on)(C.loadEvents,r=>Object.assign(Object.assign({},r),{eventsResponse:void 0,events:void 0})),(0,a.on)(C.loadEventsSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{eventsResponse:O,events:O.items})),(0,a.on)(C.loadEventsFail,r=>Object.assign(Object.assign({},r),{eventsResponse:void 0,events:void 0})),(0,a.on)(C.getUSAEventCount,r=>Object.assign(Object.assign({},r),{usaEventCount:void 0})),(0,a.on)(C.getUSAEventCountSuccess,(r,{usaEventCount:O})=>Object.assign(Object.assign({},r),{usaEventCount:O})),(0,a.on)(C.getUSAEventCountFail,r=>Object.assign(Object.assign({},r),{usaEventCount:void 0})),(0,a.on)(C.getCanadaEventCount,r=>Object.assign(Object.assign({},r),{canadaEventCount:void 0})),(0,a.on)(C.getCanadaEventCountSuccess,(r,{canadaEventCount:O})=>Object.assign(Object.assign({},r),{canadaEventCount:O})),(0,a.on)(C.getCanadaEventCountFail,r=>Object.assign(Object.assign({},r),{canadaEventCount:void 0})),(0,a.on)(C.loadFeaturedEvents,r=>Object.assign(Object.assign({},r),{featuredEventsResponse:void 0,featuredEvents:void 0})),(0,a.on)(C.loadFeaturedEventsSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{featuredEventsResponse:O,featuredEvents:O.items})),(0,a.on)(C.loadFeaturedEventsFail,r=>Object.assign(Object.assign({},r),{featuredEventsResponse:void 0,featuredEvents:void 0})),(0,a.on)(C.loadEvent,r=>Object.assign(Object.assign({},r),{event:void 0,reloadEvents:void 0})),(0,a.on)(C.loadEventSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{event:O.firstItem})),(0,a.on)(C.loadEventFail,r=>Object.assign(Object.assign({},r),{event:void 0,reloadEvents:void 0})),(0,a.on)(C.saveEvent,r=>Object.assign(Object.assign({},r),{event:void 0,eventSaved:void 0,reloadEvents:void 0})),(0,a.on)(C.saveEventSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{event:O.firstItem,eventSaved:!0,reloadEvents:!0})),(0,a.on)(C.saveEventFail,r=>Object.assign(Object.assign({},r),{event:void 0,eventSaved:!1,reloadEvents:void 0})),(0,a.on)(C.deleteEvent,r=>Object.assign(Object.assign({},r),{event:void 0,reloadEvents:void 0})),(0,a.on)(C.deleteEventSuccess,(r,{})=>Object.assign(Object.assign({},r),{reloadEvents:!0})),(0,a.on)(C.deleteEventFail,r=>Object.assign(Object.assign({},r),{event:void 0,reloadEvents:void 0})))},5120:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,setLogo:()=>N,loadLogo:()=>ze,loadLogoSuccess:()=>p,loadLogoFail:()=>K,loadLogos:()=>r,loadLogosSuccess:()=>O,loadLogosFail:()=>P,saveLogo:()=>H,saveLogoSuccess:()=>E,saveLogoFail:()=>ee,deleteLogo:()=>x,deleteLogoSuccess:()=>U,deleteLogoFail:()=>le});var a=S(5620);const C=(0,a.PH)("[Logos] Clear Store Flags"),N=(0,a.PH)("[Logos] Set Logo",(0,a.Ky)()),ze=(0,a.PH)("[Logos] Load Logo",(0,a.Ky)()),p=(0,a.PH)("[Logos] Load Logo Success",(0,a.Ky)()),K=(0,a.PH)("[Logos] Load Logo Fail"),r=(0,a.PH)("[Logos] Load Logos",(0,a.Ky)()),O=(0,a.PH)("[Logos] Load Logos Success",(0,a.Ky)()),P=(0,a.PH)("[Logos] Load Logos Fail"),H=(0,a.PH)("[Logos] Save Logo",(0,a.Ky)()),E=(0,a.PH)("[Logos] Save Logo Success",(0,a.Ky)()),ee=(0,a.PH)("[Logos] Save Logo Fail"),x=(0,a.PH)("[Logos] Delete Logo",(0,a.Ky)()),U=(0,a.PH)("[Logos] Delete Logo Success",(0,a.Ky)()),le=(0,a.PH)("[Logos] Delete Logo Fail")},8795:(St,oe,S)=>{"use strict";S.d(oe,{BK:()=>N,gr:()=>p});var a=S(5620),C=S(5120);const N="logo",p=(0,a.Lq)({logo:void 0,logos:void 0,logosResponse:void 0,reloadLogos:void 0,logoSaved:void 0},(0,a.on)(C.clearStoreFlags,r=>Object.assign(Object.assign({},r),{logo:void 0,logos:void 0,logosResponse:void 0,reloadLogos:void 0,logoSaved:void 0})),(0,a.on)(C.setLogo,(r,{model:O})=>Object.assign(Object.assign({},r),{logo:O})),(0,a.on)(C.loadLogos,r=>Object.assign(Object.assign({},r),{logosResponse:void 0,logos:void 0})),(0,a.on)(C.loadLogosSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{logosResponse:O})),(0,a.on)(C.loadLogosFail,r=>Object.assign(Object.assign({},r),{logosResponse:void 0,logos:void 0})),(0,a.on)(C.loadLogo,r=>Object.assign(Object.assign({},r),{logo:void 0,reloadLogos:void 0})),(0,a.on)(C.loadLogoSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{logo:O.firstItem})),(0,a.on)(C.loadLogoFail,r=>Object.assign(Object.assign({},r),{logo:void 0,reloadLogos:void 0})),(0,a.on)(C.saveLogo,r=>Object.assign(Object.assign({},r),{logo:void 0,logoSaved:void 0,reloadLogos:void 0})),(0,a.on)(C.saveLogoSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{logo:O.firstItem,logoSaved:!0,reloadLogos:!0})),(0,a.on)(C.saveLogoFail,r=>Object.assign(Object.assign({},r),{logo:void 0,logoSaved:!1,reloadLogos:void 0})),(0,a.on)(C.deleteLogo,r=>Object.assign(Object.assign({},r),{logo:void 0,reloadLogos:void 0})),(0,a.on)(C.deleteLogoSuccess,(r,{})=>Object.assign(Object.assign({},r),{reloadLogos:!0})),(0,a.on)(C.deleteLogoFail,r=>Object.assign(Object.assign({},r),{logo:void 0,reloadLogos:void 0})))},5670:(St,oe,S)=>{"use strict";S.d(oe,{qw:()=>C,Sk:()=>N,SQ:()=>ze,aZ:()=>p,e2:()=>K,eF:()=>r,LQ:()=>O,li:()=>P,yc:()=>H,ck:()=>E,u8:()=>ee,w7:()=>x});var a=S(5620);const C=(0,a.PH)("[SignableItems] Load SignableItem",(0,a.Ky)()),N=(0,a.PH)("[SignableItems] Load SignableItem Success",(0,a.Ky)()),ze=(0,a.PH)("[SignableItems] Load SignableItem Fail"),p=(0,a.PH)("[SignableItems] Load SignableItems",(0,a.Ky)()),K=(0,a.PH)("[SignableItems] Load SignableItems Success",(0,a.Ky)()),r=(0,a.PH)("[SignableItems] Load SignableItems Fail"),O=(0,a.PH)("[SignableItems] Save SignableItem",(0,a.Ky)()),P=(0,a.PH)("[SignableItems] Save SignableItem Success",(0,a.Ky)()),H=(0,a.PH)("[SignableItems] Save SignableItem Fail"),E=(0,a.PH)("[SignableItems] Delete SignableItem",(0,a.Ky)()),ee=(0,a.PH)("[SignableItems] Delete SignableItem Success",(0,a.Ky)()),x=(0,a.PH)("[SignableItems] Delete SignableItem Fail")},6959:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,setSigner:()=>N,loadSigner:()=>ze,loadSignerSuccess:()=>p,loadSignerFail:()=>K,loadSigners:()=>r,loadSignersSuccess:()=>O,loadSignersFail:()=>P,saveSigner:()=>H,saveSignerSuccess:()=>E,saveSignerFail:()=>ee,deleteSigner:()=>x,deleteSignerSuccess:()=>U,deleteSignerFail:()=>le});var a=S(5620);const C=(0,a.PH)("[Signers] Clear Store Flags"),N=(0,a.PH)("[Signers] Set Signer",(0,a.Ky)()),ze=(0,a.PH)("[Signers] Load Signer",(0,a.Ky)()),p=(0,a.PH)("[Signers] Load Signer Success",(0,a.Ky)()),K=(0,a.PH)("[Signers] Load Signer Fail"),r=(0,a.PH)("[Signers] Load Signers",(0,a.Ky)()),O=(0,a.PH)("[Signers] Load Signers Success",(0,a.Ky)()),P=(0,a.PH)("[Signers] Load Signers Fail"),H=(0,a.PH)("[Signers] Save Signer",(0,a.Ky)()),E=(0,a.PH)("[Signers] Save Signer Success",(0,a.Ky)()),ee=(0,a.PH)("[Signers] Save Signer Fail"),x=(0,a.PH)("[Signers] Delete Signer",(0,a.Ky)()),U=(0,a.PH)("[Signers] Delete Signer Success",(0,a.Ky)()),le=(0,a.PH)("[Signers] Delete Signer Fail")},4562:(St,oe,S)=>{"use strict";S.d(oe,{o$:()=>C,ze:()=>N,Rd:()=>ze,Hy:()=>p,nV:()=>K,$J:()=>r,n3:()=>O,KR:()=>P,be:()=>H,P$:()=>E,$L:()=>ee,MF:()=>x});var a=S(5620);const C=(0,a.PH)("[SigningCategorys] Load SigningCategory",(0,a.Ky)()),N=(0,a.PH)("[SigningCategorys] Load SigningCategory Success",(0,a.Ky)()),ze=(0,a.PH)("[SigningCategorys] Load SigningCategory Fail"),p=(0,a.PH)("[SigningCategories] Load SigningCategories",(0,a.Ky)()),K=(0,a.PH)("[SigningCategories] Load SigningCategories Success",(0,a.Ky)()),r=(0,a.PH)("[SigningCategories] Load SigningCategories Fail"),O=(0,a.PH)("[SigningCategories] Save SigningCategory",(0,a.Ky)()),P=(0,a.PH)("[SigningCategories] Save SigningCategory Success",(0,a.Ky)()),H=(0,a.PH)("[SigningCategories] Save SigningCategory Fail"),E=(0,a.PH)("[SigningCategories] Delete SigningCategory",(0,a.Ky)()),ee=(0,a.PH)("[SigningCategories] Delete SigningCategory Success",(0,a.Ky)()),x=(0,a.PH)("[SigningCategories] Delete SigningCategory Fail")},3478:(St,oe,S)=>{"use strict";S.d(oe,{S:()=>re,e:()=>ce});var a=S(5620),C=S(5670);const p=(0,a.Lq)({signableItem:void 0,signableItemsResponse:void 0,signableItems:void 0,reloadSignableItems:void 0,signableItemSaved:void 0},(0,a.on)(C.aZ,L=>Object.assign(Object.assign({},L),{signableItemsResponse:void 0,signableItems:void 0,signableItem:void 0})),(0,a.on)(C.e2,(L,{response:J})=>Object.assign(Object.assign({},L),{signableItemsResponse:J,signableItems:J.items})),(0,a.on)(C.eF,L=>Object.assign(Object.assign({},L),{signableItemsResponse:void 0,signableItems:void 0})),(0,a.on)(C.qw,L=>Object.assign(Object.assign({},L),{signableItem:void 0,reloadSignableItems:void 0})),(0,a.on)(C.Sk,(L,{response:J})=>Object.assign(Object.assign({},L),{signableItem:J.firstItem})),(0,a.on)(C.SQ,L=>Object.assign(Object.assign({},L),{signableItem:void 0,reloadSignableItems:void 0})),(0,a.on)(C.LQ,L=>Object.assign(Object.assign({},L),{signableItem:void 0,signableItemSaved:void 0,reloadSignableItems:void 0})),(0,a.on)(C.li,(L,{response:J})=>Object.assign(Object.assign({},L),{signableItem:J.firstItem,signableitemId:J.firstItem.id,signableItemSaved:!0,reloadSignableItems:!0})),(0,a.on)(C.yc,L=>Object.assign(Object.assign({},L),{signableItem:void 0,signableItemSaved:!1,reloadSignableItems:void 0})),(0,a.on)(C.ck,L=>Object.assign(Object.assign({},L),{signableItem:void 0,reloadSignableItems:void 0})),(0,a.on)(C.u8,(L,{})=>Object.assign(Object.assign({},L),{reloadSignableItems:!0})),(0,a.on)(C.w7,L=>Object.assign(Object.assign({},L),{signableItem:void 0,reloadSignableItems:void 0})));var r=S(6959);const H=(0,a.Lq)({signer:void 0,signers:void 0,signersResponse:void 0,reloadSigners:void 0,signerSaved:void 0},(0,a.on)(r.clearStoreFlags,L=>Object.assign(Object.assign({},L),{signer:void 0,signers:void 0,signersResponse:void 0,reloadSigners:void 0,signerSaved:void 0})),(0,a.on)(r.setSigner,(L,{model:J})=>Object.assign(Object.assign({},L),{signer:J})),(0,a.on)(r.loadSigners,L=>Object.assign(Object.assign({},L),{signersResponse:void 0,signers:void 0})),(0,a.on)(r.loadSignersSuccess,(L,{response:J})=>Object.assign(Object.assign({},L),{signersResponse:J,signers:J.items})),(0,a.on)(r.loadSignersFail,L=>Object.assign(Object.assign({},L),{signersResponse:void 0,signers:void 0})),(0,a.on)(r.loadSigner,L=>Object.assign(Object.assign({},L),{signer:void 0,reloadSigners:void 0})),(0,a.on)(r.loadSignerSuccess,(L,{response:J})=>Object.assign(Object.assign({},L),{signer:J.firstItem})),(0,a.on)(r.loadSignerFail,L=>Object.assign(Object.assign({},L),{signer:void 0,reloadSigners:void 0})),(0,a.on)(r.saveSigner,L=>Object.assign(Object.assign({},L),{signer:void 0,signerSaved:void 0,reloadSigners:void 0})),(0,a.on)(r.saveSignerSuccess,(L,{response:J})=>Object.assign(Object.assign({},L),{signer:J.firstItem,signerSaved:!0,reloadSigners:!0})),(0,a.on)(r.saveSignerFail,L=>Object.assign(Object.assign({},L),{signer:void 0,signerSaved:!1,reloadSigners:void 0})),(0,a.on)(r.deleteSigner,L=>Object.assign(Object.assign({},L),{signer:void 0,reloadSigners:void 0})),(0,a.on)(r.deleteSignerSuccess,(L,{})=>Object.assign(Object.assign({},L),{reloadSigners:!0})),(0,a.on)(r.deleteSignerFail,L=>Object.assign(Object.assign({},L),{signer:void 0,reloadSigners:void 0})));var ee=S(4562);const le=(0,a.Lq)({signingCategory:void 0,signingCategoriesResponse:void 0,signingCategories:void 0,reloadSigningCategories:void 0,signingCategorySaved:void 0},(0,a.on)(ee.Hy,L=>Object.assign(Object.assign({},L),{signingCategoriesResponse:void 0,signingCategories:void 0,signingCategory:void 0})),(0,a.on)(ee.nV,(L,{response:J})=>Object.assign(Object.assign({},L),{signingCategoriesResponse:J,signingCategories:J.items})),(0,a.on)(ee.$J,L=>Object.assign(Object.assign({},L),{signingCategoriesResponse:void 0,signingCategories:void 0})),(0,a.on)(ee.o$,L=>Object.assign(Object.assign({},L),{signingCategory:void 0,reloadSigningCategories:void 0})),(0,a.on)(ee.ze,(L,{response:J})=>Object.assign(Object.assign({},L),{signingCategory:J.firstItem})),(0,a.on)(ee.Rd,L=>Object.assign(Object.assign({},L),{signingCategory:void 0,reloadSigningCategories:void 0})),(0,a.on)(ee.n3,L=>Object.assign(Object.assign({},L),{signingCategory:void 0,signingCategorySaved:void 0,reloadSigningCategories:void 0})),(0,a.on)(ee.KR,(L,{response:J})=>Object.assign(Object.assign({},L),{signingCategory:J.firstItem,signingCategoryId:J.firstItem.id,signingCategorySaved:!0,reloadSigningCategories:!0})),(0,a.on)(ee.be,L=>Object.assign(Object.assign({},L),{signingCategory:void 0,signingCategorySaved:!1,reloadSigningCategories:void 0})),(0,a.on)(ee.P$,L=>Object.assign(Object.assign({},L),{signingCategory:void 0,reloadSigningCategories:void 0})),(0,a.on)(ee.$L,(L,{})=>Object.assign(Object.assign({},L),{reloadSigningCategories:!0})),(0,a.on)(ee.MF,L=>Object.assign(Object.assign({},L),{signingCategory:void 0,reloadSigningCategories:void 0}))),re="signer",ce=(0,a.UY)({signerStore:H,signableItemStore:p,signingCategoryStore:le})},6789:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,yT:()=>N,f:()=>ze,mf:()=>p,vq:()=>K,F4:()=>r,vK:()=>O,kS:()=>P,cJ:()=>H,RK:()=>E,b$:()=>ee,l7:()=>x,EE:()=>U,ZP:()=>le,D:()=>xe,QS:()=>re});var a=S(5620);const C=(0,a.PH)("[OrderItems] Clear Store Flags"),N=(0,a.PH)("[OrderItems] Force Reload"),ze=(0,a.PH)("[OrderItems] Set Order Item",(0,a.Ky)()),p=(0,a.PH)("[OrderItems] Clear Order Items"),K=(0,a.PH)("[OrderItems] Load OrderItem",(0,a.Ky)()),r=(0,a.PH)("[OrderItems] Load OrderItem Success",(0,a.Ky)()),O=(0,a.PH)("[OrderItems] Load OrderItem Fail"),P=(0,a.PH)("[OrderItems] Load OrderItems",(0,a.Ky)()),H=(0,a.PH)("[OrderItems] Load OrderItems Success",(0,a.Ky)()),E=(0,a.PH)("[OrderItems] Load OrderItems Fail"),ee=(0,a.PH)("[OrderItems] Save OrderItem",(0,a.Ky)()),x=(0,a.PH)("[OrderItems] Save OrderItem Success",(0,a.Ky)()),U=(0,a.PH)("[OrderItems] Save OrderItem Fail"),le=(0,a.PH)("[OrderItems] Delete OrderItem",(0,a.Ky)()),xe=(0,a.PH)("[OrderItems] Delete OrderItem Success",(0,a.Ky)()),re=(0,a.PH)("[OrderItems] Delete OrderItem Fail")},7858:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,hC:()=>N,KH:()=>ze,Z7:()=>p,R$:()=>K,QG:()=>r,AB:()=>O,cO:()=>P,Nf:()=>H,MF:()=>E,BP:()=>ee,JI:()=>x,VU:()=>U,CZ:()=>le});var a=S(5620);const C=(0,a.PH)("[OrderNotes] Clear Store Flags"),N=(0,a.PH)("[OrderNotes] Set Order Note",(0,a.Ky)()),ze=(0,a.PH)("[OrderNotes] Load OrderNote",(0,a.Ky)()),p=(0,a.PH)("[OrderNotes] Load OrderNote Success",(0,a.Ky)()),K=(0,a.PH)("[OrderNotes] Load OrderNote Fail"),r=(0,a.PH)("[OrderNotes] Load OrderNotes",(0,a.Ky)()),O=(0,a.PH)("[OrderNotes] Load OrderNotes Success",(0,a.Ky)()),P=(0,a.PH)("[OrderNotes] Load OrderNotes Fail"),H=(0,a.PH)("[OrderNotes] Save OrderNote",(0,a.Ky)()),E=(0,a.PH)("[OrderNotes] Save OrderNote Success",(0,a.Ky)()),ee=(0,a.PH)("[OrderNotes] Save OrderNote Fail"),x=(0,a.PH)("[OrderNotes] Delete OrderNote",(0,a.Ky)()),U=(0,a.PH)("[OrderNotes] Delete OrderNote Success",(0,a.Ky)()),le=(0,a.PH)("[OrderNotes] Delete OrderNote Fail")},591:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,oh:()=>N,OL:()=>ze,IT:()=>K,_t:()=>r,qm:()=>O,sP:()=>P,v7:()=>H,Pi:()=>E,TR:()=>ee,Nw:()=>x,ei:()=>U,wH:()=>ce,b5:()=>L,sF:()=>J});var a=S(5620);const C=(0,a.PH)("[Orders] Clear Store Flags"),N=(0,a.PH)("[Orders] Clear Orders"),ze=(0,a.PH)("[Orders] Set Order",(0,a.Ky)()),K=((0,a.PH)("[Orders] Set Customer",(0,a.Ky)()),(0,a.PH)("[Orders] Load Order",(0,a.Ky)())),r=(0,a.PH)("[Orders] Load Order Success",(0,a.Ky)()),O=(0,a.PH)("[Orders] Load Order Fail"),P=(0,a.PH)("[Orders] Load Orders",(0,a.Ky)()),H=(0,a.PH)("[Orders] Load Orders Success",(0,a.Ky)()),E=(0,a.PH)("[Orders] Load Orders Fail"),ee=(0,a.PH)("[Orders] Save Order",(0,a.Ky)()),x=(0,a.PH)("[Orders] Save Order Success",(0,a.Ky)()),U=(0,a.PH)("[Orders] Save Order Fail"),ce=((0,a.PH)("[Orders] Create Order From Cart",(0,a.Ky)()),(0,a.PH)("[Orders] Create Order From Cart Success",(0,a.Ky)()),(0,a.PH)("[Orders] Create Order From Cart Fail"),(0,a.PH)("[Orders] Delete Order",(0,a.Ky)())),L=(0,a.PH)("[Orders] Delete Order Success",(0,a.Ky)()),J=(0,a.PH)("[Orders] Delete Order Fail");(0,a.PH)("[Orders] Mark Order Shipped",(0,a.Ky)()),(0,a.PH)("[Orders] Mark Order Shipped Success",(0,a.Ky)()),(0,a.PH)("[Orders] Mark Order Shipped Fail"),(0,a.PH)("[Orders] Mark Order Charged",(0,a.Ky)()),(0,a.PH)("[Orders] Mark Order Charged Success",(0,a.Ky)()),(0,a.PH)("[Orders] Mark Order Charged Fail"),(0,a.PH)("[Orders] Move Order",(0,a.Ky)()),(0,a.PH)("[Orders] Move Order Success",(0,a.Ky)()),(0,a.PH)("[Orders] Move Order Fail")},924:(St,oe,S)=>{"use strict";S.d(oe,{C:()=>re});var a=S(5620),C=S(591);const p=(0,a.Lq)({order:void 0,orders:void 0,reloadOrders:void 0,orderSaved:void 0,orderDeleted:void 0},(0,a.on)(C.p3,L=>Object.assign(Object.assign({},L),{order:void 0,orderSaved:void 0,reloadOrders:void 0,orderDeleted:void 0})),(0,a.on)(C.oh,L=>Object.assign(Object.assign({},L),{orders:void 0})),(0,a.on)(C.OL,(L,{model:J})=>Object.assign(Object.assign({},L),{order:J})),(0,a.on)(C.sP,L=>Object.assign(Object.assign({},L),{orders:void 0})),(0,a.on)(C.v7,(L,{response:J})=>Object.assign(Object.assign({},L),{orders:J})),(0,a.on)(C.Pi,L=>Object.assign(Object.assign({},L),{orders:void 0})),(0,a.on)(C.IT,L=>Object.assign(Object.assign({},L),{order:void 0,reloadOrders:void 0})),(0,a.on)(C._t,(L,{response:J})=>Object.assign(Object.assign({},L),{order:J.firstItem})),(0,a.on)(C.qm,L=>Object.assign(Object.assign({},L),{order:void 0,reloadOrders:void 0})),(0,a.on)(C.TR,L=>Object.assign(Object.assign({},L),{order:void 0,orderSaved:void 0,reloadOrders:void 0})),(0,a.on)(C.Nw,(L,{response:J})=>Object.assign(Object.assign({},L),{order:J.firstItem,orderId:J.firstItem.id,orderSaved:!0,reloadOrders:!0})),(0,a.on)(C.ei,L=>Object.assign(Object.assign({},L),{order:void 0,orderSaved:!1,reloadOrders:void 0})),(0,a.on)(C.wH,L=>Object.assign(Object.assign({},L),{order:void 0,reloadOrders:void 0,orderDeleted:void 0})),(0,a.on)(C.b5,(L,{})=>Object.assign(Object.assign({},L),{reloadOrders:!0,orderDeleted:!0})),(0,a.on)(C.sF,L=>Object.assign(Object.assign({},L),{order:void 0,reloadOrders:void 0,orderDeleted:void 0})));var r=S(7858);const H=(0,a.Lq)({orderNote:void 0,orderNotes:void 0,reloadOrderNotes:void 0,orderNoteSaved:void 0},(0,a.on)(r.p3,L=>Object.assign(Object.assign({},L),{reloadOrderNotes:void 0,orderNoteSaved:void 0})),(0,a.on)(r.hC,(L,{model:J})=>Object.assign(Object.assign({},L),{orderNote:J})),(0,a.on)(r.QG,L=>Object.assign(Object.assign({},L),{orderNotes:void 0})),(0,a.on)(r.AB,(L,{response:J})=>Object.assign(Object.assign({},L),{orderNotes:J})),(0,a.on)(r.cO,L=>Object.assign(Object.assign({},L),{orderNotes:void 0})),(0,a.on)(r.KH,L=>Object.assign(Object.assign({},L),{orderNote:void 0,reloadOrderNotes:void 0})),(0,a.on)(r.Z7,(L,{response:J})=>Object.assign(Object.assign({},L),{orderNote:J.firstItem})),(0,a.on)(r.R$,L=>Object.assign(Object.assign({},L),{orderNote:void 0,reloadOrderNotes:void 0})),(0,a.on)(r.Nf,L=>Object.assign(Object.assign({},L),{orderNote:void 0,orderNoteSaved:void 0,reloadOrderNotes:void 0})),(0,a.on)(r.MF,(L,{response:J})=>Object.assign(Object.assign({},L),{orderNote:J.firstItem,ordernoteId:J.firstItem.id,orderNoteSaved:!0,reloadOrderNotes:!0})),(0,a.on)(r.BP,L=>Object.assign(Object.assign({},L),{orderNote:void 0,orderNoteSaved:!1,reloadOrderNotes:void 0})),(0,a.on)(r.JI,L=>Object.assign(Object.assign({},L),{orderNote:void 0,reloadOrderNotes:void 0})),(0,a.on)(r.VU,(L,{})=>Object.assign(Object.assign({},L),{reloadOrderNotes:!0})),(0,a.on)(r.CZ,L=>Object.assign(Object.assign({},L),{orderNote:void 0,reloadOrderNotes:void 0})));var ee=S(6789);const le=(0,a.Lq)({orderItem:void 0,orderItems:void 0,reloadOrderItem:void 0,reloadOrderItems:void 0,orderItemSaved:void 0},(0,a.on)(ee.mf,L=>Object.assign(Object.assign({},L),{orderItem:void 0,orderItems:void 0})),(0,a.on)(ee.p3,L=>Object.assign(Object.assign({},L),{reloadOrderItem:void 0,reloadOrderItems:void 0,orderItemSaved:void 0})),(0,a.on)(ee.yT,L=>Object.assign(Object.assign({},L),{reloadOrderItem:!0,reloadOrderItems:!0})),(0,a.on)(ee.f,(L,{model:J})=>Object.assign(Object.assign({},L),{orderItem:J})),(0,a.on)(ee.kS,L=>Object.assign(Object.assign({},L),{orderItems:void 0})),(0,a.on)(ee.cJ,(L,{response:J})=>Object.assign(Object.assign({},L),{orderItems:J})),(0,a.on)(ee.RK,L=>Object.assign(Object.assign({},L),{orderItems:void 0})),(0,a.on)(ee.vq,L=>Object.assign(Object.assign({},L),{orderItem:void 0,reloadOrderItems:void 0})),(0,a.on)(ee.F4,(L,{response:J})=>Object.assign(Object.assign({},L),{orderItem:J.firstItem})),(0,a.on)(ee.vK,L=>Object.assign(Object.assign({},L),{orderItem:void 0,reloadOrderItems:void 0})),(0,a.on)(ee.b$,L=>Object.assign(Object.assign({},L),{orderItem:void 0,orderItemSaved:void 0,reloadOrderItems:void 0})),(0,a.on)(ee.l7,(L,{response:J})=>Object.assign(Object.assign({},L),{orderItem:J.firstItem,orderitemId:J.firstItem.id,orderItemSaved:!0,reloadOrderItems:!0})),(0,a.on)(ee.EE,L=>Object.assign(Object.assign({},L),{orderItem:void 0,orderItemSaved:!1,reloadOrderItems:void 0})),(0,a.on)(ee.ZP,L=>Object.assign(Object.assign({},L),{orderItem:void 0,reloadOrderItems:void 0})),(0,a.on)(ee.D,(L,{})=>Object.assign(Object.assign({},L),{reloadOrderItems:!0})),(0,a.on)(ee.QS,L=>Object.assign(Object.assign({},L),{orderItem:void 0,reloadOrderItems:void 0}))),re="order";(0,a.UY)({orderStore:p,orderNoteStore:H,orderItemStore:le})},7027:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,Gj:()=>N,$K:()=>ze,i7:()=>p,Wg:()=>K,mF:()=>r,OH:()=>O,xb:()=>P,cD:()=>H,EE:()=>E,ac:()=>ee,NU:()=>x,Te:()=>U,Zn:()=>le});var a=S(5620);const C=(0,a.PH)("[CreditVouchers] Clear Store Flags"),N=(0,a.PH)("[PaymentProfiles] Set Credit Voucher",(0,a.Ky)()),ze=(0,a.PH)("[CreditVouchers] Load CreditVoucher",(0,a.Ky)()),p=(0,a.PH)("[CreditVouchers] Load CreditVoucher Success",(0,a.Ky)()),K=(0,a.PH)("[CreditVouchers] Load CreditVoucher Fail"),r=(0,a.PH)("[CreditVouchers] Load CreditVouchers",(0,a.Ky)()),O=(0,a.PH)("[CreditVouchers] Load CreditVouchers Success",(0,a.Ky)()),P=(0,a.PH)("[CreditVouchers] Load CreditVouchers Fail"),H=(0,a.PH)("[CreditVouchers] Save CreditVoucher",(0,a.Ky)()),E=(0,a.PH)("[CreditVouchers] Save CreditVoucher Success",(0,a.Ky)()),ee=(0,a.PH)("[CreditVouchers] Save CreditVoucher Fail"),x=(0,a.PH)("[CreditVouchers] Delete CreditVoucher",(0,a.Ky)()),U=(0,a.PH)("[CreditVouchers] Delete CreditVoucher Success",(0,a.Ky)()),le=(0,a.PH)("[CreditVouchers] Delete CreditVoucher Fail")},9880:(St,oe,S)=>{"use strict";S.d(oe,{br:()=>C,X6:()=>N,Z8:()=>ze,KZ:()=>p,$C:()=>K,Pe:()=>r,vZ:()=>O,bW:()=>P,J6:()=>H});var a=S(5620);const C=(0,a.PH)("[MerchantCustomers] Load MerchantCustomer",(0,a.Ky)()),N=(0,a.PH)("[MerchantCustomers] Load MerchantCustomer Success",(0,a.Ky)()),ze=(0,a.PH)("[MerchantCustomers] Load MerchantCustomer Fail"),p=(0,a.PH)("[MerchantCustomers] Load MerchantCustomers",(0,a.Ky)()),K=(0,a.PH)("[MerchantCustomers] Load MerchantCustomers Success",(0,a.Ky)()),r=(0,a.PH)("[MerchantCustomers] Load MerchantCustomers Fail"),O=(0,a.PH)("[MerchantCustomers] Delete MerchantCustomer",(0,a.Ky)()),P=(0,a.PH)("[MerchantCustomers] Delete MerchantCustomer Success",(0,a.Ky)()),H=(0,a.PH)("[MerchantCustomers] Delete MerchantCustomer Fail")},9022:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,Oq:()=>N,NY:()=>ze,re:()=>p,qu:()=>K,lm:()=>r,_Z:()=>O,Y8:()=>P,XC:()=>H,s1:()=>E,zi:()=>ee,E6:()=>x,F8:()=>U,Lh:()=>le});var a=S(5620);const C=(0,a.PH)("[PaymentProfiles] Clear Store Flags"),N=(0,a.PH)("[PaymentProfiles] Set PaymentProfile",(0,a.Ky)()),ze=(0,a.PH)("[PaymentProfiles] Load PaymentProfile",(0,a.Ky)()),p=(0,a.PH)("[PaymentProfiles] Load PaymentProfile Success",(0,a.Ky)()),K=(0,a.PH)("[PaymentProfiles] Load PaymentProfile Fail"),r=(0,a.PH)("[PaymentProfiles] Load PaymentProfiles",(0,a.Ky)()),O=(0,a.PH)("[PaymentProfiles] Load PaymentProfiles Success",(0,a.Ky)()),P=(0,a.PH)("[PaymentProfiles] Load PaymentProfiles Fail"),H=(0,a.PH)("[PaymentProfiles] Save PaymentProfile",(0,a.Ky)()),E=(0,a.PH)("[PaymentProfiles] Save PaymentProfile Success",(0,a.Ky)()),ee=(0,a.PH)("[PaymentProfiles] Save PaymentProfile Fail"),x=(0,a.PH)("[PaymentProfiles] Delete PaymentProfile",(0,a.Ky)()),U=(0,a.PH)("[PaymentProfiles] Delete PaymentProfile Success",(0,a.Ky)()),le=(0,a.PH)("[PaymentProfiles] Delete PaymentProfile Fail")},796:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,Gm:()=>N,j3:()=>ze,ke:()=>p,IM:()=>K,ZX:()=>r,G:()=>O,Ks:()=>P,UU:()=>H,ro:()=>E,VD:()=>ee,eg:()=>x,cn:()=>U});var a=S(5620);const C=(0,a.PH)("[Transactions] Clear Store Flags"),N=(0,a.PH)("[Transactions] Load Transaction",(0,a.Ky)()),ze=(0,a.PH)("[Transactions] Load Transaction Success",(0,a.Ky)()),p=(0,a.PH)("[Transactions] Load Transaction Fail"),K=(0,a.PH)("[Transactions] Load Transactions",(0,a.Ky)()),r=(0,a.PH)("[Transactions] Load Transactions Success",(0,a.Ky)()),O=(0,a.PH)("[Transactions] Load Transactions Fail"),P=(0,a.PH)("[Transactions] Delete Transaction",(0,a.Ky)()),H=(0,a.PH)("[Transactions] Delete Transaction Success",(0,a.Ky)()),E=(0,a.PH)("[Transactions] Delete Transaction Fail"),ee=(0,a.PH)("[Transactions] Process Transaction",(0,a.Ky)()),x=(0,a.PH)("[Transactions] Process Transaction Success",(0,a.Ky)()),U=(0,a.PH)("[Transactions] Process Transaction Fail")},5524:(St,oe,S)=>{"use strict";S.d(oe,{y:()=>ge});var a=S(5620),C=S(7027);const p=(0,a.Lq)({creditVoucher:void 0,creditVouchers:void 0,reloadCreditVouchers:void 0,creditVoucherSaved:void 0},(0,a.on)(C.p3,Ce=>Object.assign(Object.assign({},Ce),{reloadCreditVouchers:void 0,creditVoucherSaved:void 0})),(0,a.on)(C.Gj,(Ce,{model:e})=>Object.assign(Object.assign({},Ce),{creditVoucher:e})),(0,a.on)(C.mF,Ce=>Object.assign(Object.assign({},Ce),{creditVouchers:void 0})),(0,a.on)(C.OH,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{creditVouchers:e})),(0,a.on)(C.xb,Ce=>Object.assign(Object.assign({},Ce),{creditVouchers:void 0})),(0,a.on)(C.$K,Ce=>Object.assign(Object.assign({},Ce),{creditVoucher:void 0,reloadCreditVouchers:void 0})),(0,a.on)(C.i7,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{creditVoucher:e.firstItem})),(0,a.on)(C.Wg,Ce=>Object.assign(Object.assign({},Ce),{creditVoucher:void 0,reloadCreditVouchers:void 0})),(0,a.on)(C.cD,Ce=>Object.assign(Object.assign({},Ce),{creditVoucher:void 0,creditVoucherSaved:void 0,reloadCreditVouchers:void 0})),(0,a.on)(C.EE,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{creditVoucher:e.firstItem,creditVoucherSaved:!0,reloadCreditVouchers:!0})),(0,a.on)(C.ac,Ce=>Object.assign(Object.assign({},Ce),{creditVoucher:void 0,creditVoucherSaved:!1,reloadCreditVouchers:void 0})),(0,a.on)(C.NU,Ce=>Object.assign(Object.assign({},Ce),{creditVoucher:void 0,reloadCreditVouchers:void 0})),(0,a.on)(C.Te,(Ce,{})=>Object.assign(Object.assign({},Ce),{reloadCreditVouchers:!0})),(0,a.on)(C.Zn,Ce=>Object.assign(Object.assign({},Ce),{creditVoucher:void 0,reloadCreditVouchers:void 0})));var r=S(9880);const H=(0,a.Lq)({merchantCustomer:void 0,merchantCustomerPaymentMethods:void 0,reloadMerchantCustomerPaymentMethods:void 0,merchantCustomerSaved:void 0},(0,a.on)(r.KZ,Ce=>Object.assign(Object.assign({},Ce),{merchantCustomerPaymentMethods:void 0})),(0,a.on)(r.$C,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{merchantCustomerPaymentMethods:e.items})),(0,a.on)(r.Pe,Ce=>Object.assign(Object.assign({},Ce),{merchantCustomerPaymentMethods:void 0})),(0,a.on)(r.br,Ce=>Object.assign(Object.assign({},Ce),{merchantCustomer:void 0,reloadMerchantCustomers:void 0})),(0,a.on)(r.X6,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{merchantCustomer:e.firstItem})),(0,a.on)(r.Z8,Ce=>Object.assign(Object.assign({},Ce),{merchantCustomer:void 0,reloadMerchantCustomers:void 0})),(0,a.on)(r.vZ,Ce=>Object.assign(Object.assign({},Ce),{merchantCustomerPaymentMethods:void 0,reloadMerchantCustomerPaymentMethodss:void 0})),(0,a.on)(r.bW,(Ce,{})=>Object.assign(Object.assign({},Ce),{reloadMerchantCustomerPaymentMethodss:!0})),(0,a.on)(r.J6,Ce=>Object.assign(Object.assign({},Ce),{merchantCustomerPaymentMethods:void 0,reloadMerchantCustomerPaymentMethodss:void 0})));var ee=S(9022);const le=(0,a.Lq)({paymentProfile:void 0,paymentProfiles:void 0,reloadPaymentProfiles:void 0,paymentProfileSaved:void 0,paymentProfileDeleted:void 0},(0,a.on)(ee.p3,Ce=>Object.assign(Object.assign({},Ce),{reloadPaymentProfiles:void 0,paymentProfileSaved:void 0,paymentProfileDeleted:void 0})),(0,a.on)(ee.Oq,(Ce,{model:e})=>Object.assign(Object.assign({},Ce),{paymentProfile:e})),(0,a.on)(ee.lm,Ce=>Object.assign(Object.assign({},Ce),{paymentProfiles:void 0})),(0,a.on)(ee._Z,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{paymentProfiles:e.items})),(0,a.on)(ee.Y8,Ce=>Object.assign(Object.assign({},Ce),{paymentProfiles:void 0})),(0,a.on)(ee.NY,Ce=>Object.assign(Object.assign({},Ce),{paymentProfile:void 0,reloadPaymentProfiles:void 0})),(0,a.on)(ee.re,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{paymentProfile:e.firstItem})),(0,a.on)(ee.qu,Ce=>Object.assign(Object.assign({},Ce),{paymentProfile:void 0,reloadPaymentProfiles:void 0})),(0,a.on)(ee.XC,Ce=>Object.assign(Object.assign({},Ce),{paymentProfile:void 0,paymentProfileSaved:void 0,reloadPaymentProfiles:void 0})),(0,a.on)(ee.s1,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{paymentProfile:e.firstItem,paymentProfileSaved:!0,reloadPaymentProfiles:!0})),(0,a.on)(ee.zi,Ce=>Object.assign(Object.assign({},Ce),{paymentProfile:void 0,paymentProfileSaved:!1,reloadPaymentProfiles:void 0})),(0,a.on)(ee.E6,Ce=>Object.assign(Object.assign({},Ce),{paymentProfile:void 0,reloadPaymentProfiles:void 0,paymentProfileDeleted:void 0})),(0,a.on)(ee.F8,(Ce,{})=>Object.assign(Object.assign({},Ce),{reloadPaymentProfiles:!0,paymentProfileDeleted:!0})),(0,a.on)(ee.Lh,Ce=>Object.assign(Object.assign({},Ce),{paymentProfile:void 0,reloadPaymentProfiles:void 0,paymentProfileDeleted:void 0})));var re=S(796);const J=(0,a.Lq)({transaction:void 0,transactionsResponse:void 0,reloadTransactions:void 0,transactionProcessed:void 0,transactionDeleted:void 0},(0,a.on)(re.p3,Ce=>Object.assign(Object.assign({},Ce),{transaction:void 0,reloadTransactions:void 0,transactionProcessed:void 0,transactionDeleted:void 0})),(0,a.on)(re.IM,Ce=>Object.assign(Object.assign({},Ce),{transactionsResponse:void 0})),(0,a.on)(re.ZX,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{transactionsResponse:e})),(0,a.on)(re.G,Ce=>Object.assign(Object.assign({},Ce),{transactionsResponse:void 0})),(0,a.on)(re.Gm,Ce=>Object.assign(Object.assign({},Ce),{transaction:void 0,reloadTransactions:void 0})),(0,a.on)(re.j3,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{transaction:e.firstItem})),(0,a.on)(re.ke,Ce=>Object.assign(Object.assign({},Ce),{transaction:void 0,reloadTransactions:void 0})),(0,a.on)(re.VD,Ce=>Object.assign(Object.assign({},Ce),{transaction:void 0,transactionProcessed:void 0,reloadTransactions:void 0})),(0,a.on)(re.eg,(Ce,{response:e})=>Object.assign(Object.assign({},Ce),{transactionProcessed:!0,transaction:e.firstItem,reloadTransactions:!0})),(0,a.on)(re.cn,Ce=>Object.assign(Object.assign({},Ce),{transaction:void 0,transactionProcessed:void 0,reloadTransactions:void 0})),(0,a.on)(re.Ks,Ce=>Object.assign(Object.assign({},Ce),{transaction:void 0,reloadTransactions:void 0,transactionDeleted:void 0})),(0,a.on)(re.UU,(Ce,{})=>Object.assign(Object.assign({},Ce),{reloadTransactions:!0,transactionDeleted:!0})),(0,a.on)(re.ro,Ce=>Object.assign(Object.assign({},Ce),{transaction:void 0,reloadTransactions:void 0,transactionDeleted:void 0}))),ge="payment";(0,a.UY)({transactionStore:J,paymentProfileStore:le,creditVoucherStore:p,merchantCustomerStore:H})},4083:(St,oe,S)=>{"use strict";S.d(oe,{aP:()=>N,b8:()=>ze,qv:()=>p,mD:()=>K,gw:()=>r,de:()=>O,K8:()=>P,Pp:()=>H,oi:()=>E,uF:()=>ee,GH:()=>x,kO:()=>U});var a=S(5620);(0,a.PH)("[ProductCategories] Clear Store Flags");const N=(0,a.PH)("[ProductCategories] Load ProductCategory",(0,a.Ky)()),ze=(0,a.PH)("[ProductCategories] Load ProductCategory Success",(0,a.Ky)()),p=(0,a.PH)("[ProductCategories] Load ProductCategory Fail"),K=(0,a.PH)("[ProductCategories] Load ProductCategories"),r=(0,a.PH)("[ProductCategories] Load ProductCategories Success",(0,a.Ky)()),O=(0,a.PH)("[ProductCategories] Load ProductCategories Fail"),P=(0,a.PH)("[ProductCategories] Save ProductCategory",(0,a.Ky)()),H=(0,a.PH)("[ProductCategories] Save ProductCategory Success",(0,a.Ky)()),E=(0,a.PH)("[ProductCategories] Save ProductCategory Fail"),ee=(0,a.PH)("[ProductCategories] Delete ProductCategory",(0,a.Ky)()),x=(0,a.PH)("[ProductCategories] Delete ProductCategory Success",(0,a.Ky)()),U=(0,a.PH)("[ProductCategories] Delete ProductCategory Fail")},3100:(St,oe,S)=>{"use strict";S.d(oe,{LX:()=>N,LQ:()=>ze,NE:()=>p,QD:()=>K,UE:()=>r,ET:()=>O,gg:()=>P,Xr:()=>H,GI:()=>E,Ir:()=>ee,Bl:()=>x,I3:()=>U});var a=S(5620);(0,a.PH)("[Products] Clear Store Flags");const N=(0,a.PH)("[Products] Load Product",(0,a.Ky)()),ze=(0,a.PH)("[Products] Load Product Success",(0,a.Ky)()),p=(0,a.PH)("[Products] Load Product Fail"),K=(0,a.PH)("[Products] Load Products",(0,a.Ky)()),r=(0,a.PH)("[Products] Load Products Success",(0,a.Ky)()),O=(0,a.PH)("[Products] Load Products Fail"),P=(0,a.PH)("[Products] Save Product",(0,a.Ky)()),H=(0,a.PH)("[Products] Save Product Success",(0,a.Ky)()),E=(0,a.PH)("[Products] Save Product Fail"),ee=(0,a.PH)("[Products] Delete Product",(0,a.Ky)()),x=(0,a.PH)("[Products] Delete Product Success",(0,a.Ky)()),U=(0,a.PH)("[Products] Delete Product Fail")},5464:(St,oe,S)=>{"use strict";S.d(oe,{Z:()=>ee});var a=S(5620),C=S(3100);const p=(0,a.Lq)({product:void 0,products:void 0,reloadProducts:void 0,productSaved:void 0,basicCertProductId:void 0,witnessProtectionCertProductId:void 0,letterProductId:void 0,firstLookProductId:void 0,encapsulationProductId:void 0},(0,a.on)(C.QD,U=>Object.assign(Object.assign({},U),{products:void 0})),(0,a.on)(C.UE,(U,{response:le})=>{var xe,re,ce,L,J;return Object.assign(Object.assign({},U),{products:le.items,basicCertProductId:null===(xe=le.items.find(we=>"Basic Cert"===we.title))||void 0===xe?void 0:xe.id,witnessProtectionCertProductId:null===(re=le.items.find(we=>"Witness Protection"===we.title))||void 0===re?void 0:re.id,letterProductId:null===(ce=le.items.find(we=>"Letter"===we.title))||void 0===ce?void 0:ce.id,firstLookProductId:null===(L=le.items.find(we=>"First Look"===we.title))||void 0===L?void 0:L.id,encapsulationProductId:null===(J=le.items.find(we=>"Encapsulation"===we.title))||void 0===J?void 0:J.id})}),(0,a.on)(C.ET,U=>Object.assign(Object.assign({},U),{products:void 0})),(0,a.on)(C.LX,U=>Object.assign(Object.assign({},U),{product:void 0,reloadProducts:void 0})),(0,a.on)(C.LQ,(U,{response:le})=>Object.assign(Object.assign({},U),{product:le.firstItem})),(0,a.on)(C.NE,U=>Object.assign(Object.assign({},U),{product:void 0,reloadProducts:void 0})),(0,a.on)(C.gg,U=>Object.assign(Object.assign({},U),{product:void 0,productSaved:void 0,reloadProducts:void 0})),(0,a.on)(C.Xr,(U,{response:le})=>Object.assign(Object.assign({},U),{product:le.firstItem,productId:le.firstItem.id,productSaved:!0,reloadProducts:!0})),(0,a.on)(C.GI,U=>Object.assign(Object.assign({},U),{product:void 0,productSaved:!1,reloadProducts:void 0})),(0,a.on)(C.Ir,U=>Object.assign(Object.assign({},U),{product:void 0,reloadProducts:void 0})),(0,a.on)(C.Bl,(U,{})=>Object.assign(Object.assign({},U),{reloadProducts:!0})),(0,a.on)(C.I3,U=>Object.assign(Object.assign({},U),{product:void 0,reloadProducts:void 0})));var r=S(4083);const H=(0,a.Lq)({productcategory:void 0,productcategorysResponse:void 0,reloadProductCategorys:void 0,productcategorySaved:void 0},(0,a.on)(r.mD,U=>Object.assign(Object.assign({},U),{productcategorysResponse:void 0})),(0,a.on)(r.gw,(U,{response:le})=>Object.assign(Object.assign({},U),{productcategorysResponse:le})),(0,a.on)(r.de,U=>Object.assign(Object.assign({},U),{productcategorysResponse:void 0})),(0,a.on)(r.aP,U=>Object.assign(Object.assign({},U),{productcategory:void 0,reloadProductCategorys:void 0})),(0,a.on)(r.b8,(U,{response:le})=>Object.assign(Object.assign({},U),{productcategory:le.firstItem})),(0,a.on)(r.qv,U=>Object.assign(Object.assign({},U),{productcategory:void 0,reloadProductCategorys:void 0})),(0,a.on)(r.K8,U=>Object.assign(Object.assign({},U),{productcategory:void 0,productcategorySaved:void 0,reloadProductCategorys:void 0})),(0,a.on)(r.Pp,(U,{response:le})=>Object.assign(Object.assign({},U),{productcategory:le.firstItem,productcategoryId:le.firstItem.id,productcategorySaved:!0,reloadProductCategorys:!0})),(0,a.on)(r.oi,U=>Object.assign(Object.assign({},U),{productcategory:void 0,productcategorySaved:!1,reloadProductCategorys:void 0})),(0,a.on)(r.uF,U=>Object.assign(Object.assign({},U),{productcategory:void 0,reloadProductCategorys:void 0})),(0,a.on)(r.GH,(U,{})=>Object.assign(Object.assign({},U),{reloadProductCategorys:!0})),(0,a.on)(r.kO,U=>Object.assign(Object.assign({},U),{productcategory:void 0,reloadProductCategorys:void 0}))),ee="product";(0,a.UY)({productStore:p,productCategoryStore:H})},6678:(St,oe,S)=>{"use strict";S.d(oe,{nR:()=>ze});var a=S(5620),C=S(5464);const N=(0,a.ZF)(C.Z),ze=(0,a.P1)(N,x=>x.productStore.products);(0,a.P1)(N,x=>x.productStore.product),(0,a.P1)(N,x=>x.productStore.reloadProducts),(0,a.P1)(N,x=>x.productStore.productSaved),(0,a.P1)(N,x=>x.productStore.letterProductId),(0,a.P1)(N,x=>x.productStore.witnessProtectionCertProductId),(0,a.P1)(N,x=>x.productStore.basicCertProductId),(0,a.P1)(N,x=>x.productStore.firstLookProductId),(0,a.P1)(N,x=>x.productStore.encapsulationProductId)},8086:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,LS:()=>N,oi:()=>ze,NP:()=>p,Vi:()=>K,XD:()=>r,rm:()=>O,OW:()=>P,OK:()=>H,PI:()=>E,K1:()=>ee,wz:()=>x,wD:()=>U,zY:()=>le});var a=S(5620);const C=(0,a.PH)("[ReceivedShipments] Clear Store Flags"),N=(0,a.PH)("[ReceivedShipments] Set Item",(0,a.Ky)()),ze=(0,a.PH)("[ReceivedShipments] Load ReceivedShipment",(0,a.Ky)()),p=(0,a.PH)("[ReceivedShipments] Load ReceivedShipment Success",(0,a.Ky)()),K=(0,a.PH)("[ReceivedShipments] Load ReceivedShipment Fail"),r=(0,a.PH)("[ReceivedShipments] Load ReceivedShipments",(0,a.Ky)()),O=(0,a.PH)("[ReceivedShipments] Load ReceivedShipments Success",(0,a.Ky)()),P=(0,a.PH)("[ReceivedShipments] Load ReceivedShipments Fail"),H=(0,a.PH)("[ReceivedShipments] Save ReceivedShipment",(0,a.Ky)()),E=(0,a.PH)("[ReceivedShipments] Save ReceivedShipment Success",(0,a.Ky)()),ee=(0,a.PH)("[ReceivedShipments] Save ReceivedShipment Fail"),x=(0,a.PH)("[ReceivedShipments] Delete ReceivedShipment",(0,a.Ky)()),U=(0,a.PH)("[ReceivedShipments] Delete ReceivedShipment Success",(0,a.Ky)()),le=(0,a.PH)("[ReceivedShipments] Delete ReceivedShipment Fail")},3096:(St,oe,S)=>{"use strict";S.d(oe,{vv:()=>N});var a=S(5620),C=S(8086);const N="receivedShipment";(0,a.Lq)({item:void 0,items:void 0,reloadItems:void 0,itemSaved:void 0},(0,a.on)(C.p3,r=>Object.assign(Object.assign({},r),{reloadItems:void 0,itemSaved:void 0})),(0,a.on)(C.LS,(r,{model:O})=>Object.assign(Object.assign({},r),{item:O})),(0,a.on)(C.XD,r=>Object.assign(Object.assign({},r),{items:void 0})),(0,a.on)(C.rm,(r,{response:O})=>Object.assign(Object.assign({},r),{items:O})),(0,a.on)(C.OW,r=>Object.assign(Object.assign({},r),{items:void 0})),(0,a.on)(C.oi,r=>Object.assign(Object.assign({},r),{item:void 0,reloadItems:void 0})),(0,a.on)(C.NP,(r,{response:O})=>Object.assign(Object.assign({},r),{item:O.firstItem})),(0,a.on)(C.Vi,r=>Object.assign(Object.assign({},r),{item:void 0,reloadItems:void 0})),(0,a.on)(C.OK,r=>Object.assign(Object.assign({},r),{item:void 0,itemSaved:void 0,reloadItems:void 0})),(0,a.on)(C.PI,(r,{response:O})=>Object.assign(Object.assign({},r),{item:O.firstItem,itemId:O.firstItem.id,itemSaved:!0,reloadItems:!0})),(0,a.on)(C.K1,r=>Object.assign(Object.assign({},r),{item:void 0,itemSaved:!1,reloadItems:void 0})),(0,a.on)(C.wz,r=>Object.assign(Object.assign({},r),{item:void 0,reloadItems:void 0})),(0,a.on)(C.wD,(r,{})=>Object.assign(Object.assign({},r),{reloadItems:!0})),(0,a.on)(C.zY,r=>Object.assign(Object.assign({},r),{item:void 0,reloadItems:void 0})))},851:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,wo:()=>N,Xj:()=>ze,pE:()=>p,ad:()=>K,AD:()=>r,YK:()=>O,eP:()=>P,uX:()=>H,q2:()=>E,EU:()=>ee,x0:()=>x,gU:()=>U,XE:()=>le,Zm:()=>xe,Dn:()=>re,O6:()=>ce,lh:()=>L,qg:()=>J,al:()=>we,zl:()=>ge,Kq:()=>fe,gk:()=>Ce,IS:()=>e,gt:()=>z,Ws:()=>je,fz:()=>rt,kU:()=>it,z4:()=>ct,_k:()=>g,SJ:()=>qe,dD:()=>Ve,u3:()=>He,QW:()=>X,X0:()=>Le,t5:()=>Te,DJ:()=>Ze,l6:()=>he,Jf:()=>Ne,x_:()=>Me});var a=S(5620);const C=(0,a.PH)("[Shipments] Clear Store Flags"),N=(0,a.PH)("[Shipments] Set Shipment",(0,a.Ky)()),ze=(0,a.PH)("[Shipments] Load Shipment",(0,a.Ky)()),p=(0,a.PH)("[Shipments] Load Shipment Success",(0,a.Ky)()),K=(0,a.PH)("[Shipments] Load Shipment Fail"),r=(0,a.PH)("[Shipments] Load Shipments",(0,a.Ky)()),O=(0,a.PH)("[Shipments] Load Shipments Success",(0,a.Ky)()),P=(0,a.PH)("[Shipments] Load Shipments Fail"),H=(0,a.PH)("[Shipments] Save Shipment",(0,a.Ky)()),E=(0,a.PH)("[Shipments] Save Shipment Success",(0,a.Ky)()),ee=(0,a.PH)("[Shipments] Save Shipment Fail"),x=(0,a.PH)("[Shipments] Delete Shipment",(0,a.Ky)()),U=(0,a.PH)("[Shipments] Delete Shipment Success",(0,a.Ky)()),le=(0,a.PH)("[Shipments] Delete Shipment Fail"),xe=(0,a.PH)("[Shipping] Verify Address",(0,a.Ky)()),re=(0,a.PH)("[Shipping] Verify Address Success",(0,a.Ky)()),ce=(0,a.PH)("[Shipping] Verify Address Fail"),L=(0,a.PH)("[Shipping] Load Printers"),J=(0,a.PH)("[Shipping] Load Printers Success",(0,a.Ky)()),we=(0,a.PH)("[Shipping] Load Printers Fail"),ge=(0,a.PH)("[Shipping] Calculate Rates",(0,a.Ky)()),fe=(0,a.PH)("[Shipping] Calculate Rates Success",(0,a.Ky)()),Ce=(0,a.PH)("[Shipping] Calculate Rates Fail"),e=(0,a.PH)("[Shipping] Create Shipping Label",(0,a.Ky)()),z=(0,a.PH)("[Shipping] Create Shipping Label Success",(0,a.Ky)()),je=(0,a.PH)("[Shipping] Create Shipping Label Fail"),rt=(0,a.PH)("[Shipping] Create Quick Shipments",(0,a.Ky)()),it=(0,a.PH)("[Shipping] Create Quick Shipments Success",(0,a.Ky)()),ct=(0,a.PH)("[Shipping] Create Quick Shipments Fail"),g=(0,a.PH)("[Shipping] Print Shipments",(0,a.Ky)()),qe=(0,a.PH)("[Shipping] Print Shipments Success",(0,a.Ky)()),Ve=(0,a.PH)("[Shipping] Print Shipments Fail"),He=(0,a.PH)("[Shipping] Load Carriers"),X=(0,a.PH)("[Shipping] Load Carriers Success",(0,a.Ky)()),Le=(0,a.PH)("[Shipping] Load Carrier Services",(0,a.Ky)()),Te=(0,a.PH)("[Shipping] Load Carrier Services Success",(0,a.Ky)()),Ze=(0,a.PH)("[Shipping] Load Carrier Package Types",(0,a.Ky)()),he=(0,a.PH)("[Shipping] Load Carrier Package Types Success",(0,a.Ky)()),Ne=(0,a.PH)("[Shipping] Load Ship From Addresses"),Me=(0,a.PH)("[Shipping] Load Ship From Addresses Success",(0,a.Ky)())},7814:(St,oe,S)=>{"use strict";S.d(oe,{qA:()=>N});var a=S(5620),C=S(851);const N="shipping";(0,a.Lq)({shipment:void 0,shipments:void 0,reloadShipments:void 0,shipmentSaved:void 0,shipmentDeleted:void 0,verifyAddressResponse:void 0,printers:void 0,calculateRatesResponse:void 0,createShippingLabelResponse:void 0,carriers:void 0,carrierServices:void 0,carrierPackageTypes:void 0,shipFromAddresses:void 0},(0,a.on)(C.p3,r=>Object.assign(Object.assign({},r),{reloadShipments:void 0,shipmentSaved:void 0,shipmentDeleted:void 0,verifyAddressResponse:void 0,calculateRatesResponse:void 0,createShippingLabelResponse:void 0})),(0,a.on)(C.wo,(r,{model:O})=>Object.assign(Object.assign({},r),{shipment:O})),(0,a.on)(C.AD,r=>Object.assign(Object.assign({},r),{shipments:void 0,shipmentSaved:void 0})),(0,a.on)(C.YK,(r,{response:O})=>Object.assign(Object.assign({},r),{shipments:O})),(0,a.on)(C.eP,r=>Object.assign(Object.assign({},r),{shipments:void 0})),(0,a.on)(C.Xj,r=>Object.assign(Object.assign({},r),{shipment:void 0,reloadShipments:void 0,shipmentSaved:void 0})),(0,a.on)(C.pE,(r,{response:O})=>Object.assign(Object.assign({},r),{shipment:O.firstItem})),(0,a.on)(C.ad,r=>Object.assign(Object.assign({},r),{shipment:void 0,reloadShipments:void 0})),(0,a.on)(C.uX,r=>Object.assign(Object.assign({},r),{shipment:void 0,shipmentSaved:void 0,reloadShipments:void 0})),(0,a.on)(C.q2,(r,{response:O})=>Object.assign(Object.assign({},r),{shipment:O.firstItem,shipmentId:O.firstItem.id,shipmentSaved:!0,reloadShipments:!0})),(0,a.on)(C.EU,r=>Object.assign(Object.assign({},r),{shipment:void 0,shipmentSaved:!1,reloadShipments:void 0})),(0,a.on)(C.x0,r=>Object.assign(Object.assign({},r),{shipment:void 0,reloadShipments:void 0})),(0,a.on)(C.gU,(r,{})=>Object.assign(Object.assign({},r),{reloadShipments:!0,shipmentDeleted:!0})),(0,a.on)(C.XE,r=>Object.assign(Object.assign({},r),{shipment:void 0,reloadShipments:void 0})),(0,a.on)(C.Zm,r=>Object.assign(Object.assign({},r),{verifyAddressResponse:void 0})),(0,a.on)(C.Dn,(r,{response:O})=>Object.assign(Object.assign({},r),{verifyAddressResponse:O})),(0,a.on)(C.O6,r=>Object.assign(Object.assign({},r),{verifyAddressResponse:void 0})),(0,a.on)(C.lh,r=>Object.assign(Object.assign({},r),{printers:void 0})),(0,a.on)(C.qg,(r,{response:O})=>Object.assign(Object.assign({},r),{printers:O.items})),(0,a.on)(C.al,r=>Object.assign(Object.assign({},r),{printers:void 0})),(0,a.on)(C.zl,r=>Object.assign(Object.assign({},r),{calculateRatesResponse:void 0})),(0,a.on)(C.Kq,(r,{response:O})=>Object.assign(Object.assign({},r),{calculateRatesResponse:O})),(0,a.on)(C.gk,r=>Object.assign(Object.assign({},r),{calculateRatesResponse:void 0})),(0,a.on)(C.IS,r=>Object.assign(Object.assign({},r),{createShippingLabelResponse:void 0})),(0,a.on)(C.gt,(r,{response:O})=>Object.assign(Object.assign({},r),{createShippingLabelResponse:O})),(0,a.on)(C.Ws,r=>Object.assign(Object.assign({},r),{createShippingLabelResponse:void 0})),(0,a.on)(C.fz,r=>Object.assign(Object.assign({},r),{createQuickShipmentResponse:void 0})),(0,a.on)(C.kU,(r,{response:O})=>Object.assign(Object.assign({},r),{createQuickShipmentResponse:O})),(0,a.on)(C.z4,r=>Object.assign(Object.assign({},r),{createQuickShipmentResponse:void 0})),(0,a.on)(C._k,r=>Object.assign(Object.assign({},r),{printShipmentsResponse:void 0})),(0,a.on)(C.SJ,(r,{response:O})=>Object.assign(Object.assign({},r),{printShipmentsResponse:O})),(0,a.on)(C.dD,r=>Object.assign(Object.assign({},r),{printShipmentsResponse:void 0})),(0,a.on)(C.u3,r=>Object.assign(Object.assign({},r),{carriers:void 0})),(0,a.on)(C.QW,(r,{response:O})=>Object.assign(Object.assign({},r),{carriers:O})),(0,a.on)(C.X0,r=>Object.assign(Object.assign({},r),{carrierServices:void 0})),(0,a.on)(C.t5,(r,{response:O})=>Object.assign(Object.assign({},r),{carrierServices:O})),(0,a.on)(C.DJ,r=>Object.assign(Object.assign({},r),{carrierPackageTypes:void 0})),(0,a.on)(C.l6,(r,{response:O})=>Object.assign(Object.assign({},r),{carrierPackageTypes:O})),(0,a.on)(C.Jf,r=>Object.assign(Object.assign({},r),{shipFromAddresses:void 0})),(0,a.on)(C.x_,(r,{response:O})=>Object.assign(Object.assign({},r),{shipFromAddresses:O})))},9418:(St,oe,S)=>{"use strict";S.d(oe,{GQ:()=>O});var a=S(5620),C=S(7814);const N=(0,a.ZF)(C.qA),O=((0,a.P1)(N,re=>re.shipments),(0,a.P1)(N,re=>re.shipment),(0,a.P1)(N,re=>re.reloadShipments),(0,a.P1)(N,re=>re.shipmentSaved),(0,a.P1)(N,re=>re.printers));(0,a.P1)(N,re=>re.verifyAddressResponse),(0,a.P1)(N,re=>re.calculateRatesResponse),(0,a.P1)(N,re=>re.createShippingLabelResponse),(0,a.P1)(N,re=>re.shipmentDeleted),(0,a.P1)(N,re=>re.carriers),(0,a.P1)(N,re=>re.carrierServices),(0,a.P1)(N,re=>re.carrierPackageTypes),(0,a.P1)(N,re=>re.shipFromAddresses)},7550:(St,oe,S)=>{"use strict";S.d(oe,{m:()=>H});var a=S(5e3),C=S(384);let N=(()=>{class E{constructor(x){this.route=x}addStyles(x){let U=jQuery("head");U.find("[data-module-added]");for(var xe=0;xe`)}clearStyles(){jQuery("head").find("[data-module-added]").remove()}addJavascript(x){let U=jQuery("head");U.find("[data-module-added]");for(var xe=0;xe<\/script>`)}}return E.\u0275fac=function(x){return new(x||E)(a.LFG(C.F0))},E.\u0275prov=a.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();var ze=S(6749),p=S(6751),K=S(72);let r=(()=>{class E{}return E.\u0275fac=function(x){return new(x||E)},E.\u0275mod=a.oAB({type:E}),E.\u0275inj=a.cJS({providers:[],imports:[[K.ef]]}),E})();var O=S(4189),P=S(425);let H=(()=>{class E{static forRoot(){return{ngModule:E,providers:[N,O.S]}}}return E.\u0275fac=function(x){return new(x||E)},E.\u0275mod=a.oAB({type:E}),E.\u0275inj=a.cJS({providers:[N,O.S],imports:[[ze.n,p.t,r,P.i],ze.n,p.t,r,P.i]}),E})()},9702:(St,oe,S)=>{"use strict";S.d(oe,{s:()=>Op});var a=S(384),C=S(9808),N=S(2382),ze=S(520),p=S(8725),K=S(5422);function E(m,B,h,I){var Zt,W=arguments.length,Ee=W<3?B:null===I?I=Object.getOwnPropertyDescriptor(B,h):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ee=Reflect.decorate(m,B,h,I);else for(var Rn=m.length-1;Rn>=0;Rn--)(Zt=m[Rn])&&(Ee=(W<3?Zt(Ee):W>3?Zt(B,h,Ee):Zt(B,h))||Ee);return W>3&&Ee&&Object.defineProperty(B,h,Ee),Ee}function ee(m,B){return function(h,I){B(h,I,m)}}function x(m,B){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(m,B)}var g=S(5e3),qe=S(9352),Ve=S(3911),X=(S(3710),S(1777)),Le=S(7579),Te=S(1135),Ze=S(727);S(9646),S(5698);S(8537),S(2722),S(4004),S(8505),S(9300),S(3900),S(8606);const fs=[C.ez];let dr=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[fs]}),m})();const gr=["header"],Nr=["contentWrapper"];function Vs(m,B){if(1&m&&g._UZ(0,"span",6),2&m){const h=g.oxw();g.Q6J("ngClass",h.iconClasses)}}function js(m,B){if(1&m&&g._UZ(0,"img",7),2&m){const h=g.oxw();g.Q6J("src",h.imageUrl,g.LSH)}}function vs(m,B){if(1&m&&(g.ynx(0),g.TgZ(1,"span",8),g._uU(2),g.qZA(),g.BQk()),2&m){const h=g.oxw();g.xp6(2),g.Oqu(h.title)}}function mr(m,B){}function vi(m,B){if(1&m&&g.YNc(0,mr,0,0,"ng-template",9),2&m){const h=g.oxw();g.Q6J("ngTemplateOutlet",h.titleTemplate)}}const Hi=function(m,B){return{"k-i-arrow-chevron-up k-panelbar-collapse":m,"k-i-arrow-chevron-down k-panelbar-expand":B}};function Ms(m,B){if(1&m&&g._UZ(0,"span",10),2&m){const h=g.oxw();g.Q6J("ngClass",g.WLB(1,Hi,h.expanded,!h.expanded))}}function ur(m,B){if(1&m&&(g.TgZ(0,"div",14),g.Hsn(1),g.qZA()),2&m){const h=g.oxw(2);g.Udp("overflow",h.contentOverflow)("height",h.contentHeight)}}function pr(m,B){}const Ps=function(m,B,h,I,W,Ee){return{title:m,id:B,icon:h,imageUrl:I,disabled:W,content:Ee}},Sr=function(m){return{$implicit:m}};function Ns(m,B){if(1&m&&(g.TgZ(0,"div",15),g.YNc(1,pr,0,0,"ng-template",16),g.qZA()),2&m){const h=g.oxw(2);g.Udp("overflow",h.contentOverflow)("height",h.contentHeight),g.xp6(1),g.Q6J("ngTemplateOutlet",h.contentTemplate.first.templateRef)("ngTemplateOutletContext",g.VKq(13,Sr,g.HTZ(6,Ps,h.title,h.id,h.icon,h.imageUrl,h.disabled,h.content)))}}function Or(m,B){if(1&m&&g._UZ(0,"kendo-panelbar-item",19),2&m){const h=g.oxw().$implicit,I=g.oxw(3);g.Q6J("title",h.title)("id",h.id)("icon",h.icon)("iconClass",h.iconClass)("imageUrl",h.imageUrl)("selected",!!h.selected)("expanded",!!h.expanded)("disabled",!!h.disabled)("template",I.template)("items",h.children)("content",h.content)}}function $r(m,B){if(1&m&&(g.ynx(0),g.YNc(1,Or,1,11,"kendo-panelbar-item",18),g.BQk()),2&m){const h=B.$implicit;g.xp6(1),g.Q6J("ngIf",!h.hidden)}}function Ri(m,B){if(1&m&&(g.TgZ(0,"div",14),g.YNc(1,$r,2,1,"ng-container",17),g.qZA()),2&m){const h=g.oxw(2);g.Udp("overflow",h.contentOverflow)("height",h.contentHeight),g.xp6(1),g.Q6J("ngForOf",h.items)}}function Pr(m,B){}function tn(m,B){if(1&m&&g._uU(0),2&m){const h=g.oxw(3);g.Oqu(h.content)}}function Zn(m,B){if(1&m&&(g.TgZ(0,"div",15),g.YNc(1,Pr,0,0,"ng-template",16),g.YNc(2,tn,1,1,"ng-template",20),g.qZA()),2&m){const h=g.oxw(2);g.Udp("overflow",h.contentOverflow)("height",h.contentHeight),g.xp6(1),g.Q6J("ngTemplateOutlet",h.template)("ngTemplateOutletContext",g.VKq(14,Sr,g.HTZ(7,Ps,h.title,h.id,h.icon,h.imageUrl,h.disabled,h.content))),g.xp6(1),g.Q6J("ngIf",!h.template)}}function wn(m,B){if(1&m&&(g.TgZ(0,"div",null,11),g.YNc(2,ur,2,4,"div",12),g.YNc(3,Ns,2,15,"div",13),g.YNc(4,Ri,2,5,"div",12),g.YNc(5,Zn,3,16,"div",13),g.qZA()),2&m){const h=g.oxw();g.Q6J("@toggle",h.state),g.uIk("role","group")("aria-hidden",!h.disabled&&!h.expanded),g.xp6(2),g.Q6J("ngIf",h.hasChildItems&&!(null!=h.items&&h.items.length)),g.xp6(1),g.Q6J("ngIf",h.hasContent&&!h.content),g.xp6(1),g.Q6J("ngIf",h.hasItems),g.xp6(1),g.Q6J("ngIf",h.content)}}const On=[[["kendo-panelbar-item"]]];var Ue=(()=>{return(m=Ue||(Ue={}))[m.Single=0]="Single",m[m.Full=1]="Full",m[m.Multiple=2]="Multiple",m[m.Default=2]="Default",Ue;var m})();let wt=0,Bt=(()=>{let m=class{constructor(){this.parentSource=new Le.x,this.keepContentSource=new Te.X(!1),this.childSource=new Le.x,this.parent$=this.parentSource.asObservable(),this.children$=this.childSource.asObservable(),this.keepContent$=this.keepContentSource.asObservable(),this.pbId=wt++}onKeepContent(h){this.keepContentSource.next(h)}onSelect(h){this.childSource.next(h)}onFocus(){this.parentSource.next(!0)}onBlur(){this.parentSource.next(!1)}};return m.\u0275fac=function(h){return new(h||m)},m.\u0275prov=g.Yz7({token:m,factory:function(B){return m.\u0275fac(B)}}),m=E([x("design:paramtypes",[])],m),m})(),Ut=(()=>{let m=class{constructor(h){this.templateRef=h}};return m.\u0275fac=function(h){return new(h||m)(g.Y36(g.Rgc))},m.\u0275dir=g.lG2({type:m,selectors:[["","kendoPanelBarContent",""]]}),m=E([x("design:paramtypes",[g.Rgc])],m),m})(),mn=(()=>{let m=class{constructor(h){this.templateRef=h}};return m.\u0275fac=function(h){return new(h||m)(g.Y36(g.Rgc,8))},m.\u0275dir=g.lG2({type:m,selectors:[["","kendoPanelBarItemTitle",""]]}),m=E([ee(0,(0,g.FiY)()),x("design:paramtypes",[g.Rgc])],m),m})();const Ki=/^(?:a|input|select|option|textarea|button|object)$/i;var sr;let lo=0,cs=sr=class{constructor(B,h,I,W){this.parent=B,this.eventService=h,this.element=I,this.renderer=W,this.id="default-"+lo++,this.icon="",this.iconClass="",this.imageUrl="",this.disabled=!1,this.selected=!1,this.keepContent=!1,this.hasChildItems=!1,this.hasItems=!1,this.hasContent=!1,this.state="inactive",this.role="treeitem",this.titleAttribute=null,this.kItemClass=!0,this.focused=!1,this.wrapperFocused=!1,this.subscriptions=new Ze.w0(()=>{}),this._expanded=!1,this.subscriptions.add(h.parent$.subscribe(Ee=>this.onWrapperFocusChange(Ee))),this.subscriptions.add(h.keepContent$.subscribe(Ee=>this.keepContent=Ee)),this.wrapperFocused=!!B&&B.focused,this.level=this.parent?this.parent.level+1:0}set expanded(B){this.state=B?this.animate?"active":"activeWithoutAnimation":"inactive",this.keepContent||this.toggleExpandedChildAnimations(B),this._expanded=B}get expanded(){return this._expanded}get animate(){return this.eventService.animate}get kStateDefaultClass(){return!this.disabled}get kStateDisabledClass(){return this.disabled}get kStateExpandedClass(){return!this.disabled&&this.expanded&&(this.hasChildItems||this.hasContent)}get itemId(){return"k-panelbar-"+this.eventService.pbId+"-item-"+this.id}get ariaExpanded(){return this.hasChildItems||this.hasContent?!this.disabled&&this.expanded:null}get ariaSelected(){return!this.disabled&&this.selected}get ariaDisabled(){return!!this.disabled||null}get headerClass(){return!this.parent||null}get childClass(){return!!this.parent||null}get titleTemplate(){return this.titleTemplates.length>0?this.titleTemplates.toArray()[0].templateRef:void 0}headerHeight(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}ngOnInit(){this.addLevelClass()}ngAfterContentChecked(){this.hasItems=this.items&&this.items.filter(B=>!B.hidden).length>0,this.hasChildItems=this.contentItems.filter(B=>B!==this).length>0||this.hasItems,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()}ngAfterViewChecked(){this.childrenItems=this.items?this.viewChildItems.toArray():this.contentItems.filter(B=>B!==this)}ngOnDestroy(){this.subscriptions.unsubscribe()}onItemAction(){this.disabled||this.eventService.onSelect(this)}onItemClick(B){(m=>{if(m.tagName){const B=m.tagName.toLowerCase(),h=m.getAttribute("tabIndex"),I="-1"===h;let W=null!==h&&!I;return Ki.test(B)&&(W=!m.disabled&&!I),W}return!1})(B.target)||this.onItemAction()}get iconClasses(){return{[(this.icon?"k-i-"+this.icon:null)||this.iconClass]:!0}}serialize(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}}subTreeViewItems(){let B=[];return this.viewChildItems.forEach(h=>{B=B.concat(h.subTreeViewItems()),B.push(h)}),B}validateConfiguration(){if((0,g.X6Q)()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}toggleAnimationState(B){!this.animate||(this.state=B&&this.eventService.expandMode!==Ue.Single?"active":"activeWithoutAnimation")}toggleExpandedChildAnimations(B){this.childrenItems&&this.childrenItems.forEach(h=>{h.expanded&&(h.toggleAnimationState(B),h.toggleExpandedChildAnimations(B))})}addLevelClass(){this.level>=0&&this.renderer.addClass(this.element.nativeElement,`k-level-${this.level}`)}onWrapperFocusChange(B){this.wrapperFocused=B}};cs.\u0275fac=function(B){return new(B||cs)(g.Y36(cs,13),g.Y36(Bt),g.Y36(g.SBq),g.Y36(g.Qsj))},cs.\u0275cmp=g.Xpm({type:cs,selectors:[["kendo-panelbar-item"]],contentQueries:function(B,h,I){if(1&B&&(g.Suo(I,sr,4),g.Suo(I,Ut,4),g.Suo(I,mn,4)),2&B){let W;g.iGM(W=g.CRH())&&(h.contentItems=W),g.iGM(W=g.CRH())&&(h.contentTemplate=W),g.iGM(W=g.CRH())&&(h.titleTemplates=W)}},viewQuery:function(B,h){if(1&B&&(g.Gf(gr,5),g.Gf(Nr,5),g.Gf(sr,5)),2&B){let I;g.iGM(I=g.CRH())&&(h.header=I.first),g.iGM(I=g.CRH())&&(h.contentWrapper=I.first),g.iGM(I=g.CRH())&&(h.viewChildItems=I)}},hostVars:18,hostBindings:function(B,h){2&B&&(g.Ikx("id",h.itemId),g.uIk("role",h.role)("title",h.titleAttribute)("aria-expanded",h.ariaExpanded)("aria-selected",h.ariaSelected)("aria-disabled",h.ariaDisabled),g.ekj("k-item",h.kItemClass)("k-state-default",h.kStateDefaultClass)("k-state-disabled",h.kStateDisabledClass)("k-state-expanded",h.kStateExpandedClass)("k-panelbar-header",h.headerClass)("k-panelbar-item",h.childClass))},inputs:{id:"id",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",selected:"selected",expanded:"expanded",title:"title",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:["kendo-panelbar-item"],decls:8,vars:12,consts:[[3,"click"],["header",""],["class","k-icon k-panelbar-item-icon",3,"ngClass",4,"ngIf"],["class","k-image k-panelbar-item-icon","alt","",3,"src",4,"ngIf"],[4,"ngIf"],["class","k-icon k-panelbar-toggle",3,"ngClass",4,"ngIf"],[1,"k-icon","k-panelbar-item-icon",3,"ngClass"],["alt","",1,"k-image","k-panelbar-item-icon",3,"src"],[1,"k-panelbar-item-text"],[3,"ngTemplateOutlet"],[1,"k-icon","k-panelbar-toggle",3,"ngClass"],["contentWrapper",""],["class","k-panel k-group k-panelbar-group",3,"overflow","height",4,"ngIf"],["class","k-content k-panelbar-content",3,"overflow","height",4,"ngIf"],[1,"k-panel","k-group","k-panelbar-group"],[1,"k-content","k-panelbar-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"],[3,"ngIf"]],template:function(B,h){1&B&&(g.F$t(On),g.TgZ(0,"span",0,1),g.NdJ("click",function(W){return h.onItemClick(W)}),g.YNc(2,Vs,1,1,"span",2),g.YNc(3,js,1,1,"img",3),g.YNc(4,vs,3,1,"ng-container",4),g.YNc(5,vi,1,1,void 0,4),g.YNc(6,Ms,1,4,"span",5),g.qZA(),g.YNc(7,wn,6,7,"div",4)),2&B&&(g.ekj("k-link",!0)("k-state-selected",!h.disabled&&h.selected)("k-state-focused",h.focused&&h.wrapperFocused),g.xp6(2),g.Q6J("ngIf",h.icon||h.iconClass),g.xp6(1),g.Q6J("ngIf",h.imageUrl),g.xp6(1),g.Q6J("ngIf",!h.titleTemplate),g.xp6(1),g.Q6J("ngIf",h.titleTemplate),g.xp6(1),g.Q6J("ngIf",h.hasChildItems||h.hasContent),g.xp6(1),g.Q6J("ngIf",h.keepContent||!h.disabled&&h.expanded&&(h.hasChildItems||h.hasContent)))},directives:[C.O5,C.mk,C.tP,C.sg,cs],encapsulation:2,data:{animation:[(0,X.X$)("toggle",[(0,X.SB)("inactive",(0,X.oB)({display:"none"})),(0,X.eR)("* => active",[(0,X.oB)({overflow:"hidden",display:"block",height:0}),(0,X.jt)(200,(0,X.oB)({height:X.l3}))]),(0,X.eR)("active => *",[(0,X.oB)({overflow:"hidden",height:X.l3}),(0,X.jt)(200,(0,X.oB)({height:0,display:"none"}))])])]}}),E([(0,g.IIB)(),x("design:type",String)],cs.prototype,"title",void 0),E([(0,g.IIB)(),x("design:type",String)],cs.prototype,"id",void 0),E([(0,g.IIB)(),x("design:type",String)],cs.prototype,"icon",void 0),E([(0,g.IIB)(),x("design:type",String)],cs.prototype,"iconClass",void 0),E([(0,g.IIB)(),x("design:type",String)],cs.prototype,"imageUrl",void 0),E([(0,g.IIB)(),x("design:type",Boolean)],cs.prototype,"disabled",void 0),E([(0,g.IIB)(),x("design:type",Boolean),x("design:paramtypes",[Boolean])],cs.prototype,"expanded",null),E([(0,g.IIB)(),x("design:type",Boolean)],cs.prototype,"selected",void 0),E([(0,g.IIB)(),x("design:type",Object)],cs.prototype,"content",void 0),E([(0,g.IIB)(),x("design:type",Array)],cs.prototype,"items",void 0),E([(0,g.IIB)(),x("design:type",g.Rgc)],cs.prototype,"template",void 0),E([(0,g.i9L)("header",{static:!1}),x("design:type",g.SBq)],cs.prototype,"header",void 0),E([(0,g.i9L)("contentWrapper",{static:!1}),x("design:type",g.SBq)],cs.prototype,"contentWrapper",void 0),E([(0,g.pfw)("attr.role"),x("design:type",String)],cs.prototype,"role",void 0),E([(0,g.pfw)("attr.title"),x("design:type",String)],cs.prototype,"titleAttribute",void 0),E([(0,g.pfw)("class.k-item"),x("design:type",Boolean)],cs.prototype,"kItemClass",void 0),E([(0,g.pfw)("class.k-state-default"),x("design:type",Boolean),x("design:paramtypes",[])],cs.prototype,"kStateDefaultClass",null),E([(0,g.pfw)("class.k-state-disabled"),x("design:type",Boolean),x("design:paramtypes",[])],cs.prototype,"kStateDisabledClass",null),E([(0,g.pfw)("class.k-state-expanded"),x("design:type",Boolean),x("design:paramtypes",[])],cs.prototype,"kStateExpandedClass",null),E([(0,g.pfw)("id"),x("design:type",String),x("design:paramtypes",[])],cs.prototype,"itemId",null),E([(0,g.pfw)("attr.aria-expanded"),x("design:type",Boolean),x("design:paramtypes",[])],cs.prototype,"ariaExpanded",null),E([(0,g.pfw)("attr.aria-selected"),x("design:type",Boolean),x("design:paramtypes",[])],cs.prototype,"ariaSelected",null),E([(0,g.pfw)("attr.aria-disabled"),x("design:type",Boolean),x("design:paramtypes",[])],cs.prototype,"ariaDisabled",null),E([(0,g.pfw)("class.k-panelbar-header"),x("design:type",Boolean),x("design:paramtypes",[])],cs.prototype,"headerClass",null),E([(0,g.pfw)("class.k-panelbar-item"),x("design:type",Boolean),x("design:paramtypes",[])],cs.prototype,"childClass",null),E([(0,g.vR)(sr),x("design:type",g.n_E)],cs.prototype,"viewChildItems",void 0),E([(0,g.AcB)(sr),x("design:type",g.n_E)],cs.prototype,"contentItems",void 0),E([(0,g.AcB)(Ut,{descendants:!1}),x("design:type",g.n_E)],cs.prototype,"contentTemplate",void 0),E([(0,g.AcB)(mn,{descendants:!1}),x("design:type",g.n_E)],cs.prototype,"titleTemplates",void 0),cs=sr=E([ee(0,(0,g.tp0)()),ee(0,(0,g.AA_)()),ee(0,(0,g.FiY)()),x("design:paramtypes",[cs,Bt,g.SBq,g.Qsj])],cs);let rn=(()=>{class m extends qe.Z1{}return m.\u0275fac=function(){let B;return function(I){return(B||(B=g.n5z(m)))(I||m)}}(),m.\u0275dir=g.lG2({type:m,inputs:{closeTitle:"closeTitle"},features:[g.qOj]}),E([(0,g.IIB)(),x("design:type",String)],m.prototype,"closeTitle",void 0),m})();var _n;let Kn=_n=class extends rn{constructor(B){super(),this.service=B}};var Wi;Kn.\u0275fac=function(B){return new(B||Kn)(g.Y36(qe.oQ))},Kn.\u0275dir=g.lG2({type:Kn,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[g._Bn([{provide:rn,useExisting:(0,g.Gpc)(()=>_n)}]),g.qOj]}),Kn=_n=E([x("design:paramtypes",[qe.oQ])],Kn);let fr=Wi=class extends rn{constructor(B){super(),this.service=B}get override(){return!0}};fr.\u0275fac=function(B){return new(B||fr)(g.Y36(qe.oQ))},fr.\u0275cmp=g.Xpm({type:fr,selectors:[["kendo-tabstrip-messages"]],features:[g._Bn([{provide:rn,useExisting:(0,g.Gpc)(()=>Wi)}]),g.qOj],decls:0,vars:0,template:function(B,h){},encapsulation:2}),fr=Wi=E([x("design:paramtypes",[qe.oQ])],fr);const Sl={};Sl[Ve.R8.ArrowLeft]="left",Sl[Ve.R8.ArrowRight]="right",Sl[Ve.R8.ArrowUp]="up",Sl[Ve.R8.ArrowDown]="down",Sl[Ve.R8.Home]="home",Sl[Ve.R8.End]="end",Sl[Ve.R8.Enter]="enter",Sl[Ve.R8.Space]="enter";const Fu=Object.assign({},Sl);Fu[Ve.R8.ArrowLeft]="right",Fu[Ve.R8.ArrowRight]="left";let Xc=(()=>{class m extends qe.Z1{}return m.\u0275fac=function(){let B;return function(I){return(B||(B=g.n5z(m)))(I||m)}}(),m.\u0275dir=g.lG2({type:m,inputs:{optional:"optional"},features:[g.qOj]}),E([(0,g.IIB)(),x("design:type",String)],m.prototype,"optional",void 0),m})();var ko;let $l=ko=class extends Xc{constructor(B){super(),this.service=B}get override(){return!0}};var Dc;$l.\u0275fac=function(B){return new(B||$l)(g.Y36(qe.oQ))},$l.\u0275cmp=g.Xpm({type:$l,selectors:[["kendo-stepper-messages"]],features:[g._Bn([{provide:Xc,useExisting:(0,g.Gpc)(()=>ko)}]),g.qOj],decls:0,vars:0,template:function(B,h){},encapsulation:2}),$l=ko=E([x("design:paramtypes",[qe.oQ])],$l);let Rl=Dc=class extends Xc{constructor(B){super(),this.service=B}};Rl.\u0275fac=function(B){return new(B||Rl)(g.Y36(qe.oQ))},Rl.\u0275dir=g.lG2({type:Rl,selectors:[["","kendoStepperLocalizedMessages",""]],features:[g._Bn([{provide:Xc,useExisting:(0,g.Gpc)(()=>Dc)}]),g.qOj]}),Rl=Dc=E([x("design:paramtypes",[qe.oQ])],Rl);let ei=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez]]}),m})(),lr=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez]]}),m})();let np=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez]]}),m})(),Ya=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez,Ve.OY]]}),m})(),nd=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez]]}),m})(),op=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez,Ve.QY]]}),m})();let uc=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez,dr]]}),m})(),hf=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez,Ve.uv]]}),m})(),s1=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez]]}),m})(),r1=(()=>{let m=class{};return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[ei,lr,np,nd,Ya,op,uc,hf,s1]}),m})();var o1=S(9444);function ff(m,B){}const bh=()=>{const m="undefined"!=typeof window?window:void 0;return m&&m.tinymce?m.tinymce:null};let mf=(()=>{class m{constructor(){this.onBeforePaste=new g.vpe,this.onBlur=new g.vpe,this.onClick=new g.vpe,this.onContextMenu=new g.vpe,this.onCopy=new g.vpe,this.onCut=new g.vpe,this.onDblclick=new g.vpe,this.onDrag=new g.vpe,this.onDragDrop=new g.vpe,this.onDragEnd=new g.vpe,this.onDragGesture=new g.vpe,this.onDragOver=new g.vpe,this.onDrop=new g.vpe,this.onFocus=new g.vpe,this.onFocusIn=new g.vpe,this.onFocusOut=new g.vpe,this.onKeyDown=new g.vpe,this.onKeyPress=new g.vpe,this.onKeyUp=new g.vpe,this.onMouseDown=new g.vpe,this.onMouseEnter=new g.vpe,this.onMouseLeave=new g.vpe,this.onMouseMove=new g.vpe,this.onMouseOut=new g.vpe,this.onMouseOver=new g.vpe,this.onMouseUp=new g.vpe,this.onPaste=new g.vpe,this.onSelectionChange=new g.vpe,this.onActivate=new g.vpe,this.onAddUndo=new g.vpe,this.onBeforeAddUndo=new g.vpe,this.onBeforeExecCommand=new g.vpe,this.onBeforeGetContent=new g.vpe,this.onBeforeRenderUI=new g.vpe,this.onBeforeSetContent=new g.vpe,this.onChange=new g.vpe,this.onClearUndos=new g.vpe,this.onDeactivate=new g.vpe,this.onDirty=new g.vpe,this.onExecCommand=new g.vpe,this.onGetContent=new g.vpe,this.onHide=new g.vpe,this.onInit=new g.vpe,this.onInitNgModel=new g.vpe,this.onLoadContent=new g.vpe,this.onNodeChange=new g.vpe,this.onPostProcess=new g.vpe,this.onPostRender=new g.vpe,this.onPreInit=new g.vpe,this.onPreProcess=new g.vpe,this.onProgressState=new g.vpe,this.onRedo=new g.vpe,this.onRemove=new g.vpe,this.onReset=new g.vpe,this.onResizeEditor=new g.vpe,this.onSaveContent=new g.vpe,this.onSetAttrib=new g.vpe,this.onObjectResizeStart=new g.vpe,this.onObjectResized=new g.vpe,this.onObjectSelected=new g.vpe,this.onSetContent=new g.vpe,this.onShow=new g.vpe,this.onSubmit=new g.vpe,this.onUndo=new g.vpe,this.onVisualAid=new g.vpe}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275dir=g.lG2({type:m,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"}}),m})();const ru=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],dp=(m,B)=>"string"==typeof m?m.split(",").map(h=>h.trim()):Array.isArray(m)?m:B;let Ad=0;const Ch=m=>{const h=(new Date).getTime(),I=Math.floor(1e9*Math.random());return Ad++,m+"_"+I+Ad+String(h)},Sh=m=>void 0!==m&&"textarea"===m.tagName.toLowerCase(),Od=m=>void 0===m||""===m?[]:Array.isArray(m)?m:m.split(" "),ts=(m,B)=>Od(m).concat(Od(B)),_f=()=>{},Pu=m=>null==m,Fc=()=>({listeners:[],scriptId:Ch("tiny-script"),scriptLoaded:!1}),Lu=(()=>{let m=Fc();return{load:(W,Ee,Zt)=>{m.scriptLoaded?Zt():(m.listeners.push(Zt),W.getElementById(m.scriptId)||((W,Ee,Zt,Rn)=>{const pi=Ee.createElement("script");pi.referrerPolicy="origin",pi.type="application/javascript",pi.id=W,pi.src=Zt;const ci=()=>{pi.removeEventListener("load",ci),m.listeners.forEach(Rn=>Rn()),m.scriptLoaded=!0};pi.addEventListener("load",ci),Ee.head&&Ee.head.appendChild(pi)})(m.scriptId,W,Ee))},reinitialize:()=>{m=Fc()}}})(),Ho=new g.OlP("TINYMCE_SCRIPT_SRC"),xh={provide:N.JU,useExisting:(0,g.Gpc)(()=>Rc),multi:!0};let Rc=(()=>{class m extends mf{constructor(h,I,W,Ee){super(),this.platformId=W,this.tinymceScriptSrc=Ee,this.cloudChannel="5",this.apiKey="no-api-key",this.id="",this.modelEvents="change input undo redo",this.onTouchedCallback=_f,this._elementRef=h,this.ngZone=I,this.initialise=this.initialise.bind(this)}set disabled(h){this._disabled=h,this._editor&&this._editor.initialized&&this._editor.setMode(h?"readonly":"design")}get disabled(){return this._disabled}get editor(){return this._editor}writeValue(h){this._editor&&this._editor.initialized?this._editor.setContent(Pu(h)?"":h):this.initialValue=null===h?void 0:h}registerOnChange(h){this.onChangeCallback=h}registerOnTouched(h){this.onTouchedCallback=h}setDisabledState(h){this._editor?this._editor.setMode(h?"readonly":"design"):h&&(this.init=Object.assign(Object.assign({},this.init),{readonly:!0}))}ngAfterViewInit(){var h;(0,C.NF)(this.platformId)&&(this.id=this.id||Ch("tiny-angular"),this.inline=void 0!==this.inline?!1!==this.inline:!!(null===(h=this.init)||void 0===h?void 0:h.inline),this.createElement(),null!==bh()?this.initialise():this._element&&this._element.ownerDocument&&Lu.load(this._element.ownerDocument,this.getScriptSrc(),this.initialise.bind(this)))}ngOnDestroy(){null!==bh()&&bh().remove(this._editor)}createElement(){this._element=document.createElement(this.inline?"string"==typeof this.tagName?this.tagName:"div":"textarea"),this._element&&(document.getElementById(this.id)&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,Sh(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element))}initialise(){const h=Object.assign(Object.assign({},this.init),{target:this._element,inline:this.inline,readonly:this.disabled,plugins:ts(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:I=>{this._editor=I,I.on("init",W=>{this.initEditor(I)}),((m,B)=>{(m=>{const B=dp(m.ignoreEvents,[]);return dp(m.allowedEvents,ru).filter(I=>ru.includes(I)&&!B.includes(I))})(m).forEach(I=>{const W=m[I];B.on(I.substring(2),Ee=>m.ngZone.run(()=>W.emit({event:Ee,editor:B})))})})(this,I),this.init&&"function"==typeof this.init.setup&&this.init.setup(I)}});Sh(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{bh().init(h)})}getScriptSrc(){return Pu(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(h){h.on("blur",()=>this.ngZone.run(()=>this.onTouchedCallback())),h.on(this.modelEvents,()=>this.ngZone.run(()=>this.emitOnChange(h))),"string"==typeof this.initialValue&&this.ngZone.run(()=>{h.setContent(this.initialValue),h.getContent()!==this.initialValue&&this.emitOnChange(h),void 0!==this.onInitNgModel&&this.onInitNgModel.emit(h)})}emitOnChange(h){this.onChangeCallback&&this.onChangeCallback(h.getContent({format:this.outputFormat}))}}return m.\u0275fac=function(h){return new(h||m)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(g.Lbi),g.Y36(Ho,8))},m.\u0275cmp=g.Xpm({type:m,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",id:"id",modelEvents:"modelEvents",disabled:"disabled",initialValue:"initialValue",init:"init",inline:"inline",outputFormat:"outputFormat",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents"},features:[g._Bn([xh]),g.qOj],decls:1,vars:0,template:function(h,I){1&h&&g.YNc(0,ff,0,0,"ng-template")},styles:["[_nghost-%COMP%] { display: block; }"]}),m})(),ua=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez,N.u5]]}),m})();S(3191);var xs=S(508),fo=(S(9770),S(6451),S(4968),S(925)),Ys=S(1314),Ao=S(2411),Pa=(S(1159),S(7429)),Fd=S(7144);let Lc=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez,xs.BQ,Fd.Q8],xs.BQ]}),m})();S(226);const Ih={provide:new g.OlP("mat-autocomplete-scroll-strategy"),deps:[Ys.aV],useFactory:function(m){return()=>m.scrollStrategies.reposition()}};let d1=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({providers:[Ih],imports:[[Ys.U8,xs.Ng,xs.BQ,C.ez],Ao.ZD,xs.Ng,xs.BQ]}),m})(),gc=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[fo.ud]]}),m})(),u1=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({providers:[xs.rD],imports:[[gc,Lc,xs.BQ],gc,Lc]}),m})();var rl=S(8966),zd=S(7423),Ml=S(5664);let Df=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[C.ez,xs.BQ,Pa.eL,xs.si,Fd.Q8,Ml.rt],xs.BQ]}),m})(),W0=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[xs.BQ],xs.BQ]}),m})();S(6360);let gu=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({}),m})(),Ig=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[xs.si,xs.BQ,Fd.Q8,gu],xs.BQ,gu]}),m})(),C1=(()=>{class m{constructor(){this.changes=new Le.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(h,I){return`${h} \u2013 ${I}`}}return m.\u0275fac=function(h){return new(h||m)},m.\u0275prov=g.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const p2={provide:new g.OlP("mat-datepicker-scroll-strategy"),deps:[Ys.aV],useFactory:function(m){return()=>m.scrollStrategies.reposition()}};let Hh=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({providers:[C1,p2],imports:[[C.ez,zd.ot,Ys.U8,Ml.rt,Pa.eL,xs.BQ],Ao.ZD]}),m})();const b2={provide:new g.OlP("mat-menu-scroll-strategy"),deps:[Ys.aV],useFactory:function(m){return()=>m.scrollStrategies.reposition()}};let Kf=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({providers:[b2],imports:[[C.ez,xs.BQ,xs.si,Ys.U8],Ao.ZD,xs.BQ]}),m})();const w2={provide:new g.OlP("mat-select-scroll-strategy"),deps:[Ys.aV],useFactory:function(m){return()=>m.scrollStrategies.reposition()}};let I2=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({providers:[w2],imports:[[C.ez,Ys.U8,xs.Ng,xs.BQ],Ao.ZD,Lc,xs.Ng,xs.BQ]}),m})(),Op=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({providers:[],imports:[[a.Bz,C.ez,N.UX,N.u5,ua,p.zE6,K.o0,r1,ze.JF,o1.uH,d1,Lc,u1,rl.Is,zd.ot,Df,W0,Ig,Hh,xs.XK,Kf,I2],a.Bz,C.ez,N.u5,N.UX,ua,p.zE6,K.o0,r1,ze.JF,o1.uH,d1,Lc,u1,rl.Is,zd.ot,Df,W0,Ig,Hh,xs.XK,Kf,I2]}),m})()},4189:(St,oe,S)=>{"use strict";S.d(oe,{S:()=>ge});var a=S(655),C=S(7579),N=S(1838),ze=S(28),p=S(5774),K=S(6238),r=S(4745),O=S(8872),P=S(1001),H=S(4886),E=S(5696),ee=S(8476),x=S(3100),U=S(6678),le=S(851),xe=S(9418),re=S(2722),ce=S(5065),L=S(5e3),J=S(384),we=S(5620);let ge=(()=>{class fe{constructor(e,z,je,rt,it,ct){this.router=e,this.orgStore=z,this.certStore=je,this.productStore=rt,this.shippingStore=it,this.authStore=ct,this.ngDestroyed$=new C.x,this.storeSubscriptions()}ngOnDestroy(){this.ngDestroyed$.next(!0),this.ngDestroyed$.unsubscribe()}storeSubscriptions(){this.orgStore.select(ze.mT).pipe((0,re.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.organization=e)}),this.orgStore.select(ze.Yu).pipe((0,re.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.locations=e)}),this.certStore.select(K.es).pipe((0,re.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.letterParagraphs=e)}),this.certStore.select(O.Cj).pipe((0,re.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.letterSigners=e)}),this.certStore.select(ee.jR).pipe((0,re.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.failureReasons=e)}),this.certStore.select(H.BA).pipe((0,re.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.observations=e)}),this.productStore.select(U.nR).pipe((0,re.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.products=e)}),this.shippingStore.select(xe.GQ).pipe((0,re.R)(this.ngDestroyed$)).subscribe(e=>{!e||(this.printers=e)})}initializeApp(){return(0,a.mG)(this,void 0,void 0,function*(){this.getOrganization(),this.getLocations(),this.getLetterParagraphs(),this.getLetterSigners(),this.getFailureReasons(),this.getObservations(),this.getProducts(),this.getPrinters(),this.getCarriers(),this.getShipFromAddresses()})}getOrganization(){this.organization||this.orgStore.dispatch(N.Xu())}getLocations(){if(this.locations)return;const z=new ce.c;z.pageSize=-1,z.orderBy=[{field:"name",dir:"asc"}],new ce.c,this.orgStore.dispatch(N.JC({searchModel:z}))}getLetterParagraphs(){return(0,a.mG)(this,void 0,void 0,function*(){var z=new ce.c;z.pageSize=-1,z.orderBy=[{field:"paragraphName",dir:"asc"}],this.certStore.dispatch(p.rY({searchModel:z}))})}getLetterSigners(){return(0,a.mG)(this,void 0,void 0,function*(){var e=new ce.c;e.pageSize=-1,this.certStore.dispatch(r.lO({searchModel:e}))})}getObservations(){return(0,a.mG)(this,void 0,void 0,function*(){var z=new ce.c;z.pageSize=-1,z.orderBy=[{field:"description",dir:"asc"}],this.certStore.dispatch(P.iT({searchModel:z}))})}getFailureReasons(){return(0,a.mG)(this,void 0,void 0,function*(){var z=new ce.c;z.pageSize=-1,z.orderBy=[{field:"description",dir:"asc"}],this.certStore.dispatch(E._H({searchModel:z}))})}getProducts(){return(0,a.mG)(this,void 0,void 0,function*(){var e=new ce.c;e.pageSize=-1,this.productStore.dispatch(x.QD({searchModel:e}))})}getPrinters(){return(0,a.mG)(this,void 0,void 0,function*(){this.shippingStore.dispatch(le.lh())})}getCarriers(){return(0,a.mG)(this,void 0,void 0,function*(){this.shippingStore.dispatch(le.u3())})}getShipFromAddresses(){return(0,a.mG)(this,void 0,void 0,function*(){this.shippingStore.dispatch(le.Jf())})}}return fe.\u0275fac=function(e){return new(e||fe)(L.LFG(J.F0),L.LFG(we.yh),L.LFG(we.yh),L.LFG(we.yh),L.LFG(we.yh),L.LFG(we.yh))},fe.\u0275prov=L.Yz7({token:fe,factory:fe.\u0275fac}),fe})()},9361:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,postContactForm:()=>N,postContactFormSuccess:()=>ze,postContactFormFail:()=>p});var a=S(5620);const C=(0,a.PH)("[Communications] Clear Store Flags"),N=(0,a.PH)("[Communications] Post Contact Form",(0,a.Ky)()),ze=(0,a.PH)("[Communications] Post Contact Form Success",(0,a.Ky)()),p=(0,a.PH)("[Communications] Post Contact Form Fail")},6986:(St,oe,S)=>{"use strict";S.d(oe,{OE:()=>N,sW:()=>p});var a=S(5620),C=S(9361);const N="communication",p=(0,a.Lq)({contactFormSent:void 0},(0,a.on)(C.clearStoreFlags,r=>Object.assign(Object.assign({},r),{contactFormSent:void 0})),(0,a.on)(C.postContactForm,r=>Object.assign(Object.assign({},r),{contactFormSent:void 0})),(0,a.on)(C.postContactFormSuccess,(r,{})=>Object.assign(Object.assign({},r),{contactFormSent:!0})),(0,a.on)(C.postContactFormFail,r=>Object.assign(Object.assign({},r),{contactFormSent:!1})))},9412:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,qj:()=>p,F8:()=>K,Bz:()=>r,$j:()=>O,Mw:()=>P,Ej:()=>H,hI:()=>E,_N:()=>ee,AV:()=>x});var a=S(5620);const C=(0,a.PH)("[CustomerAddress] Clear Store Flags"),p=((0,a.PH)("[CustomerAddress] Set Edit Customer Id",(0,a.Ky)()),(0,a.PH)("[CustomerAddress] Clear Address"),(0,a.PH)("[CustomerAddress] Set Address",(0,a.Ky)())),K=(0,a.PH)("[CustomerAddress] Load Addresses",(0,a.Ky)()),r=(0,a.PH)("[CustomerAddress] Load Addresses Success",(0,a.Ky)()),O=(0,a.PH)("[CustomerAddress] Load Addresses Fail"),P=(0,a.PH)("[CustomerAddress] Save Address",(0,a.Ky)()),H=(0,a.PH)("[CustomerAddress] Save Address Success",(0,a.Ky)()),E=(0,a.PH)("[CustomerAddress] Save Address Fail"),ee=(0,a.PH)("[CustomerAddress] Delete Address",(0,a.Ky)()),x=(0,a.PH)("[CustomerAddress] Delete Address Success",(0,a.Ky)());(0,a.PH)("[CustomerAddress] Delete Address Fail")},3674:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,U3:()=>p,_I:()=>K,DH:()=>r,i$:()=>O,SB:()=>P,Ub:()=>H,lM:()=>E,f_:()=>ee,or:()=>x});var a=S(5620);const C=(0,a.PH)("[CustomerNote] Clear Store Flags"),p=((0,a.PH)("[CustomerNote] Set Edit Customer Id",(0,a.Ky)()),(0,a.PH)("[CustomerNote] Clear Note"),(0,a.PH)("[CustomerNote] Set Note",(0,a.Ky)())),K=(0,a.PH)("[CustomerNote] Load Notes",(0,a.Ky)()),r=(0,a.PH)("[CustomerNote] Load Notes Success",(0,a.Ky)()),O=(0,a.PH)("[CustomerNote] Load Notes Fail"),P=(0,a.PH)("[CustomerNote] Save Note",(0,a.Ky)()),H=(0,a.PH)("[CustomerNote] Save Note Success",(0,a.Ky)()),E=(0,a.PH)("[CustomerNote] Save Note Fail"),ee=(0,a.PH)("[CustomerNote] Delete Note",(0,a.Ky)()),x=(0,a.PH)("[CustomerNote] Delete Note Success",(0,a.Ky)());(0,a.PH)("[CustomerNote] Delete Note Fail")},2705:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,_:()=>p,bO:()=>K,$l:()=>r,uN:()=>O,Ch:()=>P,xQ:()=>H,jc:()=>E,qj:()=>ee,fb:()=>x});var a=S(5620);const C=(0,a.PH)("[CustomerPhone] Clear Store Flags"),p=((0,a.PH)("[CustomerPhone] Set Edit Customer Id",(0,a.Ky)()),(0,a.PH)("[CustomerPhone] Clear Phone"),(0,a.PH)("[CustomerPhone] Set Phone",(0,a.Ky)())),K=(0,a.PH)("[CustomerPhone] Load Phones",(0,a.Ky)()),r=(0,a.PH)("[CustomerPhone] Load Phones Success",(0,a.Ky)()),O=(0,a.PH)("[CustomerPhone] Load Phones Fail"),P=(0,a.PH)("[CustomerPhone] Save Phone",(0,a.Ky)()),H=(0,a.PH)("[CustomerPhone] Save Phone Success",(0,a.Ky)()),E=(0,a.PH)("[CustomerPhone] Save Phone Fail"),ee=(0,a.PH)("[CustomerPhone] Delete Phone",(0,a.Ky)()),x=(0,a.PH)("[CustomerPhone] Delete Phone Success",(0,a.Ky)());(0,a.PH)("[CustomerPhone] Delete Phone Fail")},683:(St,oe,S)=>{"use strict";S.d(oe,{p3:()=>C,Xg:()=>N,HO:()=>ze,hm:()=>p,AP:()=>K,Mj:()=>r,yp:()=>O,tc:()=>P,gR:()=>H,v9:()=>E,iy:()=>ee,fG:()=>x,I4:()=>U,nm:()=>le,oA:()=>xe,fC:()=>re,ao:()=>ce,kA:()=>L});var a=S(5620);const C=(0,a.PH)("[Customer] Clear Store Flags"),N=(0,a.PH)("[Customer] Set Customer",(0,a.Ky)()),ze=(0,a.PH)("[Customer] Clear Customers"),p=(0,a.PH)("[Customer] Customer Exists",(0,a.Ky)()),K=(0,a.PH)("[Customer] Customer Exists Success",(0,a.Ky)()),r=(0,a.PH)("[Customer] Customer Exists Fail"),O=(0,a.PH)("[Customer] Load Customers",(0,a.Ky)()),P=(0,a.PH)("[Customer] Load Customers Success",(0,a.Ky)()),H=(0,a.PH)("[Customer] Load Customers Fail"),E=(0,a.PH)("[Customer] Load Customer",(0,a.Ky)()),ee=(0,a.PH)("[Customer] Load Customer Success",(0,a.Ky)()),x=(0,a.PH)("[Customer] Load Customer Fail"),U=(0,a.PH)("[Customer] Save Customer",(0,a.Ky)()),le=(0,a.PH)("[Customer] Save Customer Success",(0,a.Ky)()),xe=(0,a.PH)("[Customer] Save Customer Fail"),re=(0,a.PH)("[Customer] Merge Customer",(0,a.Ky)()),ce=(0,a.PH)("[Customer] Merge Customer Success",(0,a.Ky)()),L=(0,a.PH)("[Customer] Merge Customer Fail");(0,a.PH)("[Customer] Delete Customer",(0,a.Ky)()),(0,a.PH)("[Customer] Delete Customer Success",(0,a.Ky)()),(0,a.PH)("[Customer] Delete Customer Fail")},5607:(St,oe,S)=>{"use strict";S.d(oe,{Y:()=>fe});var a=S(5620),C=S(9412),N=S(851);const K=(0,a.Lq)({addressesResponse:void 0,address:void 0,addressSaved:void 0,reloadAddresses:void 0},(0,a.on)(C.p3,e=>Object.assign(Object.assign({},e),{addressSaved:void 0,reloadAddresses:void 0})),(0,a.on)(C.qj,(e,{model:z})=>Object.assign(Object.assign({},e),{address:z})),(0,a.on)(C.F8,e=>Object.assign(Object.assign({},e),{addressesResponse:void 0,addressSaved:void 0,reloadAddresses:void 0})),(0,a.on)(C.Bz,(e,{response:z})=>Object.assign(Object.assign({},e),{addressesResponse:z})),(0,a.on)(C.$j,e=>Object.assign(Object.assign({},e),{addressesResponse:void 0})),(0,a.on)(C.Mw,e=>Object.assign(Object.assign({},e),{addressSaved:void 0})),(0,a.on)(C.Ej,(e,{})=>Object.assign(Object.assign({},e),{addressSaved:!0})),(0,a.on)(C.hI,e=>Object.assign(Object.assign({},e),{addressSaved:!1})),(0,a.on)(C.qj,C.Mw,C._N,N.Zm,e=>Object.assign(Object.assign({},e),{addressSaved:void 0,reloadAddresses:void 0})),(0,a.on)(C.Ej,C.AV,e=>Object.assign(Object.assign({},e),{reloadAddresses:!0})));var O=S(3674);const E=(0,a.Lq)({notesResponse:void 0,note:void 0,noteSaved:void 0,reloadNotes:void 0},(0,a.on)(O.p3,e=>Object.assign(Object.assign({},e),{noteSaved:void 0,reloadNotes:void 0})),(0,a.on)(O.U3,O.SB,O.f_,e=>Object.assign(Object.assign({},e),{noteSaved:void 0,reloadNotes:void 0})),(0,a.on)(O.Ub,O.or,e=>Object.assign(Object.assign({},e),{reloadNotes:!0})),(0,a.on)(O._I,e=>Object.assign(Object.assign({},e),{notesResponse:void 0})),(0,a.on)(O.DH,(e,{response:z})=>Object.assign(Object.assign({},e),{notesResponse:z})),(0,a.on)(O.i$,e=>Object.assign(Object.assign({},e),{notesResponse:void 0})),(0,a.on)(O.U3,(e,{model:z})=>Object.assign(Object.assign({},e),{note:z})),(0,a.on)(O.SB,e=>Object.assign(Object.assign({},e),{noteSaved:void 0})),(0,a.on)(O.Ub,(e,{})=>Object.assign(Object.assign({},e),{noteSaved:!0})),(0,a.on)(O.lM,e=>Object.assign(Object.assign({},e),{noteSaved:!1})));var x=S(2705);const xe=(0,a.Lq)({phonesResponse:void 0,phone:void 0,phoneSaved:void 0,reloadPhones:void 0},(0,a.on)(x.p3,e=>Object.assign(Object.assign({},e),{phoneSaved:void 0,reloadPhones:void 0})),(0,a.on)(x._,x.Ch,x.qj,e=>Object.assign(Object.assign({},e),{phoneSaved:void 0,reloadPhones:void 0})),(0,a.on)(x.xQ,x.fb,e=>Object.assign(Object.assign({},e),{reloadPhones:!0})),(0,a.on)(x._,(e,{model:z})=>Object.assign(Object.assign({},e),{phone:z})),(0,a.on)(x.bO,e=>Object.assign(Object.assign({},e),{phonesResponse:void 0})),(0,a.on)(x.$l,(e,{response:z})=>Object.assign(Object.assign({},e),{phonesResponse:z})),(0,a.on)(x.uN,e=>Object.assign(Object.assign({},e),{phonesResponse:void 0})),(0,a.on)(x.Ch,e=>Object.assign(Object.assign({},e),{phoneSaved:void 0})),(0,a.on)(x.xQ,(e,{})=>Object.assign(Object.assign({},e),{phoneSaved:!0})),(0,a.on)(x.jc,e=>Object.assign(Object.assign({},e),{phoneSaved:!1})));var ce=S(683);const we=(0,a.Lq)({customersResponse:void 0,customerMerged:void 0,reloadCustomers:void 0,customer:void 0,customerSaved:void 0,customerExists:void 0,reloadCustomer:void 0},(0,a.on)(ce.p3,e=>Object.assign(Object.assign({},e),{customerSaved:void 0,reloadCustomer:void 0,reloadCustomers:void 0,customerMerged:void 0})),(0,a.on)(ce.Xg,(e,{customer:z})=>Object.assign(Object.assign({},e),{customer:z})),(0,a.on)(ce.HO,e=>Object.assign(Object.assign({},e),{customersResponse:void 0,reloadCustomers:void 0})),(0,a.on)(ce.yp,e=>Object.assign(Object.assign({},e),{customersResponse:void 0,customer:void 0})),(0,a.on)(ce.tc,(e,{response:z})=>Object.assign(Object.assign({},e),{customersResponse:z})),(0,a.on)(ce.gR,e=>Object.assign(Object.assign({},e),{customersResponse:void 0})),(0,a.on)(ce.v9,e=>Object.assign(Object.assign({},e),{customer:void 0,customerSaved:void 0,reloadCustomer:void 0})),(0,a.on)(ce.iy,(e,{response:z})=>Object.assign(Object.assign({},e),{customer:z.firstItem})),(0,a.on)(ce.fG,e=>Object.assign(Object.assign({},e),{customer:void 0,customerSaved:void 0,reloadCustomer:void 0})),(0,a.on)(ce.I4,e=>Object.assign(Object.assign({},e),{customer:void 0,customerSaved:void 0,reloadCustomer:void 0})),(0,a.on)(ce.nm,(e,{response:z})=>Object.assign(Object.assign({},e),{customer:z.firstItem,customerSaved:!0,reloadCustomer:!0})),(0,a.on)(ce.oA,e=>Object.assign(Object.assign({},e),{customer:void 0,customerSaved:!1,reloadCustomer:void 0})),(0,a.on)(ce.fC,e=>Object.assign(Object.assign({},e),{customerMerged:void 0})),(0,a.on)(ce.ao,(e,{})=>Object.assign(Object.assign({},e),{customerMerged:!0})),(0,a.on)(ce.kA,e=>Object.assign(Object.assign({},e),{customerMerged:void 0})),(0,a.on)(ce.hm,e=>Object.assign(Object.assign({},e),{customerExists:void 0})),(0,a.on)(ce.AP,(e,{response:z})=>Object.assign(Object.assign({},e),{customerExists:z.firstItem.value})),(0,a.on)(ce.Mj,e=>Object.assign(Object.assign({},e),{customerExists:void 0}))),fe="customerStore";(0,a.UY)({customerStore:we,customerAddressStore:K,customerPhoneStore:xe,customerNoteStore:E})},7296:(St,oe,S)=>{"use strict";var a=S(5620),C=S(5607);const N=(0,a.ZF)(C.Y);(0,a.P1)(N,H=>H.customerStore.customersResponse),(0,a.P1)(N,H=>H.customerStore.customer),(0,a.P1)(N,H=>H.customerStore.customerExists),(0,a.P1)(N,H=>H.customerStore.reloadCustomers),(0,a.P1)(N,H=>H.customerStore.customerSaved),(0,a.P1)(N,H=>H.customerStore.reloadCustomer)},8650:(St,oe,S)=>{"use strict";S.d(oe,{a:()=>E});var a=S(7846),C=S(5618),N=S(2722),ze=S(7579),p=S(5e3),K=S(5620),r=S(8966),O=S(9444),P=S(7423);const H=function(){return["fas","window-close"]};let E=(()=>{class ee{constructor(U,le){this.appStore=U,this.dialogRef=le,this.ngDestroyed$=new ze.x}ngOnDestroy(){this.ngDestroyed$.next(!0),this.ngDestroyed$.unsubscribe()}ngOnInit(){this.appStore.select(C.gw).pipe((0,N.R)(this.ngDestroyed$)).subscribe(U=>this.deleteItemRequest=U)}deleteItemClicked(){!this.deleteItemRequest||(this.appStore.dispatch(a.confirmDeleteItemRequest({deleteItemRequest:this.deleteItemRequest})),this.appStore.dispatch(a.clearDeleteItemRequest()),this.dialogRef.close())}}return ee.\u0275fac=function(U){return new(U||ee)(p.Y36(K.yh),p.Y36(r.so))},ee.\u0275cmp=p.Xpm({type:ee,selectors:[["jsa-delete-confirm-modal"]],decls:16,vars:2,consts:[[1,"row"],[1,"col-10"],["mat-dialog-title",""],[1,"col-2","modal-close-icon"],["href","javascript:(0);",3,"click"],[2,"color","darkred",3,"icon"],["mat-dialog-content",""],[2,"width","100%","padding-top","50px","padding-bottom","50px","text-align","center","font-weight","bold","font-size","16px"],["align","end"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(U,le){1&U&&(p.TgZ(0,"div",0),p.TgZ(1,"div",1),p.TgZ(2,"h1",2),p._uU(3,"Delete Item Confirmation"),p.qZA(),p.qZA(),p.TgZ(4,"div",3),p.TgZ(5,"a",4),p.NdJ("click",function(){return le.dialogRef.close()}),p._UZ(6,"fa-icon",5),p.qZA(),p.qZA(),p.qZA(),p.TgZ(7,"div",6),p.TgZ(8,"div",7),p.TgZ(9,"p"),p._uU(10,"Are you sure that you want to delete this item?"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(11,"mat-dialog-actions",8),p.TgZ(12,"button",9),p.NdJ("click",function(){return le.deleteItemClicked()}),p._uU(13,"Delete Item"),p.qZA(),p.TgZ(14,"button",10),p.NdJ("click",function(){return le.dialogRef.close()}),p._uU(15,"Cancel"),p.qZA(),p.qZA()),2&U&&(p.xp6(6),p.Q6J("icon",p.DdM(1,H)))},directives:[r.uh,O.BN,r.xY,r.H8,P.lW],encapsulation:2}),ee})()},7362:(St,oe,S)=>{"use strict";S.d(oe,{z:()=>r});var a=S(7846),C=S(5618),N=S(8650),ze=S(5e3),p=S(8966),K=S(5620);let r=(()=>{class O{constructor(H,E){this.dialog=H,this.appStore=E}showDeleteItemModal(H){const E=this.dialog.open(N.a,{width:"450px",disableClose:!0});return this.appStore.dispatch(a.createDeleteItemRequest({deleteItemRequest:H})),E}getDeleteItemObservable(){return this.appStore.select(C.gw)}}return O.\u0275fac=function(H){return new(H||O)(ze.LFG(p.uw),ze.LFG(K.yh))},O.\u0275prov=ze.Yz7({token:O,factory:O.\u0275fac}),O})()},6749:(St,oe,S)=>{"use strict";S.d(oe,{n:()=>r});var a=S(9444),C=S(801),N=S(7362),ze=S(8966),p=S(7423),K=S(5e3);let r=(()=>{class O{constructor(H){H.addIcons(C.I7k)}}return O.\u0275fac=function(H){return new(H||O)(K.LFG(a.by))},O.\u0275mod=K.oAB({type:O}),O.\u0275inj=K.cJS({providers:[N.z],imports:[[ze.Is,p.ot,a.uH],ze.Is,p.ot,a.uH]}),O})()},6751:(St,oe,S)=>{"use strict";S.d(oe,{t:()=>ze});var a=S(9808),C=S(3654),N=S(5e3);let ze=(()=>{class p{}return p.\u0275fac=function(r){return new(r||p)},p.\u0275mod=N.oAB({type:p}),p.\u0275inj=N.cJS({providers:[C.q],imports:[[a.ez]]}),p})()},2759:(St,oe,S)=>{"use strict";S.d(oe,{c:()=>a});class a{constructor(){this.suppressErrorHandler=!1}}},3654:(St,oe,S)=>{"use strict";S.d(oe,{q:()=>ze});var a=S(2759),C=S(5e3),N=S(2290);let ze=(()=>{class p{constructor(r){this.toastr=r}handleError(r){r instanceof a.c||"Cannot read property 'add' of undefined"!=r.message&&(this.sendToConsole(r),this.showToastr(r))}showToastr(r){this.toastr.error(r.message,"Oops - Error!",{disableTimeOut:!0,closeButton:!0})}sendToConsole(r){r&&console.error(r)}}return p.\u0275fac=function(r){return new(r||p)(C.LFG(N._W))},p.\u0275prov=C.Yz7({token:p,factory:p.\u0275fac}),p})()},425:(St,oe,S)=>{"use strict";S.d(oe,{i:()=>Gt});var a=S(6642),C=S(5620),N=S(5e3),ze=S(2805),p=S(9808);const K=["fileSelector"];function r(Rt,Ft){if(1&Rt&&(N.TgZ(0,"div",8),N._uU(1),N.qZA()),2&Rt){const F=N.oxw(2);N.xp6(1),N.Oqu(F.dropZoneLabel)}}function O(Rt,Ft){if(1&Rt){const F=N.EpF();N.TgZ(0,"div"),N.TgZ(1,"input",9),N.NdJ("click",function(Q){return N.CHM(F),N.oxw(2).openFileSelector(Q)}),N.qZA(),N.qZA()}if(2&Rt){const F=N.oxw(2);N.xp6(1),N.s9C("value",F.browseBtnLabel),N.Q6J("className",F.browseBtnClassName)}}function P(Rt,Ft){if(1&Rt&&(N.YNc(0,r,2,1,"div",6),N.YNc(1,O,2,2,"div",7)),2&Rt){const F=N.oxw();N.Q6J("ngIf",F.dropZoneLabel),N.xp6(1),N.Q6J("ngIf",F.showBrowseBtn)}}function H(Rt,Ft){}const E=function(Rt){return{openFileSelector:Rt}};class ee{constructor(Ft,F){this.relativePath=Ft,this.fileEntry=F}}let x=(()=>{class Rt{constructor(F){this.template=F}}return Rt.\u0275fac=function(F){return new(F||Rt)(N.Y36(N.Rgc))},Rt.\u0275dir=N.lG2({type:Rt,selectors:[["","ngx-file-drop-content-tmp",""]]}),Rt})(),U=(()=>{class Rt{constructor(F,V){this.zone=F,this.renderer=V,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new N.vpe,this.onFileOver=new N.vpe,this.onFileLeave=new N.vpe,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=Q=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",Q=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",Q=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(F){this._disabled=null!=F&&"false"!=`${F}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(F){this.useDragEnter?(this.preventAndStop(F),F.dataTransfer&&(F.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&F.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(F)),this.preventAndStop(F),F.dataTransfer.dropEffect="copy")}onDragEnter(F){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(F)),this.preventAndStop(F))}onDragLeave(F){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(F)),this.preventAndStop(F))}dropFiles(F){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,F.dataTransfer)){let V;V=F.dataTransfer.items?F.dataTransfer.items:F.dataTransfer.files,this.preventAndStop(F),this.checkFiles(V)}}uploadFiles(F){!this.isDropzoneDisabled()&&F.target&&(this.checkFiles(F.target.files||[]),this.resetFileInput())}checkFiles(F){for(let V=0;Van(Q)},bt=new ee(nt.name,nt);this.addToQueue(bt)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=(0,ze.H)(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const V=this.files;this.files=[],this.onFileDrop.emit(V)}})}traverseFileTree(F,V){if(F.isFile){const Q=new ee(V,F);this.files.push(Q)}else{V+="/";const Q=F.createReader();let ie=[];const nt=()=>{this.numOfActiveReadEntries++,Q.readEntries(bt=>{if(bt.length)ie=ie.concat(bt),nt();else if(0===ie.length){const an=new ee(V,F);this.zone.run(()=>{this.addToQueue(an)})}else for(let an=0;an{this.traverseFileTree(ie[an],V+ie[an].name)});this.numOfActiveReadEntries--})};nt()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const F=this.fileSelector.nativeElement,V=F.parentElement,Q=this.getHelperFormElement(),ie=this.getFileInputPlaceholderElement();V!==Q&&(this.renderer.insertBefore(V,ie,F),this.renderer.appendChild(Q,F),Q.reset(),this.renderer.insertBefore(V,F,ie),this.renderer.removeChild(V,ie))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(F){return!!F.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(F){this.files.push(F)}preventAndStop(F){F.stopPropagation(),F.preventDefault()}}return Rt.\u0275fac=function(F){return new(F||Rt)(N.Y36(N.R0b),N.Y36(N.Qsj))},Rt.\u0275cmp=N.Xpm({type:Rt,selectors:[["ngx-file-drop"]],contentQueries:function(F,V,Q){if(1&F&&N.Suo(Q,x,5,N.Rgc),2&F){let ie;N.iGM(ie=N.CRH())&&(V.contentTemplate=ie.first)}},viewQuery:function(F,V){if(1&F&&N.Gf(K,7),2&F){let Q;N.iGM(Q=N.CRH())&&(V.fileSelector=Q.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(F,V){if(1&F&&(N.TgZ(0,"div",0),N.NdJ("drop",function(ie){return V.dropFiles(ie)})("dragover",function(ie){return V.onDragOver(ie)})("dragenter",function(ie){return V.onDragEnter(ie)})("dragleave",function(ie){return V.onDragLeave(ie)}),N.TgZ(1,"div",1),N.TgZ(2,"input",2,3),N.NdJ("change",function(ie){return V.uploadFiles(ie)}),N.qZA(),N.YNc(4,P,2,2,"ng-template",null,4,N.W1O),N.YNc(6,H,0,0,"ng-template",5),N.qZA(),N.qZA()),2&F){const Q=N.MAs(5);N.ekj("ngx-file-drop__drop-zone--over",V.isDraggingOverDropZone),N.Q6J("className",V.dropZoneClassName),N.xp6(1),N.Q6J("className",V.contentClassName),N.xp6(1),N.Q6J("accept",V.accept)("multiple",V.multiple),N.uIk("directory",V.directory||void 0)("webkitdirectory",V.directory||void 0)("mozdirectory",V.directory||void 0)("msdirectory",V.directory||void 0)("odirectory",V.directory||void 0),N.xp6(4),N.Q6J("ngTemplateOutlet",V.contentTemplate||Q)("ngTemplateOutletContext",N.VKq(13,E,V.openFileSelector))}},directives:[p.tP,p.O5],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{border:2px dotted #0782d0;border-radius:30px;height:100px;margin:auto}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:hsla(0,0%,57.6%,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{align-items:center;color:#0782d0;display:flex;height:100px;justify-content:center}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),Rt})(),le=(()=>{class Rt{}return Rt.\u0275fac=function(F){return new(F||Rt)},Rt.\u0275mod=N.oAB({type:Rt,bootstrap:function(){return[U]}}),Rt.\u0275inj=N.cJS({providers:[],imports:[[p.ez]]}),Rt})(),L=(()=>{class Rt{}return Rt.\u0275fac=function(F){return new(F||Rt)},Rt.\u0275mod=N.oAB({type:Rt}),Rt.\u0275inj=N.cJS({imports:[[p.ez]]}),Rt})();var J=S(9702),we=S(6749),ge=S(4743);let fe=(()=>{class Rt{}return Rt.\u0275fac=function(F){return new(F||Rt)},Rt.\u0275mod=N.oAB({type:Rt}),Rt.\u0275inj=N.cJS({providers:[],imports:[[p.ez,ge.Zj]]}),Rt})();var Ce=S(7784),e=S(8996),z=S(9646),je=S(3900),rt=S(4004),it=S(262),ct=S(5618),g=S(3054);let qe=(()=>{class Rt{constructor(F,V,Q){this.actions$=F,this.service=V,this.appStore=Q,this.loadItems$=(0,a.GW)(()=>this.actions$.pipe((0,a.l4)(g.loadItems),(0,je.w)(ie=>(0,e.D)(this.service.getItems(ie.searchModel)).pipe((0,rt.U)(nt=>g.loadItemsSuccess({response:nt})),(0,it.K)(nt=>(0,z.of)(g.loadItemsFail())))))),this.saveItem$=(0,a.GW)(()=>this.actions$.pipe((0,a.l4)(g.saveItem),(0,je.w)(ie=>(0,e.D)(this.service.saveItem(ie.model)).pipe((0,rt.U)(nt=>g.saveItemSuccess({response:nt})),(0,it.K)(nt=>(0,z.of)(g.saveItemFail())))))),this.deleteItem$=(0,a.GW)(()=>this.actions$.pipe((0,a.l4)(g.deleteItem),(0,je.w)(ie=>(0,e.D)(this.service.deleteItem(ie.id)).pipe((0,rt.U)(nt=>g.deleteItemSuccess({response:nt})),(0,it.K)(nt=>(0,z.of)(g.deleteItemFail())))))),this.deleteAllItems$=(0,a.GW)(()=>this.actions$.pipe((0,a.l4)(g.deleteAllItems),(0,je.w)(ie=>(0,e.D)(this.service.deleteAllItems(ie.referenceId)).pipe((0,rt.U)(nt=>g.deleteAllItemsSuccess({response:nt})),(0,it.K)(nt=>(0,z.of)(g.deleteAllItemsFail())))))),this.appStore.select(ct.GR).subscribe(ie=>{ie&&(V.environment=ie)})}}return Rt.\u0275fac=function(F){return new(F||Rt)(N.LFG(a.eX),N.LFG(Ce.K),N.LFG(C.yh))},Rt.\u0275prov=N.Yz7({token:Rt,factory:Rt.\u0275fac}),Rt})();var Ve=S(5588),He=S(6036),X=S.t(He,2);S(2813),"undefined"==typeof window||(X.verbosity=He.VerbosityLevel.INFOS);let ot=(()=>{class Rt{}return Rt.\u0275fac=function(F){return new(F||Rt)},Rt.\u0275mod=N.oAB({type:Rt}),Rt.\u0275inj=N.cJS({}),Rt})();S(655),S(2313);let _t=(()=>{class Rt{}return Rt.\u0275fac=function(F){return new(F||Rt)},Rt.\u0275mod=N.oAB({type:Rt}),Rt.\u0275inj=N.cJS({imports:[[p.ez]]}),Rt})(),Gt=(()=>{class Rt{}return Rt.\u0275fac=function(F){return new(F||Rt)},Rt.\u0275mod=N.oAB({type:Rt}),Rt.\u0275inj=N.cJS({providers:[Ce.K],imports:[[C.Aw.forFeature(Ve.Nj,Ve.Te),a.sQ.forFeature([qe]),J.s,we.n,fe,le,L,ot,_t]]}),Rt})()},7784:(St,oe,S)=>{"use strict";S.d(oe,{K:()=>p});var a=S(9963),C=S(6043),N=S(520),ze=S(5e3);let p=(()=>{class K extends a.K{getItem(O){return this.apiEndpointType=C.RW.FILE_MANAGEMENT,this.getItemAsync(O,null,null,!1)}getItems(O){this.apiEndpointType=C.RW.FILE_MANAGEMENT;var P=new N.LE;return P=P.append("referenceId",O.referenceId),this.getItemsAsync(O,null,P,!1)}saveItem(O){return this.apiEndpointType=C.RW.FILE_MANAGEMENT,this.saveItemAsync(O)}deleteItem(O){return this.apiEndpointType=C.RW.FILE_MANAGEMENT,this.deleteItemAsync(O)}deleteAllItems(O){return this.apiEndpointType=C.RW.FILE_MANAGEMENT,this.deleteRequestAsync("/"+O)}}return K.\u0275fac=function(){let r;return function(P){return(r||(r=ze.n5z(K)))(P||K)}}(),K.\u0275prov=ze.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})()},3054:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{clearStoreFlags:()=>C,clearItem:()=>N,setRawImage:()=>ze,setItem:()=>p,loadItems:()=>K,loadItemsSuccess:()=>r,loadItemsFail:()=>O,saveItem:()=>P,saveItemSuccess:()=>H,saveItemFail:()=>E,deleteItem:()=>ee,deleteItemSuccess:()=>x,deleteItemFail:()=>U,deleteAllItems:()=>le,deleteAllItemsSuccess:()=>xe,deleteAllItemsFail:()=>re});var a=S(5620);const C=(0,a.PH)("[FileManagement] Clear Store Flags"),N=(0,a.PH)("[FileManagement] Clear Item"),ze=(0,a.PH)("[FileManagement] Set Raw Image",(0,a.Ky)()),p=(0,a.PH)("[FileManagement] Set Item",(0,a.Ky)()),K=(0,a.PH)("[FileManagement] Load Items",(0,a.Ky)()),r=(0,a.PH)("[FileManagement] Load Items Success",(0,a.Ky)()),O=(0,a.PH)("[FileManagement] Load Items Fail"),P=(0,a.PH)("[FileManagement] Save Item",(0,a.Ky)()),H=(0,a.PH)("[FileManagement] Save Item Success",(0,a.Ky)()),E=(0,a.PH)("[FileManagement] Save Item Fail"),ee=(0,a.PH)("[FileManagement] Delete Item",(0,a.Ky)()),x=(0,a.PH)("[FileManagement] Delete Item Success",(0,a.Ky)()),U=(0,a.PH)("[FileManagement] Delete Item Fail"),le=(0,a.PH)("[FileManagement] Delete All Item",(0,a.Ky)()),xe=(0,a.PH)("[FileManagement] Delete All Item Success",(0,a.Ky)()),re=(0,a.PH)("[FileManagement] Delete All Item Fail")},5588:(St,oe,S)=>{"use strict";S.d(oe,{Nj:()=>N,Te:()=>p});var a=S(5620),C=S(3054);const N="file management",p=(0,a.Lq)({itemsResponse:void 0,item:void 0,itemSaved:void 0,itemDeleted:void 0,reloadItems:void 0,rawImage:void 0},(0,a.on)(C.clearStoreFlags,r=>Object.assign(Object.assign({},r),{rawImage:void 0,item:void 0,itemsResponse:void 0,itemSaved:void 0,reloadItems:void 0,itemDeleted:void 0})),(0,a.on)(C.setItem,C.saveItem,C.deleteItem,C.deleteAllItems,r=>Object.assign(Object.assign({},r),{itemSaved:void 0,reloadItems:void 0})),(0,a.on)(C.saveItemSuccess,C.deleteItemSuccess,C.deleteAllItemsSuccess,r=>Object.assign(Object.assign({},r),{reloadItems:!0})),(0,a.on)(C.setRawImage,(r,{rawImage:O})=>Object.assign(Object.assign({},r),{rawImage:O})),(0,a.on)(C.setItem,(r,{model:O})=>Object.assign(Object.assign({},r),{item:O})),(0,a.on)(C.loadItems,r=>Object.assign(Object.assign({},r),{itemsResponse:void 0})),(0,a.on)(C.loadItemsSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{itemsResponse:O})),(0,a.on)(C.loadItemsFail,r=>Object.assign(Object.assign({},r),{itemsResponse:void 0})),(0,a.on)(C.saveItem,r=>Object.assign(Object.assign({},r),{itemSaved:void 0})),(0,a.on)(C.saveItemSuccess,(r,{response:O})=>Object.assign(Object.assign({},r),{itemSaved:!0,item:O.firstItem})),(0,a.on)(C.saveItemFail,r=>Object.assign(Object.assign({},r),{itemSaved:!1})),(0,a.on)(C.deleteItemSuccess,(r,{})=>Object.assign(Object.assign({},r),{itemDeleted:!0})))},3395:(St,oe,S)=>{"use strict";S.d(oe,{a1:()=>p});var a=S(5620),C=S(5588);const N=(0,a.ZF)(C.Nj),p=((0,a.P1)(N,H=>H.rawImage),(0,a.P1)(N,H=>H.itemsResponse));(0,a.P1)(N,H=>H.item),(0,a.P1)(N,H=>H.itemSaved),(0,a.P1)(N,H=>H.itemDeleted),(0,a.P1)(N,H=>H.reloadItems)},5065:(St,oe,S)=>{"use strict";S.d(oe,{c:()=>a});class a{constructor(){this.dateFrom=null,this.dateTo=null,this.searchTerm=null,this.partialMatches=!0,this.orderBy=null,this.page=1,this.pageSize=20}}},7659:(St,oe,S)=>{"use strict";S.d(oe,{Y:()=>le});var a=S(5620),C=S(6642),N=S(9083),ze=S(8996),p=S(9646),K=S(3900),r=S(4004),O=S(262),P=S(5618),H=S(1838),E=S(5e3),ee=S(5133);let x=(()=>{class xe{constructor(ce,L,J){this.actions$=ce,this.organizationsService=L,this.appStore=J,this.getOrganization$=(0,C.GW)(()=>this.actions$.pipe((0,C.l4)(H.Xu),(0,K.w)(we=>(0,ze.D)(this.organizationsService.getOrganization(this.environment.organizationId)).pipe((0,r.U)(ge=>H.EZ({response:ge})),(0,O.K)(ge=>(console.log(ge),(0,p.of)(H.O0()))))))),this.getLocation$=(0,C.GW)(()=>this.actions$.pipe((0,C.l4)(H.k$),(0,K.w)(we=>(0,ze.D)(this.organizationsService.getLocation(we.id)).pipe((0,r.U)(ge=>H.w4({response:ge})),(0,O.K)(ge=>(console.log(ge),(0,p.of)(H.pK()))))))),this.getLocations$=(0,C.GW)(()=>this.actions$.pipe((0,C.l4)(H.JC),(0,K.w)(we=>(0,ze.D)(this.organizationsService.getLocations(we.searchModel)).pipe((0,r.U)(ge=>H.bf({response:ge})),(0,O.K)(ge=>(console.log(ge),(0,p.of)(H.HW()))))))),this.saveLocation$=(0,C.GW)(()=>this.actions$.pipe((0,C.l4)(H.Y7),(0,K.w)(we=>(0,ze.D)(this.organizationsService.saveLocation(we.model)).pipe((0,r.U)(ge=>H.bZ({response:ge})),(0,O.K)(ge=>(console.log(ge),(0,p.of)(H.br()))))))),this.deleteLocation$=(0,C.GW)(()=>this.actions$.pipe((0,C.l4)(H.tb),(0,K.w)(we=>(0,ze.D)(this.organizationsService.deleteLocation(we.id)).pipe((0,r.U)(ge=>H.YR({response:ge})),(0,O.K)(ge=>(console.log(ge),(0,p.of)(H.Ly()))))))),this.appStore.select(P.GR).subscribe(we=>{we&&(this.environment=we,L.environment=we)})}}return xe.\u0275fac=function(ce){return new(ce||xe)(E.LFG(C.eX),E.LFG(ee.M),E.LFG(a.yh))},xe.\u0275prov=E.Yz7({token:xe,factory:xe.\u0275fac}),xe})();var U=S(9808);let le=(()=>{class xe{}return xe.\u0275fac=function(ce){return new(ce||xe)},xe.\u0275mod=E.oAB({type:xe}),xe.\u0275inj=E.cJS({providers:[ee.M],imports:[[a.Aw.forFeature(N.eE,N.rG),C.sQ.forFeature([x]),U.ez]]}),xe})()},5133:(St,oe,S)=>{"use strict";S.d(oe,{M:()=>ze});var a=S(9963),C=S(6043),N=S(5e3);let ze=(()=>{class p extends a.K{getOrganization(r){return this.apiEndpointType=C.RW.ORGANIZATION,this.getItemAsync(r,null,null,!1)}getLocation(r){return this.apiEndpointType=C.RW.ORGANIZATION_LOCATION,this.getItemAsync(r,null,null,!1)}getLocations(r){return this.apiEndpointType=C.RW.ORGANIZATION_LOCATION,this.getItemsAsync(r,null,null,!1)}saveLocation(r){return this.apiEndpointType=C.RW.ORGANIZATION_LOCATION,this.saveItemAsync(r)}deleteLocation(r){return this.apiEndpointType=C.RW.ORGANIZATION_LOCATION,this.deleteItemAsync(r)}}return p.\u0275fac=function(){let K;return function(O){return(K||(K=N.n5z(p)))(O||p)}}(),p.\u0275prov=N.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},1838:(St,oe,S)=>{"use strict";S.d(oe,{Xu:()=>C,EZ:()=>N,O0:()=>ze,l6:()=>p,k$:()=>K,w4:()=>r,pK:()=>O,JC:()=>P,bf:()=>H,HW:()=>E,Y7:()=>ee,bZ:()=>x,br:()=>U,tb:()=>le,YR:()=>xe,Ly:()=>re});var a=S(5620);const C=(0,a.PH)("[Organization] Get Organization"),N=(0,a.PH)("[Organization] Get Organization Success",(0,a.Ky)()),ze=(0,a.PH)("[Organization] Get Organization Fail"),p=(0,a.PH)("[Organization] Set Location",(0,a.Ky)()),K=(0,a.PH)("[Organization] Get Location",(0,a.Ky)()),r=(0,a.PH)("[Organization] Get Location Success",(0,a.Ky)()),O=(0,a.PH)("[Organization] Get Location Fail"),P=(0,a.PH)("[Organization] Get Locations",(0,a.Ky)()),H=(0,a.PH)("[Organization] Get Locations Success",(0,a.Ky)()),E=(0,a.PH)("[Organization] Get Locations Fail"),ee=(0,a.PH)("[Organization] Save Location",(0,a.Ky)()),x=(0,a.PH)("[Organization] Save Location Success",(0,a.Ky)()),U=(0,a.PH)("[Organization] Save Location Fail"),le=(0,a.PH)("[Organization] Delete Location",(0,a.Ky)()),xe=(0,a.PH)("[Organization] Delete Location Success",(0,a.Ky)()),re=(0,a.PH)("[Organization] Delete Location Fail")},9083:(St,oe,S)=>{"use strict";S.d(oe,{eE:()=>N,rG:()=>p});var a=S(5620),C=S(1838);const N="organization",p=(0,a.Lq)({organization:void 0,location:void 0,locations:void 0,reloadLocations:void 0},(0,a.on)(C.Xu,r=>Object.assign(Object.assign({},r),{organization:void 0})),(0,a.on)(C.EZ,(r,{response:O})=>Object.assign(Object.assign({},r),{organization:O.firstItem})),(0,a.on)(C.O0,r=>Object.assign(Object.assign({},r),{organization:void 0})),(0,a.on)(C.l6,(r,{model:O})=>Object.assign(Object.assign({},r),{location:O})),(0,a.on)(C.k$,r=>Object.assign(Object.assign({},r),{location:void 0})),(0,a.on)(C.w4,(r,{response:O})=>Object.assign(Object.assign({},r),{location:O.firstItem})),(0,a.on)(C.pK,r=>Object.assign(Object.assign({},r),{location:void 0})),(0,a.on)(C.JC,r=>Object.assign(Object.assign({},r),{locations:void 0})),(0,a.on)(C.bf,(r,{response:O})=>Object.assign(Object.assign({},r),{locations:O.items})),(0,a.on)(C.HW,r=>Object.assign(Object.assign({},r),{locations:void 0})),(0,a.on)(C.Y7,r=>Object.assign(Object.assign({},r),{location:void 0,reloadLocations:void 0})),(0,a.on)(C.bZ,(r,{response:O})=>Object.assign(Object.assign({},r),{location:O.firstItem,reloadLocations:!0})),(0,a.on)(C.br,r=>Object.assign(Object.assign({},r),{location:void 0,reloadLocations:void 0})),(0,a.on)(C.tb,r=>Object.assign(Object.assign({},r),{reloadLocations:void 0})),(0,a.on)(C.YR,(r,{})=>Object.assign(Object.assign({},r),{reloadLocations:!0})),(0,a.on)(C.YR,r=>Object.assign(Object.assign({},r),{reloadLocations:void 0})))},28:(St,oe,S)=>{"use strict";S.d(oe,{mT:()=>ze,Yu:()=>p});var a=S(5620),C=S(9083);const N=(0,a.ZF)(C.eE),ze=(0,a.P1)(N,O=>O.organization),p=(0,a.P1)(N,O=>O.locations);(0,a.P1)(N,O=>O.location),(0,a.P1)(N,O=>O.reloadLocations)},7846:(St,oe,S)=>{"use strict";S.r(oe),S.d(oe,{setEnvironment:()=>C,confirmDeleteItemRequest:()=>N,createDeleteItemRequest:()=>ze,clearDeleteItemRequest:()=>p,setError:()=>K,setAppBusy:()=>r,setSearchTerm:()=>O,addSearchResult:()=>P,setSearchResults:()=>H});var a=S(5620);const C=(0,a.PH)("[App] Set Environment",(0,a.Ky)()),N=(0,a.PH)("[App] Confirm Delete Item Request",(0,a.Ky)()),ze=(0,a.PH)("[App] Create Delete Item Request",(0,a.Ky)()),p=(0,a.PH)("[App] Clear Delete Item Request"),K=(0,a.PH)("[App] Set Error",(0,a.Ky)()),r=(0,a.PH)("[App] Set App Busy",(0,a.Ky)()),O=(0,a.PH)("[App] Set Search Term",(0,a.Ky)()),P=(0,a.PH)("[App] Add Search Result",(0,a.Ky)()),H=(0,a.PH)("[App] Set Search Results",(0,a.Ky)())},2625:(St,oe,S)=>{"use strict";S.d(oe,{bF:()=>ii,ql:()=>H,fc:()=>P,Ze:()=>qr,JM:()=>N,vV:()=>Tt,rI:()=>C,Ly:()=>Qs,dU:()=>K,Vx:()=>Si,l0:()=>p,DI:()=>$n,wZ:()=>ze,M_:()=>Ct,KB:()=>Ae,Em:()=>ne,fI:()=>r,x6:()=>ke,JK:()=>a});var a={};S.r(a),S.d(a,{Pc:()=>Te});var C={};S.r(C),S.d(C,{Vq:()=>xn,Od:()=>zt});var N={};S.r(N),S.d(N,{N8:()=>ir,X:()=>ws});var ze={};S.r(ze),S.d(ze,{j7:()=>aa,lz:()=>et,Xc:()=>So,A2:()=>Ye,ne:()=>Wo});var p={};S.r(p),S.d(p,{IU:()=>De,dB:()=>tt});var K={};S.r(K),S.d(K,{O:()=>wr});var r={};S.r(r),S.d(r,{GQ:()=>Do}),S(8758);var P=S(5618),H=S(7846),x=(S(7296),S(683),S(5620)),U=S(5607);const le=(0,x.ZF)(U.Y);(0,x.P1)(le,Ke=>Ke.customerAddressStore.addressesResponse),(0,x.P1)(le,Ke=>Ke.customerAddressStore.address),(0,x.P1)(le,Ke=>Ke.customerAddressStore.addressSaved),(0,x.P1)(le,Ke=>Ke.customerAddressStore.reloadAddresses),S(9412);const we=(0,x.ZF)(U.Y);(0,x.P1)(we,Ke=>Ke.customerPhoneStore.phonesResponse),(0,x.P1)(we,Ke=>Ke.customerPhoneStore.phone),(0,x.P1)(we,Ke=>Ke.customerPhoneStore.phoneSaved),(0,x.P1)(we,Ke=>Ke.customerPhoneStore.reloadPhones),S(2705);const je=(0,x.ZF)(U.Y);(0,x.P1)(je,Ke=>Ke.customerNoteStore.notesResponse),(0,x.P1)(je,Ke=>Ke.customerNoteStore.note),(0,x.P1)(je,Ke=>Ke.customerNoteStore.noteSaved),(0,x.P1)(je,Ke=>Ke.customerNoteStore.reloadNotes),S(3674),S(28),S(1838);var X=S(3478);const Le=(0,x.ZF)(X.S),Te=(0,x.P1)(Le,Ke=>Ke.signerStore.signersResponse);(0,x.P1)(Le,Ke=>Ke.signerStore.signers),(0,x.P1)(Le,Ke=>Ke.signerStore.signer),(0,x.P1)(Le,Ke=>Ke.signerStore.reloadSigners),(0,x.P1)(Le,Ke=>Ke.signerStore.signerSaved);var ke=S(6959);const G=(0,x.ZF)(X.S);(0,x.P1)(G,Ke=>Ke.signingCategoryStore.signingCategoriesResponse),(0,x.P1)(G,Ke=>Ke.signingCategoryStore.signingCategories),(0,x.P1)(G,Ke=>Ke.signingCategoryStore.signingCategory),(0,x.P1)(G,Ke=>Ke.signingCategoryStore.reloadSigningCategories),(0,x.P1)(G,Ke=>Ke.signingCategoryStore.signingCategorySaved),S(4562);const Wt=(0,x.ZF)(X.S);(0,x.P1)(Wt,Ke=>Ke.signableItemStore.signableItemsResponse),(0,x.P1)(Wt,Ke=>Ke.signableItemStore.signableItems),(0,x.P1)(Wt,Ke=>Ke.signableItemStore.signableItem),(0,x.P1)(Wt,Ke=>Ke.signableItemStore.reloadSignableItems),(0,x.P1)(Wt,Ke=>Ke.signableItemStore.signableItemSaved),S(5670);var $t=S(5543);const ft=(0,x.ZF)($t.Z),zt=((0,x.P1)(ft,Ke=>Ke.certificateStore.certificate),(0,x.P1)(ft,Ke=>Ke.certificateStore.certificateSaved),(0,x.P1)(ft,Ke=>Ke.certificateStore.submissionForm)),xn=((0,x.P1)(ft,Ke=>Ke.certificateStore.certificateUpgraded),(0,x.P1)(ft,Ke=>Ke.certificateStore.certificateCopied),(0,x.P1)(ft,Ke=>Ke.certificateStore.certificatesResponse));(0,x.P1)(ft,Ke=>Ke.certificateStore.certificatesForPrintingResponse),(0,x.P1)(ft,Ke=>Ke.certificateStore.reloadCertificates),(0,x.P1)(ft,Ke=>Ke.certificateStore.certificatesBulkDeleted),(0,x.P1)(ft,Ke=>Ke.certificateStore.uploadBasicCertificatesResponse),(0,x.P1)(ft,Ke=>Ke.certificateStore.labelPrinted);var Tt=S(196);const Gt=(0,x.ZF)($t.Z);(0,x.P1)(Gt,Ke=>Ke.certificateFailureReasonStore.certificateFailureReason),(0,x.P1)(Gt,Ke=>Ke.certificateFailureReasonStore.certificateFailureReasonSaved),(0,x.P1)(Gt,Ke=>Ke.certificateFailureReasonStore.certificateFailureReasonsResponse),(0,x.P1)(Gt,Ke=>Ke.certificateFailureReasonStore.reloadCertificateFailureReasons),S(536);const ie=(0,x.ZF)($t.Z);(0,x.P1)(ie,Ke=>Ke.certificateObservationStore.certificateObservation),(0,x.P1)(ie,Ke=>Ke.certificateObservationStore.certificateObservationSaved),(0,x.P1)(ie,Ke=>Ke.certificateObservationStore.certificateObservationsResponse),(0,x.P1)(ie,Ke=>Ke.certificateObservationStore.reloadCertificateObservations),S(6348),S(8476),S(5696),S(6238),S(5774),S(8872),S(4745),S(4886),S(1001),S(9418),S(851);var Ei=S(924);const ps=(0,x.ZF)(Ei.C);(0,x.P1)(ps,Ke=>Ke.orderStore.orders),(0,x.P1)(ps,Ke=>Ke.orderStore.order),(0,x.P1)(ps,Ke=>Ke.orderStore.reloadOrders),(0,x.P1)(ps,Ke=>Ke.orderStore.orderSaved),(0,x.P1)(ps,Ke=>Ke.orderStore.orderDeleted),S(591);const vs=(0,x.ZF)(Ei.C);(0,x.P1)(vs,Ke=>Ke.orderNoteStore.orderNotes),(0,x.P1)(vs,Ke=>Ke.orderNoteStore.orderNote),(0,x.P1)(vs,Ke=>Ke.orderNoteStore.reloadOrderNotes),(0,x.P1)(vs,Ke=>Ke.orderNoteStore.orderNoteSaved),S(7858);const pr=(0,x.ZF)(Ei.C);(0,x.P1)(pr,Ke=>Ke.orderItemStore.orderItems),(0,x.P1)(pr,Ke=>Ke.orderItemStore.orderItem),(0,x.P1)(pr,Ke=>Ke.orderItemStore.reloadOrderItem),(0,x.P1)(pr,Ke=>Ke.orderItemStore.reloadOrderItems),(0,x.P1)(pr,Ke=>Ke.orderItemStore.orderItemSaved),S(6789);var Pr=S(5524);const tn=(0,x.ZF)(Pr.y);(0,x.P1)(tn,Ke=>Ke.transactionStore.transactionsResponse),(0,x.P1)(tn,Ke=>Ke.transactionStore.transaction),(0,x.P1)(tn,Ke=>Ke.transactionStore.reloadTransactions),(0,x.P1)(tn,Ke=>Ke.transactionStore.transactionProcessed),(0,x.P1)(tn,Ke=>Ke.transactionStore.transactionDeleted),S(796);const Qi=(0,x.ZF)(Pr.y);(0,x.P1)(Qi,Ke=>Ke.creditVoucherStore.creditVouchers),(0,x.P1)(Qi,Ke=>Ke.creditVoucherStore.creditVoucher),(0,x.P1)(Qi,Ke=>Ke.creditVoucherStore.reloadCreditVouchers),(0,x.P1)(Qi,Ke=>Ke.creditVoucherStore.creditVoucherSaved),S(7027);const Fr=(0,x.ZF)(Pr.y);(0,x.P1)(Fr,Ke=>Ke.paymentProfileStore.paymentProfiles),(0,x.P1)(Fr,Ke=>Ke.paymentProfileStore.paymentProfile),(0,x.P1)(Fr,Ke=>Ke.paymentProfileStore.reloadPaymentProfiles),(0,x.P1)(Fr,Ke=>Ke.paymentProfileStore.paymentProfileSaved),(0,x.P1)(Fr,Ke=>Ke.paymentProfileStore.paymentProfileDeleted),S(9022);const $i=(0,x.ZF)(Pr.y);(0,x.P1)($i,Ke=>Ke.merchantCustomerStore.merchantCustomerPaymentMethods),(0,x.P1)($i,Ke=>Ke.merchantCustomerStore.merchantCustomer),(0,x.P1)($i,Ke=>Ke.merchantCustomerStore.reloadMerchantCustomerPaymentMethods),(0,x.P1)($i,Ke=>Ke.merchantCustomerStore.merchantCustomerSaved),S(9880);var ao=S(3096);const vo=(0,x.ZF)(ao.vv);(0,x.P1)(vo,Ke=>Ke.items),(0,x.P1)(vo,Ke=>Ke.item),(0,x.P1)(vo,Ke=>Ke.reloadItems),(0,x.P1)(vo,Ke=>Ke.itemSaved),S(8086),S(6678),S(3100);var cn=S(5464);const Be=(0,x.ZF)(cn.Z);(0,x.P1)(Be,Ke=>Ke.productCategoryStore.productcategorysResponse),(0,x.P1)(Be,Ke=>Ke.productCategoryStore.productcategory),(0,x.P1)(Be,Ke=>Ke.productCategoryStore.reloadProductCategorys),(0,x.P1)(Be,Ke=>Ke.productCategoryStore.productcategorySaved),S(4083),S(2997);var ii=S(7155),Yi=(S(3688),S(7559),S(3658));const os=(0,x.ZF)(Yi.qJ),ws=(0,x.P1)(os,Ke=>Ke.blogsResponse),ir=((0,x.P1)(os,Ke=>Ke.blogs),(0,x.P1)(os,Ke=>Ke.blog));(0,x.P1)(os,Ke=>Ke.reloadBlogs),(0,x.P1)(os,Ke=>Ke.blogSaved);var qr=S(9349),$s=S(4003);const Ds=(0,x.ZF)($s.Zo),So=(0,x.P1)(Ds,Ke=>Ke.eventsResponse),Wo=((0,x.P1)(Ds,Ke=>Ke.events),(0,x.P1)(Ds,Ke=>Ke.usaEventCount)),aa=(0,x.P1)(Ds,Ke=>Ke.canadaEventCount),Ye=(0,x.P1)(Ds,Ke=>Ke.featuredEventsResponse),et=((0,x.P1)(Ds,Ke=>Ke.featuredEvents),(0,x.P1)(Ds,Ke=>Ke.event));(0,x.P1)(Ds,Ke=>Ke.reloadEvents),(0,x.P1)(Ds,Ke=>Ke.eventSaved);var $n=S(9673),li=S(6947);const Bi=(0,x.ZF)(li.R),tt=(0,x.P1)(Bi,Ke=>Ke.dealersResponse),De=((0,x.P1)(Bi,Ke=>Ke.dealers),(0,x.P1)(Bi,Ke=>Ke.dealer));(0,x.P1)(Bi,Ke=>Ke.reloadDealers),(0,x.P1)(Bi,Ke=>Ke.dealerSaved);var Si=S(359),gs=S(6986);const Ni=(0,x.ZF)(gs.OE),wr=(0,x.P1)(Ni,Ke=>Ke.contactFormSent);var Qs=S(9361),Vr=S(8795);const us=(0,x.ZF)(Vr.BK),Do=(0,x.P1)(us,Ke=>Ke.logosResponse);(0,x.P1)(us,Ke=>Ke.logos),(0,x.P1)(us,Ke=>Ke.logo),(0,x.P1)(us,Ke=>Ke.reloadLogos),(0,x.P1)(us,Ke=>Ke.logoSaved);var ne=S(5120),Ae=S(3395),Ct=S(3054)},8758:(St,oe,S)=>{"use strict";S.d(oe,{_3:()=>N,m5:()=>p});var a=S(5620),C=S(7846);const N="appState",p=(0,a.Lq)({environment:void 0,deleteItemRequest:void 0,error:void 0,appBusy:void 0,searchTerm:void 0,searchResults:void 0},(0,a.on)(C.setSearchTerm,(r,{searchTerm:O})=>Object.assign(Object.assign({},r),{searchTerm:O})),(0,a.on)(C.addSearchResult,(r,{searchResult:O})=>Object.assign(Object.assign({},r),{searchResults:[...r.searchResults||[],O]})),(0,a.on)(C.setSearchResults,(r,{searchResults:O})=>Object.assign(Object.assign({},r),{searchResults:O})),(0,a.on)(C.setEnvironment,(r,{environment:O})=>Object.assign(Object.assign({},r),{environment:O})),(0,a.on)(C.createDeleteItemRequest,(r,{deleteItemRequest:O})=>Object.assign(Object.assign({},r),{deleteItemRequest:O})),(0,a.on)(C.clearDeleteItemRequest,r=>Object.assign(Object.assign({},r),{deleteItemRequest:void 0})),(0,a.on)(C.confirmDeleteItemRequest,(r,{deleteItemRequest:O})=>Object.assign(Object.assign({},r),{deleteItemRequest:Object.assign(Object.assign({},r.deleteItemRequest),{itemToDelete:O.itemToDelete,itemTypeToDelete:O.itemTypeToDelete,deleteConfirmed:!0})})),(0,a.on)(C.setError,(r,{error:O})=>Object.assign(Object.assign({},r),{error:O})),(0,a.on)(C.setAppBusy,(r,{appBusy:O})=>Object.assign(Object.assign({},r),{appBusy:O})))},5618:(St,oe,S)=>{"use strict";S.d(oe,{GR:()=>ze,gw:()=>p,rx:()=>r});var a=S(5620),C=S(8758);const N=(0,a.ZF)(C._3),ze=(0,a.P1)(N,H=>H.environment),p=(0,a.P1)(N,H=>H.deleteItemRequest),r=((0,a.P1)(N,H=>H.error),(0,a.P1)(N,H=>H.appBusy));(0,a.P1)(N,H=>H.searchResults),(0,a.P1)(N,H=>H.searchTerm)},3547:(St,oe,S)=>{"use strict";S.d(oe,{h:()=>a});class a{constructor(){this.locations=[{title:"JSA NJ",fullAddress:"2 Sylvan Way, Suite 102 Parsippany, NJ 07054",address:"2 Sylvan Way, Suite 102",city:"Parsippany",state:"NJ",displayState:"New Jersey",zip:"07054",phone:"9738981300",fax:"9738981301",email:"Info@SpenceLOA.com"},{title:"JSA FL",fullAddress:"3223 N.W. 10th Terrace, Suite 604 Fort Lauderdale, FL 33309",address:"3223 N.W. 10th Terrace, Suite 604",city:"Fort Lauderdale",state:"FL",displayState:"Florida",zip:"33309",phone:"9543808670",fax:"9543808673",email:"Florida@SpenceLOA.com"}]}}},131:(St,oe,S)=>{"use strict";S.d(oe,{N:()=>a});const a={version:"3.0",production:!0,envName:"prod",applicationId:"52D95372-C5BC-4DE3-B073-4CE6FC42EE5B",organizationId:"E2BEE467-6B7D-4D0E-9781-629001B93452",appSettingStoreUrl:"https://appsettings.spenceloa.com/api",reportingServerUrl:"https://reporting-v2.spenceloa.com/api/reporting/",reportNameSuffix:"",appRootUrl:"https://admin.spenceloa.com/%23",apiUrl:"https://webapi-v2.spenceloa.com/api/v2",identityUrl:"https://identityserver3.spenceloa.com/connect/token",identityRootUrl:"https://identityserver3.spenceloa.com/",loginRouterUrls:["login","resetpassword"],loginPage:"login"}},2789:(St,oe,S)=>{"use strict";var a=S(2313),C=S(5e3),N=S(520),ze=S(6360),p=S(6642),K=S(384),r=S(3587);const O=[{path:"",loadChildren:()=>Promise.all([S.e(420),S.e(592),S.e(377)]).then(S.bind(S,2377)).then(pn=>pn.HomePageModule)},{path:"",loadChildren:()=>Promise.all([S.e(420),S.e(286),S.e(592),S.e(342)]).then(S.bind(S,3342)).then(pn=>pn.StaticModule)},{path:"",loadChildren:()=>Promise.all([S.e(420),S.e(592),S.e(428)]).then(S.bind(S,6428)).then(pn=>pn.VerifyAuthModule)},{path:"",loadChildren:()=>Promise.all([S.e(420),S.e(286),S.e(52)]).then(S.bind(S,7052)).then(pn=>pn.BusinessServicesModule)}];let P=(()=>{class pn{}return pn.\u0275fac=function(_t){return new(_t||pn)},pn.\u0275mod=C.oAB({type:pn}),pn.\u0275inj=C.cJS({providers:[r.a],imports:[[K.Bz.forRoot(O,{useHash:!1})],K.Bz]}),pn})();var H=S(2625),E=S(7579),ee=S(131),x=S(5620),U=S(2722),le=S(72);let xe=(()=>{class pn{constructor(_t){this.spinner=_t,this.ngDestroyed$=new E.x}ngOnDestroy(){this.ngDestroyed$.next(!0),this.ngDestroyed$.unsubscribe()}ngOnInit(){this.showSpinner$.pipe((0,U.R)(this.ngDestroyed$)).subscribe(_t=>{_t?this.show():this.hide()})}show(){this.spinner.show()}hide(){this.spinner.hide()}}return pn.\u0275fac=function(_t){return new(_t||pn)(C.Y36(le.t2))},pn.\u0275cmp=C.Xpm({type:pn,selectors:[["jsa-spinner"]],inputs:{name:"name",showSpinner$:"showSpinner$"},decls:5,vars:1,consts:[[1,"centered",2,"z-index","99999"],[2,"position","relative"],["bdOpacity","0.9","bdColor","#fff","size","large","color","blue","type","ball-spin","zindex","7890",3,"fullScreen"],[2,"color","black","font-weight","bold"]],template:function(_t,Tt){1&_t&&(C.TgZ(0,"div",0),C.TgZ(1,"div",1),C.TgZ(2,"ngx-spinner",2),C.TgZ(3,"p",3),C._uU(4,"Loading..."),C.qZA(),C.qZA(),C.qZA(),C.qZA()),2&_t&&(C.xp6(2),C.Q6J("fullScreen",!1))},directives:[le.Ro],styles:[".centered[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}"]}),pn})();var re=S(3547);class ce{constructor(){this.siteMenu=[{name:"Verify Authenticity",link:"/verify-authenticity"},{name:"Authentication Fees",link:"/fees"},{name:"Authentication Process",link:"/authentication"},{name:"Services",link:"/services"},{name:"About",link:"/aboutjsa"},{name:"Events",link:"/events"},{name:"Blog",link:"/blog"},{name:"Contact",link:"/contact-us"}]}}var L=S(9808);let J=(()=>{class pn{constructor(){this.facebook="https://www.facebook.com/JSALOA/",this.instagram="https://www.instagram.com/jsaloa/",this.twitter="https://twitter.com/JSALOA",this.vimeo="https://vimeo.com/jsaloa",this.yelp="https://www.yelp.com/biz/james-spence-authentication-jsa-parsippany",this.linkedin="https://www.linkedin.com/company/james-spence-authentication"}ngOnInit(){}}return pn.\u0275fac=function(_t){return new(_t||pn)},pn.\u0275cmp=C.Xpm({type:pn,selectors:[["app-social-icons"]],decls:13,vars:6,consts:[[1,"social_icons_wrapper"],["target","_blank",1,"social_icon",3,"href"],[1,"fa","fa-facebook"],[1,"fa","fa-instagram"],[1,"fa","fa-twitter"],[1,"fa","fa-vimeo"],[1,"fa","fa-yelp"],[1,"fa","fa-linkedin"]],template:function(_t,Tt){1&_t&&(C.TgZ(0,"div",0),C.TgZ(1,"a",1),C._UZ(2,"i",2),C.qZA(),C.TgZ(3,"a",1),C._UZ(4,"i",3),C.qZA(),C.TgZ(5,"a",1),C._UZ(6,"i",4),C.qZA(),C.TgZ(7,"a",1),C._UZ(8,"i",5),C.qZA(),C.TgZ(9,"a",1),C._UZ(10,"i",6),C.qZA(),C.TgZ(11,"a",1),C._UZ(12,"i",7),C.qZA(),C.qZA()),2&_t&&(C.xp6(1),C.s9C("href",Tt.facebook,C.LSH),C.xp6(2),C.s9C("href",Tt.instagram,C.LSH),C.xp6(2),C.s9C("href",Tt.twitter,C.LSH),C.xp6(2),C.s9C("href",Tt.vimeo,C.LSH),C.xp6(2),C.s9C("href",Tt.yelp,C.LSH),C.xp6(2),C.s9C("href",Tt.linkedin,C.LSH))},styles:['.social_icons_wrapper[_ngcontent-%COMP%]{display:flex;display:-moz-flex;display:-ms-flex;align-items:center;-webkit-align-items:center;justify-content:flex-end;-webkit-justify-content:flex-end}.social_icons_wrapper[_ngcontent-%COMP%] .social_icon[_ngcontent-%COMP%]{text-decoration:none;background-color:#444;height:24px;width:24px;display:flex;display:-moz-flex;display:-ms-flex;align-items:center;-webkit-align-items:center;justify-content:center;-webkit-justify-content:center;margin-left:11px;position:relative}.social_icons_wrapper[_ngcontent-%COMP%] .social_icon[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;background-color:#a00f40;transition:all .3s cubic-bezier(.375,.005,0,1);transform:scale(0);-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0)}.social_icons_wrapper[_ngcontent-%COMP%] .social_icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#ebebeb;font-size:14px;z-index:2}.social_icons_wrapper[_ngcontent-%COMP%] .social_icon[_ngcontent-%COMP%]:hover:after{transform:scale(1);-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1)}']}),pn})();function we(pn,Yn){if(1&pn&&(C.TgZ(0,"div",25),C.TgZ(1,"span",26),C._uU(2),C.qZA(),C.TgZ(3,"a",27),C._uU(4),C.qZA(),C._UZ(5,"span",28),C.TgZ(6,"a",29),C._uU(7),C.qZA(),C.qZA()),2&pn){const _t=Yn.$implicit;C.xp6(2),C.hij("",_t.state,":"),C.xp6(1),C.MGl("href","tel:+1",_t.phone,"",C.LSH),C.xp6(1),C.Oqu(_t.phone),C.xp6(2),C.MGl("href","mailto:",_t.email,"",C.LSH),C.xp6(1),C.Oqu(_t.email)}}function ge(pn,Yn){if(1&pn&&(C.TgZ(0,"a",34),C._uU(1),C.qZA()),2&pn){const _t=C.oxw().$implicit;C.s9C("routerLink",_t.link),C.xp6(1),C.Oqu(_t.name)}}function fe(pn,Yn){if(1&pn&&(C.TgZ(0,"span",35),C._uU(1),C.qZA()),2&pn){const _t=C.oxw().$implicit;C.xp6(1),C.Oqu(_t.name)}}function Ce(pn,Yn){if(1&pn&&(C.TgZ(0,"li",22),C.TgZ(1,"a",34),C._uU(2),C.qZA(),C.qZA()),2&pn){const _t=Yn.$implicit;C.xp6(1),C.s9C("routerLink",_t.link),C.xp6(1),C.Oqu(_t.name)}}function e(pn,Yn){if(1&pn&&(C.TgZ(0,"ul",36),C.YNc(1,Ce,3,2,"li",37),C.qZA()),2&pn){const _t=C.oxw().$implicit;C.xp6(1),C.Q6J("ngForOf",_t.subMenu)}}const z=function(pn){return{has_child:pn}};function je(pn,Yn){if(1&pn&&(C.TgZ(0,"li",30),C.YNc(1,ge,2,2,"a",31),C.YNc(2,fe,2,1,"span",32),C.YNc(3,e,2,1,"ul",33),C.qZA()),2&pn){const _t=Yn.$implicit;C.Q6J("ngClass",C.VKq(4,z,_t.subMenu)),C.xp6(1),C.Q6J("ngIf",_t.link),C.xp6(1),C.Q6J("ngIf",!_t.link),C.xp6(1),C.Q6J("ngIf",_t.subMenu)}}function rt(pn,Yn){if(1&pn){const _t=C.EpF();C.TgZ(0,"a",40),C.NdJ("click",function(){C.CHM(_t);const Gt=C.oxw(2);return Gt.showMobileNav=!Gt.showMobileNav}),C._uU(1),C.qZA()}if(2&pn){const _t=C.oxw().$implicit;C.s9C("routerLink",_t.link),C.xp6(1),C.Oqu(_t.name)}}function it(pn,Yn){if(1&pn){const _t=C.EpF();C.TgZ(0,"span",41),C.NdJ("click",function(){C.CHM(_t);const Gt=C.oxw().index;return C.oxw().toggleMobileSubMenu(Gt)}),C._uU(1),C.qZA()}if(2&pn){const _t=C.oxw().$implicit;C.xp6(1),C.Oqu(_t.name)}}function ct(pn,Yn){if(1&pn&&(C.TgZ(0,"li",22),C.TgZ(1,"a",34),C._uU(2),C.qZA(),C.qZA()),2&pn){const _t=Yn.$implicit;C.xp6(1),C.s9C("routerLink",_t.link),C.xp6(1),C.Oqu(_t.name)}}function g(pn,Yn){if(1&pn&&(C.TgZ(0,"ul",36),C.YNc(1,ct,3,2,"li",37),C.qZA()),2&pn){const _t=C.oxw().$implicit;C.xp6(1),C.Q6J("ngForOf",_t.subMenu)}}const qe=function(pn,Yn){return{has_child:pn,open:Yn}};function Ve(pn,Yn){if(1&pn&&(C.TgZ(0,"li",30),C.YNc(1,rt,2,2,"a",38),C.YNc(2,it,2,1,"span",39),C.YNc(3,g,2,1,"ul",33),C.qZA()),2&pn){const _t=Yn.$implicit,Tt=Yn.index,Gt=C.oxw();C.Q6J("ngClass",C.WLB(4,qe,_t.subMenu,Tt===Gt.activeMobileMenu)),C.xp6(1),C.Q6J("ngIf",_t.link),C.xp6(1),C.Q6J("ngIf",!_t.link),C.xp6(1),C.Q6J("ngIf",_t.subMenu)}}const He=function(pn){return{open:pn}},X=function(pn){return{visible:pn}};let Le=(()=>{class pn{constructor(_t,Tt){this.locationInfo=_t,this.menuList=Tt,this.activeMobileMenu=-1,this.showMobileNav=!1}ngOnInit(){this.locations=this.locationInfo.locations,this.menuItems=this.menuList.siteMenu}toggleMobileSubMenu(_t){this.activeMobileMenu=this.activeMobileMenu!==_t?_t:-1}}return pn.\u0275fac=function(_t){return new(_t||pn)(C.Y36(re.h),C.Y36(ce))},pn.\u0275cmp=C.Xpm({type:pn,selectors:[["app-header"]],features:[C._Bn([re.h,ce])],decls:31,vars:9,consts:[["role","navigation"],[1,"site_nav_wrapper"],[1,"site_logo_wrapper"],["routerLink","/"],["src","/assets/images/logo/JSA_logo.png","alt","James Spence Authentication",1,"site_logo"],[1,"site_nav_container"],[1,"upper_nav"],["routerLink","/submit-your-item",1,"submit_item"],[1,"contact_wrapper"],["class","contact_item",4,"ngFor","ngForOf"],["role","menu",1,"main_nav"],["id","main_menu"],["class","nav_item",3,"ngClass",4,"ngFor","ngForOf"],[1,"mobile_nav_container"],[1,"mobile_nav_trigger",3,"ngClass","click"],[1,"line_conatiner"],[1,"menu-line","line-1"],[1,"menu-line","line-2"],[1,"menu-line","line-3"],[1,"mobile_menu",3,"ngClass"],["role","menu",1,"mobile_nav"],["id","mobile_menu"],[1,"nav_item"],["routerLink","/",1,"menu_item",3,"click"],["routerLink","/submit-your-item",1,"menu_item",3,"click"],[1,"contact_item"],[1,"state"],[1,"tel",3,"href"],[1,"pipe"],[3,"href"],[1,"nav_item",3,"ngClass"],["class","menu_item",3,"routerLink",4,"ngIf"],["class","menu_item",4,"ngIf"],["class","sub_menu",4,"ngIf"],[1,"menu_item",3,"routerLink"],[1,"menu_item"],[1,"sub_menu"],["class","nav_item",4,"ngFor","ngForOf"],["class","menu_item",3,"routerLink","click",4,"ngIf"],["class","menu_item",3,"click",4,"ngIf"],[1,"menu_item",3,"routerLink","click"],[1,"menu_item",3,"click"]],template:function(_t,Tt){1&_t&&(C.TgZ(0,"header",0),C.TgZ(1,"div",1),C.TgZ(2,"div",2),C.TgZ(3,"a",3),C._UZ(4,"img",4),C.qZA(),C.qZA(),C.TgZ(5,"div",5),C.TgZ(6,"div",6),C.TgZ(7,"a",7),C._uU(8,"submit your item"),C.qZA(),C.TgZ(9,"div",8),C.YNc(10,we,8,5,"div",9),C._UZ(11,"app-social-icons"),C.qZA(),C.qZA(),C.TgZ(12,"nav",10),C.TgZ(13,"ul",11),C.YNc(14,je,4,6,"li",12),C.qZA(),C.qZA(),C.qZA(),C.TgZ(15,"div",13),C.TgZ(16,"div",14),C.NdJ("click",function(){return Tt.showMobileNav=!Tt.showMobileNav}),C.TgZ(17,"div",15),C._UZ(18,"span",16),C._UZ(19,"span",17),C._UZ(20,"span",18),C.qZA(),C.qZA(),C.TgZ(21,"div",19),C.TgZ(22,"nav",20),C.TgZ(23,"ul",21),C.TgZ(24,"li",22),C.TgZ(25,"a",23),C.NdJ("click",function(){return Tt.showMobileNav=!Tt.showMobileNav}),C._uU(26,"Home"),C.qZA(),C.qZA(),C.TgZ(27,"li",22),C.TgZ(28,"a",24),C.NdJ("click",function(){return Tt.showMobileNav=!Tt.showMobileNav}),C._uU(29,"Submit Your Item"),C.qZA(),C.qZA(),C.YNc(30,Ve,4,7,"li",12),C.qZA(),C.qZA(),C.qZA(),C.qZA(),C.qZA(),C.qZA()),2&_t&&(C.xp6(10),C.Q6J("ngForOf",Tt.locations),C.xp6(4),C.Q6J("ngForOf",Tt.menuItems),C.xp6(2),C.Q6J("ngClass",C.VKq(5,He,Tt.showMobileNav)),C.xp6(5),C.Q6J("ngClass",C.VKq(7,X,Tt.showMobileNav)),C.xp6(9),C.Q6J("ngForOf",Tt.menuItems))},directives:[K.yS,L.sg,J,L.mk,L.O5],styles:['header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;z-index:999999}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%]{display:flex;display:-moz-flex;display:-ms-flex;align-items:center;-webkit-align-items:center;justify-content:space-between;-webkit-justify-content:space-between;position:relative;background-color:#fff;z-index:9999;height:82px}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_logo_wrapper[_ngcontent-%COMP%]{width:240px}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_logo_wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:66.6667%;height:auto;margin-left:32px;display:block}@media (max-width: 869px){header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_logo_wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50%}}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%]{width:-o-calc(100% - 240px);width:calc(100% - 240px);display:none}@media (min-width: 1165px){header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%]{display:block}}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%]{display:flex;display:-moz-flex;display:-ms-flex;align-items:center;-webkit-align-items:center;justify-content:space-between;-webkit-justify-content:space-between;background-color:#ebebeb;padding:8px 40px 8px 0;position:relative}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:0;height:100%;width:40px;background-color:#ebebeb;display:block;transform:skew(37deg);-webkit-transform:skew(37deg);-moz-transform:skew(37deg);-ms-transform:skew(37deg);-o-transform:skew(37deg);transform-origin:bottom left;z-index:0}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%] .contact_wrapper[_ngcontent-%COMP%]{display:flex;display:-moz-flex;display:-ms-flex;align-items:center;-webkit-align-items:center;justify-content:space-between;-webkit-justify-content:space-between}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%] .contact_wrapper[_ngcontent-%COMP%] .contact_item[_ngcontent-%COMP%]{font-size:12px;display:flex;display:-moz-flex;display:-ms-flex;align-items:center;-webkit-align-items:center;justify-content:space-between;-webkit-justify-content:space-between;margin:0 8px}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%] .contact_wrapper[_ngcontent-%COMP%] .contact_item[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{color:#8c0e39;font-weight:600}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%] .contact_wrapper[_ngcontent-%COMP%] .contact_item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#707070;text-decoration:none;font-weight:600;margin:0 5px}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%] .contact_wrapper[_ngcontent-%COMP%] .contact_item[_ngcontent-%COMP%] .pipe[_ngcontent-%COMP%]{display:inline-block;height:10px;width:2px;background-color:#707070;margin:0 3px}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%] .submit_item[_ngcontent-%COMP%]{text-decoration:none;color:#8c0e39;font-family:JSA_Heading,Arial,sans-serif;text-transform:uppercase;font-size:14px;margin-left:20px;z-index:1}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%] .submit_item[_ngcontent-%COMP%]:after{content:"";height:10px;width:10px;background-image:url(/assets/images/icon/arrow.png);background-position:center center;background-size:contain;display:inline-block;margin-left:6px;transition:all .6s cubic-bezier(.375,.005,0,1);transform:translate(0);-webkit-transform:translateX(0px);-moz-transform:translateX(0px);-ms-transform:translateX(0px);-o-transform:translateX(0px)}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] .upper_nav[_ngcontent-%COMP%] .submit_item[_ngcontent-%COMP%]:hover:after{transform:translate(3px);-webkit-transform:translateX(3px);-moz-transform:translateX(3px);-ms-transform:translateX(3px);-o-transform:translateX(3px)}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%]{padding:0 40px 0 20px}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;display:flex;display:-moz-flex;display:-ms-flex;align-items:center;-webkit-align-items:center;justify-content:space-between;-webkit-justify-content:space-between}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul.sub_menu[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;transform:translateY(0);-webkit-transform:translateY(0%);-moz-transform:translateY(0%);-ms-transform:translateY(0%);-o-transform:translateY(0%);background-color:#8c0e39;text-align:center;justify-content:center;-webkit-justify-content:center;-moz-justify-content:center;-ms-justify-content:center;-o-justify-content:center;z-index:-1;visibility:hidden}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul.sub_menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 16px}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul.sub_menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .menu_item[_ngcontent-%COMP%]{color:#fff}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul.sub_menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover .menu_item[_ngcontent-%COMP%]{color:#fff}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .menu_item[_ngcontent-%COMP%]{position:relative;font-family:JSA_Heading,Arial,sans-serif;color:#071108;font-size:14px;text-decoration:none;text-transform:uppercase;line-height:17px;padding:12px 0 13px;display:inline-block}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.has_child[_ngcontent-%COMP%]:after{content:"\\f107";font-family:fontawesome;display:inline-block;font-size:15px;margin-left:2px;transform:translateY(1px);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-ms-transform:translateY(1px);-o-transform:translateY(1px)}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.has_child[_ngcontent-%COMP%]:hover > .sub_menu[_ngcontent-%COMP%]{transform:translateY(100%);-webkit-transform:translateY(100%);-moz-transform:translateY(100%);-ms-transform:translateY(100%);-o-transform:translateY(100%);visibility:visible}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.has_child[_ngcontent-%COMP%]:hover > .menu_item[_ngcontent-%COMP%]:before{visibility:visible}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.has_child[_ngcontent-%COMP%] > .menu_item[_ngcontent-%COMP%]:before{content:"";height:10px;width:10px;background-color:#fff;display:block;position:absolute;left:0;right:0;bottom:0;margin:auto;transform:translate(3px,4px) rotate(45deg);-webkit-transform:translate3d(3px,4px,0) rotate(45deg);-moz-transform:translate3d(3px,4px,0) rotate(45deg);-ms-transform:translate3d(3px,4px,0) rotate(45deg);-o-transform:translate3d(3px,4px,0) rotate(45deg);visibility:hidden}header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover > a[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .site_nav_wrapper[_ngcontent-%COMP%] .site_nav_container[_ngcontent-%COMP%] nav.main_nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover:hover:after{color:#8c0e39}.mobile_nav_container[_ngcontent-%COMP%]{display:block}@media (min-width: 1165px){.mobile_nav_container[_ngcontent-%COMP%]{display:none}}.mobile_menu[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#8c0e39;visibility:hidden;opacity:0;transition:.4s opacity ease-in-out}.mobile_menu.visible[_ngcontent-%COMP%]{visibility:visible;opacity:1}#mobile_menu[_ngcontent-%COMP%]{padding:0;list-style:none;margin:0}#mobile_menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:10px 0}#mobile_menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid rgba(255,255,255,.2)}#mobile_menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{padding-bottom:0}#mobile_menu[_ngcontent-%COMP%] li.has_child[_ngcontent-%COMP%] > .menu_item[_ngcontent-%COMP%]:after{content:"\\f107";font-family:fontawesome;display:inline-block;font-size:15px;margin-left:10px;transform:translateY(1px);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-ms-transform:translateY(1px);-o-transform:translateY(1px)}#mobile_menu[_ngcontent-%COMP%] li.open[_ngcontent-%COMP%] .menu_item[_ngcontent-%COMP%]:after{transform:rotate(180deg)}#mobile_menu[_ngcontent-%COMP%] li.open[_ngcontent-%COMP%] .sub_menu[_ngcontent-%COMP%]{display:block}#mobile_menu[_ngcontent-%COMP%] .menu_item[_ngcontent-%COMP%]{color:#fff;text-decoration:none;text-transform:uppercase;font-size:20px;font-weight:700;letter-spacing:1px;cursor:pointer}#mobile_menu[_ngcontent-%COMP%] .sub_menu[_ngcontent-%COMP%]{list-style:none;padding-left:20px;display:none}#mobile_menu[_ngcontent-%COMP%] .sub_menu[_ngcontent-%COMP%] .menu_item[_ngcontent-%COMP%]{font-size:16px;text-transform:none;font-weight:500;color:#fff}.mobile_nav_trigger[_ngcontent-%COMP%]{margin-right:32px;position:relative;z-index:99999;padding:10px;border:1px solid #071108}.mobile_nav_trigger[_ngcontent-%COMP%] .line_conatiner[_ngcontent-%COMP%]{height:15px;width:15px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.mobile_nav_trigger[_ngcontent-%COMP%] .menu-line[_ngcontent-%COMP%]{width:100%;height:1px;background-color:#071108;transform-origin:right;transition:all .6s cubic-bezier(.375,.005,0,1);-webkit-backface-visibility:hidden;backface-visibility:hidden}.mobile_nav_trigger.open[_ngcontent-%COMP%]{border-color:transparent}.mobile_nav_trigger.open[_ngcontent-%COMP%] .menu-line[_ngcontent-%COMP%]{background-color:#fff}.mobile_nav_trigger.open[_ngcontent-%COMP%] .line-1[_ngcontent-%COMP%]{transform:rotate(-45deg) scaleX(1.41)}.mobile_nav_trigger.open[_ngcontent-%COMP%] .line-2[_ngcontent-%COMP%]{transform:scaleX(0)}.mobile_nav_trigger.open[_ngcontent-%COMP%] .line-3[_ngcontent-%COMP%]{transform:rotate(45deg) scaleX(1.41)}']}),pn})(),Te=(()=>{class pn{constructor(){}ngOnInit(){}}return pn.\u0275fac=function(_t){return new(_t||pn)},pn.\u0275cmp=C.Xpm({type:pn,selectors:[["app-footer"]],decls:32,vars:0,consts:[[1,"footer_container"],[1,"footer_navigation"],[1,"nav_row"],["routerLink","/fees",1,"footer_nav"],["routerLink","/verify-authenticity",1,"footer_nav"],["routerLink","/authentication",1,"footer_nav"],["routerLink","/dealers",1,"footer_nav"],["routerLink","/submit-your-item",1,"footer_nav"],["routerLink","/events",1,"footer_nav"],["routerLink","/aboutjsa",1,"footer_nav"],["routerLink","/services",1,"footer_nav"],["routerLink","/policies",1,"footer_nav"],["routerLink","/contact-us",1,"footer_nav"],[1,"footer_info"],[1,"copyright"]],template:function(_t,Tt){1&_t&&(C.TgZ(0,"footer"),C.TgZ(1,"div",0),C.TgZ(2,"div",1),C.TgZ(3,"div",2),C.TgZ(4,"a",3),C._uU(5,"Authentication Fees"),C.qZA(),C.TgZ(6,"a",4),C._uU(7,"Verify Authenticity"),C.qZA(),C.TgZ(8,"a",5),C._uU(9,"Authentication Process"),C.qZA(),C.TgZ(10,"a",6),C._uU(11,"Authorized Dealers"),C.qZA(),C.qZA(),C.TgZ(12,"div",2),C.TgZ(13,"a",7),C._uU(14,"Submit Your Item"),C.qZA(),C.TgZ(15,"a",8),C._uU(16,"Events & Appearances"),C.qZA(),C.TgZ(17,"a",9),C._uU(18,"Meet The Team"),C.qZA(),C.TgZ(19,"a",10),C._uU(20,"Services"),C.qZA(),C.qZA(),C.TgZ(21,"div",2),C.TgZ(22,"a",9),C._uU(23,"About"),C.qZA(),C.TgZ(24,"a",11),C._uU(25,"Policies"),C.qZA(),C.TgZ(26,"a",12),C._uU(27,"Contact Us"),C.qZA(),C.qZA(),C.qZA(),C.TgZ(28,"div",13),C._UZ(29,"app-social-icons"),C.TgZ(30,"span",14),C._uU(31,"\xa9 2017 James Spence Authentication. All Rights Reserved"),C.qZA(),C.qZA(),C.qZA(),C.qZA())},directives:[K.yS,J],styles:['footer[_ngcontent-%COMP%]{background-color:#071108;padding:55px 0}footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%]{width:-o-calc(100% - 80px);width:calc(100% - 80px);margin:0 auto;display:flex;display:-moz-flex;display:-ms-flex;align-items:flex-end;-webkit-align-items:flex-end;justify-content:space-between;-webkit-justify-content:space-between}@media (max-width: 869px){footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%]{flex-direction:column;align-items:center;justify-content:center;-webkit-justify-content:center;-webkit-align-items:center}}@media (max-width: 869px){footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_navigation[_ngcontent-%COMP%]{margin-bottom:25px}}@media (max-width: 869px){footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_navigation[_ngcontent-%COMP%] .nav_row[_ngcontent-%COMP%]{text-align:center}}footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_navigation[_ngcontent-%COMP%] .nav_row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:none;font-weight:100;letter-spacing:1px;font-size:14px;line-height:28px}footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_navigation[_ngcontent-%COMP%] .nav_row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:not(:last-child):after{content:"|";display:inline-block;color:#fff;margin:0 3px 0 5px}footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_info[_ngcontent-%COMP%]{display:flex;display:-moz-flex;display:-ms-flex;align-items:flex-end;-webkit-align-items:flex-end;justify-content:space-between;-webkit-justify-content:space-between;flex-direction:column}@media (max-width: 869px){footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_info[_ngcontent-%COMP%]{align-items:center;justify-content:center;-webkit-align-items:center;-webkit-justify-content:center}}footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_info[_ngcontent-%COMP%] .copyright[_ngcontent-%COMP%]{font-weight:100;color:#444;font-size:12px;letter-spacing:.5px;text-transform:uppercase;text-align:center}footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_info[_ngcontent-%COMP%] .social_icons_wrapper{margin-bottom:24px!important}footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_info[_ngcontent-%COMP%] .social_icons_wrapper a{height:28px;width:28px}footer[_ngcontent-%COMP%] .footer_container[_ngcontent-%COMP%] .footer_info[_ngcontent-%COMP%] .social_icons_wrapper a i{color:#071108;font-size:16px}']}),pn})(),Ze=(()=>{class pn{constructor(_t,Tt,Gt){this.appStore=_t,this.router=Tt,this.route=Gt,this.ngDestroyed$=new E.x,this.title="jsa-angular-showcase-website"}ngOnDestroy(){this.ngDestroyed$.next(!0),this.ngDestroyed$.unsubscribe()}ngOnInit(){this.appStore.dispatch(H.ql.setEnvironment({environment:ee.N})),this.storeSubscriptions(),this.router.events.subscribe(Tt=>{Tt instanceof K.m2&&window.scrollY>0&&window.scrollTo(0,0)}),this.route.fragment.subscribe(Tt=>this.fragment=Tt)}storeSubscriptions(){this.showSpinner$=this.appStore.select(H.fc.rx)}}return pn.\u0275fac=function(_t){return new(_t||pn)(C.Y36(x.yh),C.Y36(K.F0),C.Y36(K.gz))},pn.\u0275cmp=C.Xpm({type:pn,selectors:[["app-root"]],decls:4,vars:2,consts:[[3,"showSpinner$","name"]],template:function(_t,Tt){1&_t&&(C._UZ(0,"jsa-spinner",0),C._UZ(1,"app-header"),C._UZ(2,"router-outlet"),C._UZ(3,"app-footer")),2&_t&&C.Q6J("showSpinner$",Tt.showSpinner$)("name","main-app")},directives:[xe,Le,K.lC,Te],styles:[".centered[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}"]}),pn})();var he=S(9565),Ne=S(9444),Me=S(801),ke=S(8758),G=S(9702),ot=S(7550),We=S(6767),ut=S(7659),Mt=S(2290),At=S(8966),Jt=S(6751),Wt=S(3654);let Sn=(()=>{class pn{constructor(_t){this.injector=_t}handleError(_t){this.injector.get(Wt.q).handleError(_t)}}return pn.\u0275fac=function(_t){return new(_t||pn)(C.LFG(C.zs3))},pn.\u0275prov=C.Yz7({token:pn,factory:pn.\u0275fac,providedIn:"root"}),pn})();const ye=new C.OlP("config"),be=new C.OlP("NEW_CONFIG"),Je=new C.OlP("INITIAL_CONFIG"),gt={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}};let ft=(()=>{class pn{constructor(_t){this._config=_t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(Tt,Gt,Rt,Ft)=>{const F=Tt.split(Rt),V=F.length>1?`${Rt}${F[1]}`:"";let Q=F[0];const ie=this.separatorLimit.replace(/\s/g,"");ie&&+ie&&(Q="-"===Q[0]?`-${Q.slice(1,Q.length).slice(0,ie.length)}`:Q.slice(0,ie.length));const nt=/(\d+)(\d{3})/;for(;Gt&&nt.test(Q);)Q=Q.replace(nt,"$1"+Gt+"$2");return void 0===Ft?Q+V:0===Ft?Q:Q+V.substr(0,Ft+1)},this.percentage=Tt=>Number(Tt)>=0&&Number(Tt)<=100,this.getPrecision=Tt=>{const Gt=Tt.split(".");return Gt.length>1?Number(Gt[Gt.length-1]):1/0},this.checkAndRemoveSuffix=Tt=>{var Gt,Rt,Ft;for(let F=(null===(Gt=this.suffix)||void 0===Gt?void 0:Gt.length)-1;F>=0;F--){const V=this.suffix.substr(F,null===(Rt=this.suffix)||void 0===Rt?void 0:Rt.length);if(Tt.includes(V)&&(F-1<0||!Tt.includes(this.suffix.substr(F-1,null===(Ft=this.suffix)||void 0===Ft?void 0:Ft.length))))return Tt.replace(V,"")}return Tt},this.checkInputPrecision=(Tt,Gt,Rt)=>{if(Gt<1/0){const Ft=new RegExp(this._charToRegExpExpression(Rt)+`\\d{${Gt}}.*$`),F=Tt.match(Ft);F&&F[0].length-1>Gt&&(Tt=Tt.substring(0,Tt.length-(F[0].length-1-Gt))),0===Gt&&Tt.endsWith(Rt)&&(Tt=Tt.substring(0,Tt.length-1))}return Tt},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(_t,Tt){const[Gt,Rt]=Tt;return this.customPattern=Rt,this.applyMask(_t,Gt)}applyMask(_t,Tt,Gt=0,Rt=!1,Ft=!1,F=(()=>{})){var V,Q;if(!Tt||"string"!=typeof _t)return"";let ie=0,nt="",bt=!1,an=!1,Qn=1,ni=!1;_t.slice(0,this.prefix.length)===this.prefix&&(_t=_t.slice(this.prefix.length,_t.length)),this.suffix&&(null==_t?void 0:_t.length)>0&&(_t=this.checkAndRemoveSuffix(_t));const An=_t.toString().split("");"IP"===Tt&&(this.ipError=An.filter(jt=>"."===jt).length<3&&An.length<7,Tt="099.099.099.099");const Ii=[];for(let jt=0;jt<_t.length;jt++)(null===(V=_t[jt])||void 0===V?void 0:V.match("\\d"))&&Ii.push(_t[jt]);if("CPF_CNPJ"===Tt&&(this.cpfCnpjError=11!==Ii.length&&14!==Ii.length,Tt=Ii.length>11?"00.000.000/0000-00":"000.000.000-00"),Tt.startsWith("percent")){if(_t.match("[a-z]|[A-Z]")||_t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){_t=this._stripToDecimal(_t);const jt=this.getPrecision(Tt);_t=this.checkInputPrecision(_t,jt,this.decimalMarker)}_t.indexOf(".")>0&&!this.percentage(_t.substring(0,_t.indexOf(".")))&&(_t=`${_t.substring(0,_t.indexOf(".")-1)}${_t.substring(_t.indexOf("."),_t.length)}`),nt=this.percentage(_t)?_t:_t.substring(0,_t.length-1)}else if(Tt.startsWith("separator")){(_t.match("[w\u0430-\u044f\u0410-\u042f]")||_t.match("[\u0401\u0451\u0410-\u044f]")||_t.match("[a-z]|[A-Z]")||_t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||_t.match("[^A-Za-z0-9,]"))&&(_t=this._stripToDecimal(_t)),_t=_t.length>1&&"0"===_t[0]&&_t[1]!==this.decimalMarker&&!Ft?_t.slice(1,_t.length):_t;const jt=this._charToRegExpExpression(this.thousandSeparator),on=this._charToRegExpExpression(this.decimalMarker),kn='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(jt,"").replace(on,""),xi=new RegExp("["+kn+"]");_t.match(xi)&&(_t=_t.substring(0,_t.length-1));const Ei=this.getPrecision(Tt),ps=(_t=this.checkInputPrecision(_t,Ei,this.decimalMarker)).replace(new RegExp(jt,"g"),"");nt=this._formatWithSeparators(ps,this.thousandSeparator,this.decimalMarker,Ei);const fs=nt.indexOf(",")-_t.indexOf(","),dr=nt.length-_t.length;if(dr>0&&","!==nt[Gt]){an=!0;let gr=0;do{this._shift.add(Gt+gr),gr++}while(gr0&&!(nt.indexOf(",")>=Gt&&Gt>3)||!(nt.indexOf(".")>=Gt&&Gt>3)&&dr<=0?(this._shift.clear(),an=!0,Qn=dr,this._shift.add(Gt+=dr)):this._shift.clear()}else for(let jt=0,on=An[0];jt2){ie+=1,this._shiftStep(Tt,ie,An.length),jt--,this.leadZeroDateTime&&(nt+="0");continue}if("h"===Tt[ie]&&"2"===nt&&Number(on)>3){ie+=1,jt--;continue}if("m"===Tt[ie]&&Number(on)>5){ie+=1,this._shiftStep(Tt,ie,An.length),jt--,this.leadZeroDateTime&&(nt+="0");continue}if("s"===Tt[ie]&&Number(on)>5){ie+=1,this._shiftStep(Tt,ie,An.length),jt--,this.leadZeroDateTime&&(nt+="0");continue}const kn=31;if("d"===Tt[ie]&&(Number(on)>3&&this.leadZeroDateTime||Number(_t.slice(ie,ie+2))>kn||"/"===_t[ie+1])){ie+=1,this._shiftStep(Tt,ie,An.length),jt--,this.leadZeroDateTime&&(nt+="0");continue}if("M"===Tt[ie]){const xi=12,Ei=0===ie&&(Number(on)>2||Number(_t.slice(ie,ie+2))>xi||"/"===_t[ie+1]),ps=_t.slice(ie-3,ie-1).includes("/")&&("/"===_t[ie-2]&&Number(_t.slice(ie-1,ie+1))>xi&&"/"!==_t[ie]||"/"===_t[ie]||"/"===_t[ie-3]&&Number(_t.slice(ie-2,ie))>xi&&"/"!==_t[ie-1]||"/"===_t[ie-1]),fs=Number(_t.slice(ie-3,ie-1))<=kn&&!_t.slice(ie-3,ie-1).includes("/")&&"/"===_t[ie-1]&&(Number(_t.slice(ie,ie+2))>xi||"/"===_t[ie+1]),dr=Number(_t.slice(ie-3,ie-1))>kn&&!_t.slice(ie-3,ie-1).includes("/")&&!_t.slice(ie-2,ie).includes("/")&&Number(_t.slice(ie-2,ie))>xi,gr=Number(_t.slice(ie-3,ie-1))<=kn&&!_t.slice(ie-3,ie-1).includes("/")&&"/"!==_t[ie-1]&&Number(_t.slice(ie-1,ie+1))>xi;if(Number(on)>1&&this.leadZeroDateTime||Ei||ps||fs||dr||gr){ie+=1,this._shiftStep(Tt,ie,An.length),jt--,this.leadZeroDateTime&&(nt+="0");continue}}nt+=on,ie++}else-1!==this.maskSpecialCharacters.indexOf(Tt[ie])?(nt+=Tt[ie],ie++,this._shiftStep(Tt,ie,An.length),jt--):this.maskSpecialCharacters.indexOf(on)>-1&&this.maskAvailablePatterns[Tt[ie]]&&(null===(Q=this.maskAvailablePatterns[Tt[ie]])||void 0===Q?void 0:Q.optional)?(!!An[ie]&&"099.099.099.099"!==Tt&&"000.000.000-00"!==Tt&&"00.000.000/0000-00"!==Tt&&(nt+=An[ie]),ie++,jt--):"*"===this.maskExpression[ie+1]&&this._findSpecialChar(this.maskExpression[ie+2])&&this._findSpecialChar(on)===this.maskExpression[ie+2]&&bt||"?"===this.maskExpression[ie+1]&&this._findSpecialChar(this.maskExpression[ie+2])&&this._findSpecialChar(on)===this.maskExpression[ie+2]&&bt?(ie+=3,nt+=on):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(on)<0&&on!==this.placeHolderCharacter&&(ni=!0);nt.length+1===Tt.length&&-1!==this.maskSpecialCharacters.indexOf(Tt[Tt.length-1])&&(nt+=Tt[Tt.length-1]);let Zi=Gt+1;for(;this._shift.has(Zi);)Qn++,Zi++;let Ti=Rt?ie:this._shift.has(Gt)?Qn:0;ni&&Ti--,F(Ti,an),Qn<0&&this._shift.clear();let yn=!1;Ft&&(yn=An.every(jt=>this.maskSpecialCharacters.includes(jt)));let qt=`${this.prefix}${yn?"":nt}${this.suffix}`;return 0===nt.length&&(qt=`${this.prefix}${nt}`),qt}_findSpecialChar(_t){return this.maskSpecialCharacters.find(Tt=>Tt===_t)}_checkSymbolMask(_t,Tt){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[Tt]&&this.maskAvailablePatterns[Tt].pattern&&this.maskAvailablePatterns[Tt].pattern.test(_t)}_stripToDecimal(_t){return _t.split("").filter((Tt,Gt)=>Tt.match("^-?\\d")||Tt.match("\\s")||"."===Tt||","===Tt||"-"===Tt&&0===Gt&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(_t){return _t&&(" "===_t?"\\s":"[\\^$.|?*+()".indexOf(_t)>=0?"\\"+_t:_t)}_shiftStep(_t,Tt,Gt){const Rt=/[*?]/g.test(_t.slice(0,Tt))?Gt:Tt;this._shift.add(Rt+this.prefix.length||0)}}return pn.\u0275fac=function(_t){return new(_t||pn)(C.LFG(ye))},pn.\u0275prov=C.Yz7({token:pn,factory:pn.\u0275fac}),pn})();function Kt(pn,Yn){return Object.assign(Object.assign({},pn),Yn instanceof Function?Yn():Yn)}let hn=(()=>{class pn{static forRoot(_t){return{ngModule:pn,providers:[{provide:be,useValue:_t},{provide:Je,useValue:gt},{provide:ye,useFactory:Kt,deps:[Je,be]},ft]}}static forChild(){return{ngModule:pn}}}return pn.\u0275fac=function(_t){return new(_t||pn)},pn.\u0275mod=C.oAB({type:pn}),pn.\u0275inj=C.cJS({}),pn})();const xn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};xn.KeyboardEvent||(xn.KeyboardEvent=function(pn,Yn){});let Hn=(()=>{class pn{constructor(_t){_t.addIcons(Me.KtF,Me.sq$,Me.UJf,Me.co4,Me.yXf,Me.I7k,Me.kZ_,Me.Tab,Me.wf8,Me.r6l,Me.xiG,Me.d8e,Me.aj4,Me.BDt,Me._Ob,Me.eW2,Me.l1h,Me.Uu6,Me.I4f,Me.wn1,Me.q7m,Me.N7g,Me.vsP,Me.XSV,Me.X7o,Me.egO,Me.Ozh,Me.Tab)}}return pn.\u0275fac=function(_t){return new(_t||pn)(C.LFG(Ne.by))},pn.\u0275mod=C.oAB({type:pn,bootstrap:[Ze]}),pn.\u0275inj=C.cJS({providers:[{provide:C.soG,useValue:"en-US"},{provide:At.Bq,useValue:{hasBackdrop:!0,direction:"ltr"}},{provide:C.qLn,useClass:Sn}],imports:[[x.Aw.forRoot({appState:ke.m5},{runtimeChecks:{strictActionImmutability:!1}}),p.sQ.forRoot(),he.FT.instrument({maxAge:25}),G.s,ot.m.forRoot(),hn.forRoot(),a.b2,ze.PW,Mt.Rh.forRoot({timeOut:5e3,positionClass:"toast-top-right",preventDuplicates:!0,progressBar:!0,newestOnTop:!0,tapToDismiss:!0}),P,N.JF,We.a,ut.Y,Jt.t,Ne.uH]]}),pn})();ee.N.production&&(0,C.G48)(),a.q6().bootstrapModule(Hn).catch(pn=>console.error(pn))},9923:(St,oe,S)=>{"use strict";function p(Ie,ln,de,ht){var Dt,cn=arguments.length,Be=cn<3?ln:null===ht?ht=Object.getOwnPropertyDescriptor(ln,de):ht;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Be=Reflect.decorate(Ie,ln,de,ht);else for(var xt=Ie.length-1;xt>=0;xt--)(Dt=Ie[xt])&&(Be=(cn<3?Dt(Be):cn>3?Dt(ln,de,Be):Dt(ln,de))||Be);return cn>3&&Be&&Object.defineProperty(ln,de,Be),Be}function K(Ie,ln){return function(de,ht){ln(de,ht,Ie)}}function r(Ie,ln){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Ie,ln)}S.d(oe,{zx:()=>Qn,Fq:()=>Zr});var e=S(5e3),z=S(1135),je=S(7579),g=(S(4968),S(6451),S(727),S(3911)),qe=S(9352),Ve=S(9300),X=(S(5698),S(3710)),Le=S(9808),Te=S(4743);S(1777);let nt=(()=>{let Ie=class{constructor(){this.buttonLookChange=new z.X("default"),this.buttonClicked=new je.x,this.buttonClicked$=this.buttonClicked.asObservable()}click(de){this.buttonClicked.next(de)}setButtonLook(de){this.buttonLookChange.next(de)}};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275prov=e.Yz7({token:Ie,factory:function(ln){return Ie.\u0275fac(ln)}}),Ie})();const bt={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635937762,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let Qn=(()=>{let Ie=class{constructor(de,ht,cn,Be,Dt){this.service=cn,this.ngZone=Dt,this.toggleable=!1,this.primary=!1,this.look="default",this.role="button",this.selectedChange=new e.vpe,this.click=new e.vpe,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._focused=!1,this.domEvents=[],(0,X.s)(bt),this.direction=Be.rtl?"rtl":"ltr",this.localizationChangeSubscription=Be.changes.subscribe(({rtl:xt})=>this.direction=xt?"rtl":"ltr"),this.element=de.nativeElement,this.renderer=ht}get togglable(){return this.toggleable}set togglable(de){this.toggleable=de}get selected(){return this._selected||!1}set selected(de){this._selected=de}set tabIndex(de){this.element.tabIndex=de}get tabIndex(){return this.element.tabIndex}set icon(de){de?this.iconSetter(de,()=>{this.isIcon=!0,this.addIcon("k-icon k-i-"+de)}):(this.isIcon=!1,this.updateIconNode())}set iconClass(de){de?this.iconSetter(de,()=>{this.isIconClass=!0,this.addIcon(de)}):(this.isIconClass=!1,this.updateIconNode())}set imageUrl(de){de?this.iconSetter(de,this.addImgIcon.bind(this)):this.removeImageNode()}set disabled(de){this.isDisabled=de,this.renderer.setProperty(this.element,"disabled",de)}get disabled(){return this.isDisabled}set isFocused(de){this.toggleClass("k-state-focused",de),this._focused=de}get isFocused(){return this._focused}get classButton(){return!0}get classPrimary(){return this.primary}get isToggleable(){return this.toggleable}get isFlat(){return"flat"===this.look}get isBare(){return"bare"===this.look}get isOutline(){return"outline"===this.look}get isClear(){return"clear"===this.look}get roleSetter(){return this.role}get classDisabled(){return this.isDisabled}get classActive(){return this.selected}get getDirection(){return this.direction}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}ngOnInit(){const de="SPAN"===this.element.tagName;this.service&&(this.buttonLookChangeSubscription=this.service.buttonLookChange.pipe((0,Ve.h)(ht=>"default"!==ht)).subscribe(ht=>this.look=ht)),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element,"click",this._onButtonClick.bind(this))),this.domEvents.push(this.renderer.listen(this.element,"keydown",ht=>{de&&(ht.keyCode===g.R8.Space||ht.keyCode===g.R8.Enter)&&(this.click.emit(ht),this._onButtonClick())}))})}ngOnChanges(de){((0,g.ln)("togglable",de)||(0,g.ln)("toggleable",de))&&this.toggleAriaPressed(this.toggleable)}ngAfterViewChecked(){this.setIconTextClasses()}ngOnDestroy(){this.imageNode=null,this.iconNode=null,this.renderer=null,this.localizationChangeSubscription.unsubscribe(),this.service&&this.buttonLookChangeSubscription&&this.buttonLookChangeSubscription.unsubscribe(),clearTimeout(this.deferTimeout),this.domEvents.forEach(de=>de())}focus(){(0,g.X_)()&&(this.element.focus(),this.isFocused=!0)}blur(){(0,g.X_)()&&(this.element.blur(),this.isFocused=!1)}setAttribute(de,ht){this.renderer.setAttribute(this.element,de,ht)}removeAttribute(de){this.renderer.removeAttribute(this.element,de)}setSelected(de){const ht=this.selected!==de;this.selected=de,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-state-selected",this.selected),ht&&(0,g.g$)(this.selectedChange)&&this.ngZone.run(()=>{this.selectedChange.emit(de)})}toggleAriaPressed(de){!(0,g.X_)()||(de?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}hasText(){return!!(0,g.X_)()&&String(this.element.textContent).trim().length>0}addImgIcon(de){let ht=this.renderer;this.imageNode?ht.setProperty(this.imageNode,"src",de):(0,g.X_)()&&(this.imageNode=ht.createElement("img"),ht.setProperty(this.imageNode,"src",de),ht.setProperty(this.imageNode,"className","k-image"),ht.setAttribute(this.imageNode,"role","presentation"),this.prependChild(this.imageNode))}addIcon(de){let ht=this.renderer;this.iconNode?ht.setProperty(this.iconNode,"className",de):(0,g.X_)()&&(this.iconNode=ht.createElement("span"),ht.setProperty(this.iconNode,"className",de),ht.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))}prependChild(de){this.defer(()=>{this.renderer&&de!==this.element.firstChild&&this.renderer.insertBefore(this.element,de,this.element.firstChild)})}defer(de){this.ngZone.runOutsideAngular(()=>{this.deferTimeout=setTimeout(de,0)})}iconSetter(de,ht){de&&ht(de),this.setIconTextClasses()}removeImageNode(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.imageNode=null)}removeIconNode(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null)}updateIconNode(){!this.isIcon&&!this.isIconClass&&this.removeIconNode()}setIconTextClasses(){const de=this.isIcon||this.isIconClass||this.imageNode,ht=this.hasText();this.toggleClass("k-button-icon",de&&!ht),this.toggleClass("k-button-icontext",de&&ht)}toggleClass(de,ht){ht?this.renderer.addClass(this.element,de):this.renderer.removeClass(this.element,de)}_onButtonClick(){!this.disabled&&this.service&&this.ngZone.run(()=>{this.service.click(this)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}};return Ie.\u0275fac=function(de){return new(de||Ie)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(nt,8),e.Y36(qe.oQ),e.Y36(e.R0b))},Ie.\u0275dir=e.lG2({type:Ie,selectors:[["button","kendoButton",""],["span","kendoButton",""]],hostVars:21,hostBindings:function(de,ht){1&de&&e.NdJ("focus",function(){return ht.onFocus()})("blur",function(){return ht.onBlur()}),2&de&&(e.uIk("role",ht.roleSetter)("aria-disabled",ht.classDisabled)("dir",ht.getDirection),e.ekj("k-button",ht.classButton)("k-primary",ht.classPrimary)("k-toggle-button",ht.isToggleable)("k-flat",ht.isFlat)("k-bare",ht.isBare)("k-outline",ht.isOutline)("k-button-clear",ht.isClear)("k-state-disabled",ht.classDisabled)("k-state-selected",ht.classActive))},inputs:{toggleable:"toggleable",primary:"primary",look:"look",role:"role",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[e._Bn([qe.oQ,{provide:qe.mM,useValue:"kendo.button"}]),e.TTD]}),p([(0,e.IIB)(),r("design:type",Boolean)],Ie.prototype,"toggleable",void 0),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],Ie.prototype,"togglable",null),p([(0,e.IIB)(),r("design:type",Boolean)],Ie.prototype,"primary",void 0),p([(0,e.IIB)(),r("design:type",String)],Ie.prototype,"look",void 0),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],Ie.prototype,"selected",null),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],Ie.prototype,"tabIndex",null),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],Ie.prototype,"icon",null),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],Ie.prototype,"iconClass",null),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],Ie.prototype,"imageUrl",null),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],Ie.prototype,"disabled",null),p([(0,e.IIB)(),r("design:type",String)],Ie.prototype,"role",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Ie.prototype,"selectedChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Ie.prototype,"click",void 0),p([(0,e.pfw)("class.k-button"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"classButton",null),p([(0,e.pfw)("class.k-primary"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"classPrimary",null),p([(0,e.pfw)("class.k-toggle-button"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"isToggleable",null),p([(0,e.pfw)("class.k-flat"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"isFlat",null),p([(0,e.pfw)("class.k-bare"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"isBare",null),p([(0,e.pfw)("class.k-outline"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"isOutline",null),p([(0,e.pfw)("class.k-button-clear"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"isClear",null),p([(0,e.pfw)("attr.role"),r("design:type",String),r("design:paramtypes",[])],Ie.prototype,"roleSetter",null),p([(0,e.pfw)("attr.aria-disabled"),(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"classDisabled",null),p([(0,e.pfw)("class.k-state-selected"),r("design:type",Boolean),r("design:paramtypes",[])],Ie.prototype,"classActive",null),p([(0,e.pfw)("attr.dir"),r("design:type",String),r("design:paramtypes",[])],Ie.prototype,"getDirection",null),p([(0,e.L6J)("focus"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],Ie.prototype,"onFocus",null),p([(0,e.L6J)("blur"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],Ie.prototype,"onBlur",null),Ie=p([K(2,(0,e.FiY)()),r("design:paramtypes",[e.SBq,e.Qsj,nt,qe.oQ,e.R0b])],Ie),Ie})();Promise.resolve(null);let kn=(()=>{let Ie=class{};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({}),Ie})(),xi=(()=>{let Ie=class{};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({imports:[[Le.ez,kn]]}),Ie})(),Vs=(()=>{let Ie=class{};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({imports:[[Le.ez]]}),Ie})();new e.OlP("navigation.config");let Sr=(()=>{class Ie extends qe.Z1{}return Ie.\u0275fac=function(){let ln;return function(ht){return(ln||(ln=e.n5z(Ie)))(ht||Ie)}}(),Ie.\u0275dir=e.lG2({type:Ie,inputs:{splitButtonLabel:"splitButtonLabel"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],Ie.prototype,"splitButtonLabel",void 0),Ie})();var Ns;let Or=Ns=class extends Sr{constructor(ln){super(),this.service=ln}};var $r;Or.\u0275fac=function(ln){return new(ln||Or)(e.Y36(qe.oQ))},Or.\u0275dir=e.lG2({type:Or,selectors:[["","kendoSplitButtonLocalizedMessages",""]],features:[e._Bn([{provide:Sr,useExisting:(0,e.Gpc)(()=>Ns)}]),e.qOj]}),Or=Ns=p([r("design:paramtypes",[qe.oQ])],Or);let Ri=$r=class extends Sr{constructor(ln){super(),this.service=ln}get override(){return!0}};Ri.\u0275fac=function(ln){return new(ln||Ri)(e.Y36(qe.oQ))},Ri.\u0275cmp=e.Xpm({type:Ri,selectors:[["kendo-splitbutton-messages"]],features:[e._Bn([{provide:Sr,useExisting:(0,e.Gpc)(()=>$r)}]),e.qOj],decls:0,vars:0,template:function(ln,de){},encapsulation:2}),Ri=$r=p([r("design:paramtypes",[qe.oQ])],Ri);let Pr=(()=>{let Ie=class{};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({imports:[[Le.ez,Te.Zj,kn,Vs],Vs]}),Ie})(),_i=(()=>{let Ie=class{};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({imports:[[Le.ez,Te.Zj,Vs,kn],Vs]}),Ie})(),vr=(()=>{let Ie=class{};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({imports:[[Le.ez]]}),Ie})(),Wr=(()=>{let Ie=class{};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({imports:[[Le.ez,Te.Zj,Vs,g.OY]]}),Ie})(),Zr=(()=>{let Ie=class{};return Ie.\u0275fac=function(de){return new(de||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({imports:[xi,kn,Pr,_i,vr,Wr]}),Ie})()},3911:(St,oe,S)=>{"use strict";function p(F,V,Q,ie){var an,nt=arguments.length,bt=nt<3?V:null===ie?ie=Object.getOwnPropertyDescriptor(V,Q):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)bt=Reflect.decorate(F,V,Q,ie);else for(var Qn=F.length-1;Qn>=0;Qn--)(an=F[Qn])&&(bt=(nt<3?an(bt):nt>3?an(V,Q,bt):an(V,Q))||bt);return nt>3&&bt&&Object.defineProperty(V,Q,bt),bt}function r(F,V){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,V)}S.d(oe,{pD:()=>Te,QY:()=>Ze,OY:()=>Nt,nV:()=>gt,GX:()=>Gt,R8:()=>Rt,wY:()=>Ft,NG:()=>Yn,uv:()=>Tt,aG:()=>He,M8:()=>Le,g$:()=>X,ln:()=>Ve,X_:()=>qe});var e=S(5e3),z=S(8606),je=S(9808),rt=S(3601),it=S(6451),ct=S(4968),g=S(8996);const qe=()=>"undefined"!=typeof document,Ve=(F,V,Q=!0)=>!(void 0===V[F]||V[F].isFirstChange()&&Q||V[F].previousValue===V[F].currentValue),He=(F,V,Q=!0)=>F.some(ie=>Ve(ie,V,Q)),X=F=>F&&F.observers.length>0,Le=()=>{let F="";for(let V=0;V<32;V++){const Q=16*Math.random()|0;(8===V||12===V||16===V||20===V)&&(F+="-"),F+=(12===V?4:16===V?3&Q|8:Q).toString(16)}return F};let Te=(()=>{let F=class{constructor(Q,ie){this.element=Q,this.ngZone=ie,this.enableDrag=!0,this.kendoPress=new e.vpe,this.kendoDrag=new e.vpe,this.kendoRelease=new e.vpe}ngOnInit(){this.toggleDraggable()}ngOnChanges(Q){Ve("enableDrag",Q)&&this.toggleDraggable()}ngOnDestroy(){this.destroyDraggable()}toggleDraggable(){qe()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new z.Z({drag:Q=>this.kendoDrag.next(Q),press:Q=>this.kendoPress.next(Q),release:Q=>this.kendoRelease.next(Q)}),this.ngZone.runOutsideAngular(()=>this.draggable.bindTo(this.element.nativeElement))))}destroyDraggable(){this.draggable&&(this.draggable.destroy(),this.draggable=null)}};return F.\u0275fac=function(Q){return new(Q||F)(e.Y36(e.SBq),e.Y36(e.R0b))},F.\u0275dir=e.lG2({type:F,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[e.TTD]}),p([(0,e.IIB)(),r("design:type",Boolean)],F.prototype,"enableDrag",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],F.prototype,"kendoPress",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],F.prototype,"kendoDrag",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],F.prototype,"kendoRelease",void 0),F=p([r("design:paramtypes",[e.SBq,e.R0b])],F),F})(),Ze=(()=>{let F=class{};return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[[je.ez]]}),F})(),gt=(()=>{let F=class{constructor(Q,ie,nt){this.element=Q,this.ngZone=ie,this.renderer=nt,this.events={}}ngOnInit(){if(!this.element||!this.element.nativeElement)return;const Q=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(()=>{for(let ie in Q)Q.hasOwnProperty(ie)&&this.subscriptions.push(this.renderer.listen(this.element.nativeElement,ie,this.scope?Q[ie].bind(this.scope):Q[ie]))})}ngOnDestroy(){if(this.subscriptions){for(let Q=0;Q{let F=class{};return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({}),F})();class $t{constructor(V){this.resizeBatchService=V,this.resize=new e.vpe,this.acceptedSize=!1,this.state=0}acceptSize(V=this.measure()){this.lastWidth=V.width,this.lastHeight=V.height,this.acceptedSize=!0}checkChanges(){!qe()||0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}destroy(){this.resizeBatchService.cancel(this)}checkSize(){if(!this.parentElement)return;const{width:V,height:Q}=this.measure();return V!==this.lastWidth||Q!==this.lastHeight?(this.lastWidth=V,this.lastHeight=Q,this.acceptedSize=!1,this.resize.emit(),!0):void 0}initSize(){const V=this.measure();this.lastWidth=V.width,this.lastHeight=V.height}measure(){let V=0,Q=0;return this.parentElement&&(Q=this.parentElement.offsetHeight,V=this.parentElement.offsetWidth),{height:Q,width:V}}}const ft=F=>{const V=document.createElement("div");return V.style.cssText=F,V},Re="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;";class hn extends $t{constructor(V,Q,ie){super(V),this.element=Q,this.ngZone=ie}checkChanges(){2!==this.state?super.checkChanges():this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}destroy(){if(super.destroy(),this.subscription&&this.subscription.unsubscribe(),this.expand){const V=this.element.nativeElement;V.removeChild(this.expand),V.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}checkSize(){if(super.checkSize())return this.reset(),!0}init(){const V=this.parentElement=this.element.nativeElement.parentElement;var F;"static"===(F=V,getComputedStyle(F,null).getPropertyValue("position"))&&(V.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}render(){const V=this.element.nativeElement;V.style.cssText=Re,V.setAttribute("dir","ltr"),this.expand=ft(Re),this.expandChild=ft("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),V.appendChild(this.expand),this.shrink=ft(Re);const Q=ft("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(Q),V.appendChild(this.shrink)}reset(){const V=this.expandChild;V.style.width="100000px",V.style.height="100000px";const Q=this.expand;Q.scrollLeft=1e5,Q.scrollTop=1e5;const ie=this.shrink;ie.scrollLeft=1e5,ie.scrollTop=1e5}subscribe(){this.ngZone.runOutsideAngular(()=>{this.subscription=(0,it.T)((0,ct.R)(this.shrink,"scroll"),(0,ct.R)(this.expand,"scroll")).subscribe(()=>{this.checkSize()})})}}const xn="undefined"!=typeof ResizeObserver;class Mn extends $t{constructor(V,Q,ie){super(V),this.element=Q,this.ngZone=ie}static supported(){return xn}destroy(){super.destroy(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}init(){this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(()=>{this.resizeObserver=new ResizeObserver(()=>{this.checkSize()}),this.resizeObserver.observe(this.parentElement)})}}let Hn=(()=>{let F=class{constructor(Q){this.ngZone=Q,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}schedule(Q,ie){this.scheduled.push({instance:Q,method:ie}),this.subscription||this.ngZone.runOutsideAngular(()=>{this.subscription=(0,g.D)(this.resolvedPromise).subscribe(this.flush)})}isScheduled(Q){return Boolean(this.scheduled.find(ie=>ie.instance===Q))}cancel(Q){const ie=this.scheduled,nt=ie.length;for(let bt=0;bt{Q.method.call(Q.instance)}),this.scheduled=[],this.unsubscribe()}};return F.\u0275fac=function(Q){return new(Q||F)(e.LFG(e.R0b))},F.\u0275prov=e.Yz7({token:F,factory:function(V){return F.\u0275fac(V)}}),F=p([r("design:paramtypes",[e.R0b])],F),F})(),Yn=(()=>{let F=class{constructor(Q,ie,nt){this.rateLimit=10,this.resize=new e.vpe;const bt=Mn.supported()?Mn:hn;this.resizeService=new bt(Q,ie,nt),this.subscription=this.resizeService.resize.pipe((0,rt.e)(1e3/(this.rateLimit||10))).subscribe(()=>{this.resizeService.acceptedSize||this.resize.emit()})}ngAfterViewChecked(){this.resizeService.checkChanges()}ngOnDestroy(){this.subscription.unsubscribe(),this.resizeService.destroy()}acceptSize(Q){this.resizeService.acceptSize(Q)}};return F.\u0275fac=function(Q){return new(Q||F)(e.Y36(Hn),e.Y36(e.SBq),e.Y36(e.R0b))},F.\u0275cmp=e.Xpm({type:F,selectors:[["kendo-resize-sensor"]],inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},decls:0,vars:0,template:function(Q,ie){},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Number)],F.prototype,"rateLimit",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],F.prototype,"resize",void 0),F=p([r("design:paramtypes",[Hn,e.SBq,e.R0b])],F),F})(),Tt=(()=>{let F=class{};return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({providers:[Hn]}),F})();class Gt{}var Rt=(()=>{return(F=Rt||(Rt={}))[F.Alt=18]="Alt",F[F.ArrowDown=40]="ArrowDown",F[F.ArrowLeft=37]="ArrowLeft",F[F.ArrowRight=39]="ArrowRight",F[F.ArrowUp=38]="ArrowUp",F[F.Backspace=8]="Backspace",F[F.Control=17]="Control",F[F.Delete=46]="Delete",F[F.Digit0=48]="Digit0",F[F.Digit1=49]="Digit1",F[F.Digit2=50]="Digit2",F[F.Digit3=51]="Digit3",F[F.Digit4=52]="Digit4",F[F.Digit5=53]="Digit5",F[F.Digit6=54]="Digit6",F[F.Digit7=55]="Digit7",F[F.Digit8=56]="Digit8",F[F.Digit9=57]="Digit9",F[F.End=35]="End",F[F.Enter=13]="Enter",F[F.Escape=27]="Escape",F[F.F1=112]="F1",F[F.F2=113]="F2",F[F.F10=121]="F10",F[F.Home=36]="Home",F[F.Insert=45]="Insert",F[F.KeyA=65]="KeyA",F[F.KeyB=66]="KeyB",F[F.KeyC=67]="KeyC",F[F.KeyD=68]="KeyD",F[F.KeyE=69]="KeyE",F[F.KeyF=70]="KeyF",F[F.KeyG=71]="KeyG",F[F.KeyH=72]="KeyH",F[F.KeyI=73]="KeyI",F[F.KeyJ=74]="KeyJ",F[F.KeyK=75]="KeyK",F[F.KeyL=76]="KeyL",F[F.KeyM=77]="KeyM",F[F.KeyN=78]="KeyN",F[F.KeyO=79]="KeyO",F[F.KeyP=80]="KeyP",F[F.KeyQ=81]="KeyQ",F[F.KeyR=82]="KeyR",F[F.KeyS=83]="KeyS",F[F.KeyT=84]="KeyT",F[F.KeyU=85]="KeyU",F[F.KeyV=86]="KeyV",F[F.KeyW=87]="KeyW",F[F.KeyX=88]="KeyX",F[F.KeyY=89]="KeyY",F[F.KeyZ=90]="KeyZ",F[F.NumpadDecimal=110]="NumpadDecimal",F[F.PageDown=34]="PageDown",F[F.PageUp=33]="PageUp",F[F.Shift=16]="Shift",F[F.Space=32]="Space",F[F.Tab=9]="Tab",Rt;var F})();class Ft{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}},3831:(St,oe,S)=>{"use strict";function p(_,v,d,M){var Qt,Y=arguments.length,Fe=Y<3?v:null===M?M=Object.getOwnPropertyDescriptor(v,d):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Fe=Reflect.decorate(_,v,d,M);else for(var gn=_.length-1;gn>=0;gn--)(Qt=_[gn])&&(Fe=(Y<3?Qt(Fe):Y>3?Qt(v,d,Fe):Qt(v,d))||Fe);return Y>3&&Fe&&Object.defineProperty(v,d,Fe),Fe}function K(_,v){return function(d,M){v(d,M,_)}}function r(_,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(_,v)}S.d(oe,{jf:()=>zs,WN:()=>p1,rI:()=>tr,g9:()=>Is,q2:()=>g1});var e=S(5e3),z=S(3911),je=S(2382),rt=S(3710),it=S(9912),ct=S(9352),g=S(6451),qe=S(4968),Ve=S(7579),He=S(727),X=S(9646),Le=S(7445),Te=S(4743),Ze=S(9808);function G(_,v,d,M){var Qt,Y=arguments.length,Fe=Y<3?v:null===M?M=Object.getOwnPropertyDescriptor(v,d):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Fe=Reflect.decorate(_,v,d,M);else for(var gn=_.length-1;gn>=0;gn--)(Qt=_[gn])&&(Fe=(Y<3?Qt(Fe):Y>3?Qt(v,d,Fe):Qt(v,d))||Fe);return Y>3&&Fe&&Object.defineProperty(v,d,Fe),Fe}function ot(_,v){return function(d,M){v(d,M,_)}}function We(_,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(_,v)}var hn=S(1135),xn=S(515),Mn=S(1777),Hn=S(9300),pn=S(262),Yn=S(8505),_t=S(8746),Tt=S(3900),Gt=S(5698),Rt=S(4004),Ft=S(8537),F=S(2722),Q=(S(8606),S(9788));const ie=["assetsContainer"];function nt(_,v){1&_&&e._UZ(0,"span",6)}function bt(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-textbox",3,4),e.NdJ("valueChange",function(Y){return e.CHM(d),e.oxw().filterChange.emit(Y)}),e.YNc(2,nt,1,0,"ng-template",5),e.qZA()}if(2&_){const d=e.oxw();e.Q6J("value",d.filter)("clearButton",!0)("placeholder",d.filterInputPlaceholder)}}const an=["kendoTreeViewGroup",""];function Qn(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",11),e.NdJ("click",function(){e.CHM(d);const Y=e.oxw(),Fe=Y.index,Qt=Y.$implicit,gn=e.oxw();return gn.expandNode(gn.nodeIndex(Fe),Qt,!gn.isExpanded(Qt,gn.nodeIndex(Fe)))}),e.qZA()}if(2&_){const d=e.oxw(),M=d.$implicit,Y=d.index,Fe=e.oxw();e.ekj("k-i-collapse",Fe.isExpanded(M,Fe.nodeIndex(Y)))("k-i-expand",!Fe.isExpanded(M,Fe.nodeIndex(Y))),e.Q6J("kendoTreeViewLoading",Fe.nodeIndex(Y))}}function ni(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-checkbox",12),e.NdJ("checkStateChange",function(){e.CHM(d);const Y=e.oxw().index,Fe=e.oxw();return Fe.checkNode(Fe.nodeIndex(Y))}),e.qZA()}if(2&_){const d=e.oxw(),M=d.$implicit,Y=d.index,Fe=e.oxw();e.Q6J("node",M)("index",Fe.nodeIndex(Y))("isChecked",Fe.isChecked)}}function An(_,v){}const Ii=function(_,v){return{$implicit:_,index:v}};function Zi(_,v){if(1&_&&(e.ynx(0),e.YNc(1,An,0,0,"ng-template",13),e.BQk()),2&_){const d=e.oxw(),M=d.$implicit,Y=d.index,Fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",Fe.nodeTemplateRef)("ngTemplateOutletContext",e.WLB(2,Ii,M,Fe.nodeIndex(Y)))}}function Ti(_,v){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const d=e.oxw().$implicit,M=e.oxw();e.xp6(1),e.hij(" ",M.nodeText(d)," ")}}function yn(_,v){if(1&_&&e._UZ(0,"ul",14),2&_){const d=e.oxw(),M=d.$implicit,Y=d.index,Fe=e.oxw();e.Q6J("nodes",Fe.fetchChildren)("loadOnDemand",Fe.loadOnDemand)("checkboxes",Fe.checkboxes)("expandIcons",Fe.expandIcons)("selectable",Fe.selectable)("touchActions",Fe.touchActions)("children",Fe.children)("hasChildren",Fe.hasChildren)("isChecked",Fe.isChecked)("isDisabled",Fe.isDisabled)("disabled",Fe.disabled||Fe.isDisabled(M,Fe.nodeIndex(Y)))("isExpanded",Fe.isExpanded)("isSelected",Fe.isSelected)("isVisible",Fe.isVisible)("nodeTemplateRef",Fe.nodeTemplateRef)("loadMoreButtonTemplateRef",Fe.loadMoreButtonTemplateRef)("parentIndex",Fe.nodeIndex(Y))("parentDataItem",M)("textField",Fe.nextFields)("loadMoreService",Fe.loadMoreService)("@toggle",!0)("trackBy",Fe.trackBy)}}function qt(_,v){if(1&_&&(e.TgZ(0,"li",2),e.TgZ(1,"div",3),e.YNc(2,Qn,1,5,"span",4),e.YNc(3,ni,1,3,"kendo-checkbox",5),e.TgZ(4,"span",6),e.ynx(5,7),e.YNc(6,Zi,2,5,"ng-container",8),e.YNc(7,Ti,2,1,"ng-container",9),e.BQk(),e.qZA(),e.qZA(),e.YNc(8,yn,1,22,"ul",10),e.qZA()),2&_){const d=v.$implicit,M=v.index,Y=e.oxw();e.ekj("k-display-none",!Y.isVisible(d,Y.nodeIndex(M))),e.Q6J("dataItem",d)("index",Y.nodeIndex(M))("parentDataItem",Y.parentDataItem)("parentIndex",Y.parentIndex)("loadOnDemand",Y.loadOnDemand)("checkable",Y.checkboxes)("isChecked",Y.isChecked(d,Y.nodeIndex(M)))("isDisabled",Y.disabled||Y.isDisabled(d,Y.nodeIndex(M)))("isVisible",Y.isVisible(d,Y.nodeIndex(M)))("expandable",Y.expandIcons&&Y.hasChildren(d))("isExpanded",Y.isExpanded(d,Y.nodeIndex(M)))("selectable",Y.selectable)("isSelected",Y.isSelected(d,Y.nodeIndex(M))),e.uIk("aria-setsize",Y.totalNodesCount)("data-treeindex",Y.nodeIndex(M)),e.xp6(2),e.Q6J("ngIf",Y.expandIcons&&Y.hasChildren(d)),e.xp6(1),e.Q6J("ngIf",Y.checkboxes),e.xp6(1),e.Udp("touch-action",Y.touchActions?"":"none"),e.Q6J("dataItem",d)("index",Y.nodeIndex(M))("initialSelection",Y.isSelected(d,Y.nodeIndex(M)))("isSelected",Y.isSelected),e.uIk("data-treeindex",Y.nodeIndex(M)),e.xp6(1),e.Q6J("ngSwitch",Y.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(2),e.Q6J("ngIf",Y.isExpanded(d,Y.nodeIndex(M))&&Y.hasChildren(d))}}function jt(_,v){1&_&&e._UZ(0,"span",19)}function on(_,v){}const kn=function(_){return{index:_}};function xi(_,v){if(1&_&&e.YNc(0,on,0,0,"ng-template",13),2&_){const d=e.oxw(2);e.Q6J("ngTemplateOutlet",d.loadMoreButtonTemplateRef)("ngTemplateOutletContext",e.VKq(2,kn,d.loadMoreButtonIndex))}}function Ei(_,v){1&_&&(e.ynx(0),e._uU(1," Load more "),e.BQk())}function ps(_,v){if(1&_&&(e.TgZ(0,"li",15),e.TgZ(1,"div",3),e.YNc(2,jt,1,0,"span",16),e.TgZ(3,"span",17),e.YNc(4,xi,1,4,void 0,18),e.YNc(5,Ei,2,0,"ng-container",18),e.qZA(),e.qZA(),e.qZA()),2&_){const d=e.oxw();e.ekj("k-treeview-load-more-checkboxes-container",d.checkboxes),e.Q6J("selectable",!1)("checkable",!1)("expandable",!1)("index",d.loadMoreButtonIndex)("parentDataItem",d.parentDataItem)("parentIndex",d.parentIndex),e.uIk("data-treeindex",d.loadMoreButtonIndex),e.xp6(2),e.Q6J("ngIf",d.loadingMoreNodes),e.xp6(1),e.Q6J("index",d.loadMoreButtonIndex),e.uIk("data-treeindex",d.loadMoreButtonIndex),e.xp6(1),e.Q6J("ngIf",d.loadMoreButtonTemplateRef),e.xp6(1),e.Q6J("ngIf",!d.loadMoreButtonTemplateRef)}}const Hi={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1638439762,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let Ms=(()=>{class _{constructor(){this.changes=new e.vpe}notify(){this.changes.emit()}}return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac}),_})();const ur=()=>!1,pr=()=>"none",Ps=()=>!1,Sr=()=>!0,Ns=()=>!1,Or=()=>!0,$r=(_,v)=>v;let Ri=(()=>{let _=class{constructor(){this.changes=new Ve.x}expand(d,M){this.changes.next({dataItem:M,index:d,expand:!0})}collapse(d,M){this.changes.next({dataItem:M,index:d,expand:!1})}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})(),Pr=(()=>{let _=class{constructor(){this.INDEX_SEPARATOR="_"}nodeIndex(d="",M=""){return`${M}${M?this.INDEX_SEPARATOR:""}${d}`}indexForLevel(d,M){return d.split(this.INDEX_SEPARATOR).slice(0,M).join(this.INDEX_SEPARATOR)}lastLevelIndex(d=""){const M=d.split(this.INDEX_SEPARATOR);return M.length?parseInt(M[M.length-1],10):NaN}level(d){return d.split(this.INDEX_SEPARATOR).length}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})(),tn=(()=>{let _=class{constructor(){this.changes=new Ve.x}notifyLoaded(d){this.changes.next(d)}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})();const Zn=/^(?:a|input|select|option|textarea|button|object)$/i,wn=(_,v)=>{const d=_.matches||_.msMatchesSelector||_.webkitMatchesSelector;return!!d&&d.call(_,v)},On=(_,v)=>{if(!document.documentElement.contains(_))return null;let d=_;for(;null!==d&&1===d.nodeType;){if(wn(d,v))return d;d=d.parentElement||d.parentNode}return null},_i=()=>{},vn=_=>null!=_,Qi=_=>Array.isArray(_),Ss=_=>{const v="li.k-treeview-item";return(0,z.X_)()?_.closest?_.closest(v):On(_,v):null},ds=_=>{if(_.tagName){const v=_.tagName.toLowerCase(),d=_.getAttribute("tabIndex"),M="-1"===d;let Y=null!==d&&!M;return Zn.test(v)&&(Y=!_.disabled&&!M),Y}return!1},Tr=_=>vn(On(_,".k-in.k-treeview-load-more-button")),eo=(_,v)=>Boolean(((_,v)=>{for(;_&&!v(_);)_=_.parentNode;return _})(_,d=>d===v)),No=_=>_.nativeElement.querySelector('li[tabindex="0"]'),Rr=_=>_?_.getAttribute("data-treeindex"):"",Xs=_=>(_||{}).index,cn=(_,v)=>[_,v].filter(d=>vn(d)).join("_"),Yt=_=>_||{},en=_=>Yt(_).children||[],Cn=_=>{if(!Array.isArray(_)||0===_.length)return null;for(let M=_.length-1;M>=0;M-=1){const Y=_[M];if(Y.visible)return Y}return null};class ai{constructor(){this.ib=new Pr,this.nodes=[]}firstVisibleNode(){return(this.nodes||[]).find(v=>v.visible)}lastVisibleNode(){let v=Cn(this.nodes);for(;vn(v)&&en(v).length>0;){const d=en(v),M=Cn(d);if(!vn(M))return v;v=M}return v}closestNode(v){const{prev:d}=Yt(this.findNode(v)),M=d||this.firstVisibleNode();return Yt(M).index===v?this.visibleSibling(M,1):M}firstFocusableNode(){return this.nodes.find(v=>!v.disabled&&v.visible)}findNode(v){return this.find(v,this.nodes)}findParent(v){const d=this.ib.level(v)-1;return this.findNode(this.ib.indexForLevel(v,d))}findVisibleChild(v){const d=this.findNode(v);return en(d).find(Y=>Y.visible)}findVisiblePrev(v){const d=v.index,M=this.findParent(d),Y=this.ib.lastLevelIndex(d),Qt=this.container(M).slice(0,Y).every(Un=>!Un.visible);if(0===Y||Qt)return M;const gn=this.findNode(d);let qn=this.visibleSibling(gn,-1);if(qn){let Un=this.container(qn);for(;Un.length>0&&Un.some(Xi=>Xi.visible);)qn=Cn(Un),Un=this.container(qn)}return qn}findVisibleNext(v){const d=this.container(v),M=d.some(Y=>Y.visible);return 0!==d.length&&M?d.find(Y=>Y.visible):this.visibleSibling(v,1)}registerItem(v,d,M,Y=!1,Fe=!0){const Qt=[],gn=this.ib.level(d),qn=this.findParent(d);(qn||1===gn)&&this.insert({id:v,children:Qt,index:d,parent:qn,disabled:M,loadMoreButton:Y,visible:Fe},qn)}unregisterItem(v,d){const M=this.find(d,this.nodes);if(!M||M.id!==v)return;const Y=this.container(M.parent);Y.splice(Y.indexOf(M),1)}childLevel(v){const d=v.filter(M=>vn(M));return d&&d.length?this.ib.level(d[0].index):1}container(v){return v?v.children:this.nodes}find(v,d){const M=this.childLevel(d),Y=this.ib.indexForLevel(v,M),Fe=M===this.ib.level(v),Qt=d.find(gn=>gn&&gn.index===Y);return Qt?Fe?Qt:this.find(v,Qt.children):null}insert(v,d){this.container(d).splice(this.ib.lastLevelIndex(v.index),0,v)}visibleSibling(v,d){if(!v)return null;const M=this.findParent(v.index),Y=this.container(M);let Fe=Y.indexOf(v)+d,Qt=Y[Fe];for(;vn(Qt);){if(Qt.visible)return Qt;Fe+=d,Qt=Y[Fe]}return this.visibleSibling(M,d)}}let ii=(()=>{let _=class{constructor(d){this.localization=d,this.expands=new Ve.x,this.moves=new Ve.x,this.checks=new Ve.x,this.selects=new Ve.x,this.loadMore=new Ve.x,this.navigable=!0,this.actions={[z.R8.ArrowUp]:()=>this.activate(this.model.findVisiblePrev(this.focusableItem)),[z.R8.ArrowDown]:()=>this.activate(this.model.findVisibleNext(this.focusableItem)),[z.R8.ArrowLeft]:()=>!this.isLoadMoreButton&&this.expand({expand:this.localization.rtl,intercept:this.localization.rtl?this.moveToFirstVisibleChild:this.moveToParent}),[z.R8.ArrowRight]:()=>!this.isLoadMoreButton&&this.expand({expand:!this.localization.rtl,intercept:this.localization.rtl?this.moveToParent:this.moveToFirstVisibleChild}),[z.R8.Home]:()=>this.activate(this.model.firstVisibleNode()),[z.R8.End]:()=>this.activate(this.model.lastVisibleNode()),[z.R8.Enter]:()=>this.handleEnter(),[z.R8.Space]:()=>this.handleSpace()},this.isFocused=!1,this._model=new ai,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}get model(){return this._model}set model(d){this._model=d}get activeIndex(){return Xs(this.activeItem)||null}get isActiveExpanded(){return this.activeItem&&this.activeItem.children.length>0}get isLoadMoreButton(){return this.activeItem&&this.activeItem.loadMoreButton}get focusableItem(){return this.activeItem||this.model.firstFocusableNode()}activate(d){!this.navigable||!d||this.isActive(Xs(d))||(this.isFocused=!0,this.activeItem=d||this.activeItem,this.notifyMove())}activateParent(d){this.activate(this.model.findParent(d))}activateIndex(d){!d||this.activate(this.model.findNode(d))}activateClosest(d){!d||Xs(this.focusableItem)!==d||(this.activeItem=this.model.closestNode(d),this.notifyMove())}activateFocusable(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}deactivate(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}checkIndex(d){this.isDisabled(d)||this.checks.next(d)}selectIndex(d){this.isDisabled(d)||this.selects.next(d)}notifyLoadMore(d){!vn(d)||this.loadMore.next(d)}isActive(d){return!!d&&this.isFocused&&this.activeIndex===d}isFocusable(d){return Xs(this.focusableItem)===d}isDisabled(d){return this.model.findNode(d).disabled}registerItem(d,M,Y,Fe=!1,Qt=!0){const gn=this.model.findNode(M);vn(gn)&&(this.model.unregisterItem(gn.id,gn.index),this.isActive(M)&&this.deactivate()),this.model.registerItem(d,M,Y,Fe,Qt)}unregisterItem(d,M){this.isActive(M)&&this.activateParent(M),this.model.unregisterItem(d,M)}move(d){if(!this.navigable)return;const M=this.actions[d.keyCode];!M||(M(),d.preventDefault())}expand({expand:d,intercept:M}){const Y=Xs(this.activeItem);!Y||M(Y)||this.notifyExpand(d)}moveToParent(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(Xs(this.activeItem))),!0)}moveToFirstVisibleChild(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(Xs(this.activeItem))),!0)}notifyExpand(d){this.expands.next(this.navigationState(d))}notifyMove(){this.moves.next(this.navigationState())}navigationState(d=!1){return{expand:d,index:this.activeIndex,isFocused:this.isFocused}}handleEnter(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))}handleSpace(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}};return _.\u0275fac=function(d){return new(d||_)(e.LFG(ct.oQ))},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_=G([We("design:paramtypes",[ct.oQ])],_),_})(),ki=(()=>{let _=class{constructor(){this.changes=new Ve.x}childrenLoaded(d,M){this.changes.next({item:d,children:M})}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})(),Ci=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc,8))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoTreeViewNodeTemplate",""]]}),_=G([ot(0,(0,e.FiY)()),We("design:paramtypes",[e.Rgc])],_),_})(),Yi=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc,8))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),_=G([ot(0,(0,e.FiY)()),We("design:paramtypes",[e.Rgc])],_),_})(),os=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})(),ws=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})(),Es=(()=>{let _=class{constructor(){this.changes=new Ve.x}isFirstSelected(d){return this.firstIndex===d}setFirstSelected(d,M){this.firstIndex===d&&!1===M?this.firstIndex=null:!this.firstIndex&&M&&(this.firstIndex=d)}select(d,M){this.changes.next({dataItem:M,index:d})}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})();const ir=/\d+$/;let hr=(()=>{let _=class{constructor(){this.map=new Map}reset(){this.map.clear()}registerItem(d,M){const Y={children:[],item:d,parent:this.item(Xs(M))};this.map.set(d.index,Y)}registerChildren(d,M){const Y=this.item(d);!Y||(Y.children=M)}unregisterItem(d,M){const Y=this.item(d);Y&&Y.item.dataItem===M&&(this.map.delete(d),Y.parent&&Y.parent.children&&(Y.parent.children=Y.parent.children.filter(Fe=>Fe.dataItem!==M)))}replaceItem(d,M,Y){!M||(this.unregisterItem(d,M.dataItem),this.registerItem(M,Y),this.addToParent(M,Y))}itemLookup(d){const M=this.item(d);return M?{children:this.mapChildren(M.children),item:M.item,parent:M.parent}:null}hasItem(d){return this.map.has(d)}item(d){return this.map.get(d)||null}addToParent(d,M){if(M){const Y=this.item(M.index),Fe=parseInt(ir.exec(d.index)[0],10);Y.children=Y.children||[],Y.children.splice(Fe,0,d)}}mapChildren(d=[]){return d.map(M=>{const{item:Y,parent:Fe,children:Qt}=this.item(M.index);return{children:this.mapChildren(Qt),item:Y,parent:Fe}})}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})();const qr=[Ri,Pr,hr,tn,ki,ii,Es,Ms,ct.oQ,{provide:ct.mM,useValue:"kendo.treeview"},{provide:os,useExisting:(0,e.Gpc)(()=>$s)},{provide:ws,useExisting:(0,e.Gpc)(()=>$s)}];let $s=(()=>{let _=class{constructor(d,M,Y,Fe,Qt,gn,qn,Un,Xi,Pi,Hs){this.element=d,this.changeDetectorRef=M,this.expandService=Y,this.navigationService=Fe,this.nodeChildrenService=Qt,this.selectionService=gn,this.treeViewLookupService=qn,this.ngZone=Un,this.renderer=Xi,this.dataChangeNotification=Pi,this.localization=Hs,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=()=>this.data,this.childrenLoaded=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.nodeDragStart=new e.vpe,this.nodeDrag=new e.vpe,this.filterStateChange=new e.vpe,this.nodeDrop=new e.vpe,this.nodeDragEnd=new e.vpe,this.addItem=new e.vpe,this.removeItem=new e.vpe,this.checkedChange=new e.vpe,this.selectionChange=new e.vpe,this.filterChange=new e.vpe,this.nodeClick=new e.vpe,this.nodeDblClick=new e.vpe,this.trackBy=$r,this.isDisabled=Ps,this.isVisible=Or,this.navigable=!0,this.children=()=>(0,X.of)([]),this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new hn.X([]),this._animate=!0,this.subscriptions=new He.w0,this.domSubscriptions=[],(0,rt.s)(Hi)}get direction(){return this.localization.rtl?"rtl":"ltr"}set animate(d){this._animate=d}get animate(){return!this._animate}set nodeTemplateRef(d){this._nodeTemplateRef=d}get nodeTemplateRef(){return this._nodeTemplateRef||this.nodeTemplateQuery}set loadMoreButtonTemplateRef(d){this._loadMoreButtonTemplateRef=d}get loadMoreButtonTemplateRef(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery}set nodes(d){this.data.next(d||[]),this.dataChangeNotification.notify()}get nodes(){return this.data.value}get hasChildren(){return this._hasChildren||ur}set hasChildren(d){this._hasChildren=d,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}get isChecked(){return this._isChecked||pr}set isChecked(d){this._isChecked=d,this.checkboxes=Boolean(this._isChecked)}get isExpanded(){return this._isExpanded||Sr}set isExpanded(d){this._isExpanded=d,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}get isSelected(){return this._isSelected||Ns}set isSelected(d){this._isSelected=d,this.selectable=Boolean(this._isSelected)}ngOnChanges(d){this.navigationService.navigable=Boolean(this.navigable),(0,z.aG)(["nodes","children","hasChildren","loadOnDemand"],d,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(d=>d())}ngOnInit(){this.subscriptions.add(this.nodeChildrenService.changes.subscribe(d=>this.childrenLoaded.emit(d))),this.subscriptions.add(this.expandService.changes.subscribe(({index:d,dataItem:M,expand:Y})=>Y?this.expand.emit({index:d,dataItem:M}):this.collapse.emit({index:d,dataItem:M}))),this.subscriptions.add(this.navigationService.checks.subscribe(d=>this.checkedChange.emit(this.treeViewLookupService.itemLookup(d)))),this.subscriptions.add(this.selectionService.changes.subscribe(d=>{(0,z.g$)(this.selectionChange)&&this.ngZone.run(()=>{this.selectionChange.emit(d)})})),this.element&&this.ngZone.runOutsideAngular(()=>{this.attachDomHandlers()})}blur(){if(!(0,z.X_)())return;const d=No(this.element);document.activeElement===d&&d.blur()}focus(d){const M=d||Xs(this.navigationService.focusableItem);this.navigationService.activateIndex(M);const Y=No(this.element);Y&&Y.focus()}itemLookup(d){return this.treeViewLookupService.itemLookup(d)}rebindChildren(){this.dataChangeNotification.notify()}expandNode(d,M){this.expandService.expand(M,d)}collapseNode(d,M){this.expandService.collapse(M,d)}getNodePageSize(d){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(d)}setNodePageSize(d,M){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(d,M)}preloadChildNodes(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}attachDomHandlers(){const d=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(d,"contextmenu",this.clickHandler),this.renderer.listen(d,"click",this.clickHandler),this.renderer.listen(d,"dblclick",this.clickHandler),this.renderer.listen(d,"focusin",this.focusHandler.bind(this)),this.renderer.listen(d,"focusout",this.blurHandler.bind(this)),this.renderer.listen(d,"keydown",this.keydownHandler.bind(this)))}focusHandler(d){let M;wn(d.target,".k-treeview-item")?M=d.target:ds(d.target)||(M=Ss(d.target)),M&&(this.navigationService.activateIndex(Rr(d.target)),!this.isActive&&(0,z.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()}),this.isActive=!0)}blurHandler(d){this.isActive&&wn(d.target,".k-treeview-item")&&(!d.relatedTarget||!wn(d.relatedTarget,".k-treeview-item")||!eo(d.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,(0,z.g$)(this.onBlur)&&this.ngZone.run(()=>{this.onBlur.emit()}))}clickHandler(d){const M=d.target;if("contextmenu"===d.type&&!(0,z.g$)(this.nodeClick)||"click"===d.type&&!(0,z.g$)(this.nodeClick)&&!(0,z.g$)(this.selectionChange)&&!Tr(M)||"dblclick"===d.type&&!(0,z.g$)(this.nodeDblClick)||ds(M)||!(_=>{if(!(0,z.X_)())return null;let d=_;for(;d&&!wn(d,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)d=d.parentNode;return d?wn(d,".k-in:not(.k-treeview-load-more-button)"):void 0})(M)&&!Tr(M)||!eo(M,this.element.nativeElement))return;const Y=Rr(Ss(M));!Y||this.navigationService.isDisabled(Y)||this.ngZone.run(()=>{const Fe=this.treeViewLookupService.itemLookup(Y);if("click"===d.type){if(this.navigationService.model.findNode(Y).loadMoreButton)return void this.navigationService.notifyLoadMore(Y);this.navigationService.selectIndex(Y)}("dblclick"===d.type?this.nodeDblClick:this.nodeClick).emit({item:Fe.item,originalEvent:d,type:d.type})})}keydownHandler(d){this.isActive&&this.navigable&&this.ngZone.run(()=>{this.navigationService.move(d)})}verifyLoadMoreService(){if((0,e.X6Q)()&&!vn(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")}registerLookupItems(d,M=null){if(!vn(d)||0===d.length)return;const Y=Xs(M),Fe=d.map((Qt,gn)=>((_,v,d)=>vn(_)?{dataItem:_,index:cn(d,v)}:null)(Qt,gn,Y));vn(M)&&this.treeViewLookupService.registerChildren(Y,Fe),Fe.forEach(Qt=>{this.treeViewLookupService.registerItem(Qt,M),this.hasChildren(Qt.dataItem)&&this.children(Qt.dataItem).subscribe(gn=>this.registerLookupItems(gn,Qt))})}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ri),e.Y36(ii),e.Y36(ki),e.Y36(Es),e.Y36(hr),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(Ms),e.Y36(ct.oQ))},_.\u0275cmp=e.Xpm({type:_,selectors:[["kendo-treeview"]],contentQueries:function(d,M,Y){if(1&d&&(e.Suo(Y,Ci,5),e.Suo(Y,Yi,5)),2&d){let Fe;e.iGM(Fe=e.CRH())&&(M.nodeTemplateQuery=Fe.first),e.iGM(Fe=e.CRH())&&(M.loadMoreButtonTemplateQuery=Fe.first)}},viewQuery:function(d,M){if(1&d&&e.Gf(ie,7,e.s_b),2&d){let Y;e.iGM(Y=e.CRH())&&(M.assetsContainer=Y.first)}},hostVars:7,hostBindings:function(d,M){2&d&&(e.uIk("role",M.role)("dir",M.direction),e.d8E("@.disabled",M.animate),e.ekj("k-widget",M.classNames)("k-treeview",M.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",trackBy:"trackBy",isDisabled:"isDisabled",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],nodes:"nodes",hasChildren:"hasChildren",isChecked:"isChecked",isExpanded:"isExpanded",isSelected:"isSelected",textField:"textField"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[e._Bn(qr),e.TTD],decls:4,vars:19,consts:[[3,"value","clearButton","placeholder","valueChange",4,"ngIf"],["kendoTreeViewGroup","","role","group",1,"k-treeview-lines",3,"loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy"],["assetsContainer",""],[3,"value","clearButton","placeholder","valueChange"],["filterInput",""],["kendoTextBoxPrefixTemplate",""],[1,"k-icon","k-i-search"]],template:function(d,M){1&d&&(e.YNc(0,bt,3,3,"kendo-textbox",0),e._UZ(1,"ul",1),e.GkF(2,null,2)),2&d&&(e.Q6J("ngIf",M.filterable),e.xp6(1),e.Q6J("loadOnDemand",M.loadOnDemand)("checkboxes",M.checkboxes)("expandIcons",M.expandIcons)("selectable",M.selectable)("touchActions",M.touchActions)("children",M.children)("hasChildren",M.hasChildren)("isChecked",M.isChecked)("isDisabled",M.isDisabled)("isExpanded",M.isExpanded)("isSelected",M.isSelected)("isVisible",M.isVisible)("nodeTemplateRef",null==M.nodeTemplateRef?null:M.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",null==M.loadMoreButtonTemplateRef?null:M.loadMoreButtonTemplateRef.templateRef)("textField",M.textField)("nodes",M.fetchNodes)("loadMoreService",M.loadMoreService)("trackBy",M.trackBy))},directives:function(){return[Ze.O5,Ds,Q.PL,Q.Em]},encapsulation:2}),G([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-treeview"),We("design:type",Boolean)],_.prototype,"classNames",void 0),G([(0,e.pfw)("attr.role"),We("design:type",String)],_.prototype,"role",void 0),G([(0,e.pfw)("attr.dir"),We("design:type",String),We("design:paramtypes",[])],_.prototype,"direction",null),G([(0,e.i9L)("assetsContainer",{read:e.s_b,static:!0}),We("design:type",e.s_b)],_.prototype,"assetsContainer",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"filterInputPlaceholder",void 0),G([(0,e.IIB)(),(0,e.pfw)("@.disabled"),We("design:type",Boolean),We("design:paramtypes",[Boolean])],_.prototype,"animate",null),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"childrenLoaded",void 0),G([(0,e.r_U)("blur"),We("design:type",e.vpe)],_.prototype,"onBlur",void 0),G([(0,e.r_U)("focus"),We("design:type",e.vpe)],_.prototype,"onFocus",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"expand",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"collapse",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"nodeDragStart",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"nodeDrag",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"filterStateChange",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"nodeDrop",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"nodeDragEnd",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"addItem",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"removeItem",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"checkedChange",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"selectionChange",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"filterChange",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"nodeClick",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"nodeDblClick",void 0),G([(0,e.aQ5)(Ci,{static:!1}),We("design:type",Ci)],_.prototype,"nodeTemplateQuery",void 0),G([(0,e.IIB)("nodeTemplate"),We("design:type",Ci),We("design:paramtypes",[Ci])],_.prototype,"nodeTemplateRef",null),G([(0,e.aQ5)(Yi,{static:!1}),We("design:type",Yi)],_.prototype,"loadMoreButtonTemplateQuery",void 0),G([(0,e.IIB)("loadMoreButtonTemplate"),We("design:type",Yi),We("design:paramtypes",[Yi])],_.prototype,"loadMoreButtonTemplateRef",null),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"trackBy",void 0),G([(0,e.IIB)(),We("design:type",Array),We("design:paramtypes",[Array])],_.prototype,"nodes",null),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"textField",void 0),G([(0,e.IIB)(),We("design:type",Function),We("design:paramtypes",[Function])],_.prototype,"hasChildren",null),G([(0,e.IIB)(),We("design:type",Function),We("design:paramtypes",[Function])],_.prototype,"isChecked",null),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"isDisabled",void 0),G([(0,e.IIB)(),We("design:type",Function),We("design:paramtypes",[Function])],_.prototype,"isExpanded",null),G([(0,e.IIB)(),We("design:type",Function),We("design:paramtypes",[Function])],_.prototype,"isSelected",null),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"isVisible",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"navigable",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"children",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"loadOnDemand",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"filterable",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"filter",void 0),_=G([We("design:paramtypes",[e.SBq,e.sBO,Ri,ii,ki,Es,hr,e.R0b,e.Qsj,Ms,ct.oQ])],_),_})(),Ds=(()=>{let _=class{constructor(d,M,Y,Fe,Qt,gn,qn,Un){this.expandService=d,this.loadingService=M,this.indexBuilder=Y,this.treeViewLookupService=Fe,this.navigationService=Qt,this.nodeChildrenService=gn,this.dataChangeNotification=qn,this.changeDetectorRef=Un,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new He.w0,this.isChecked=()=>"none",this.isDisabled=()=>!1,this.isExpanded=()=>!1,this.isVisible=()=>!0,this.isSelected=()=>!1,this.children=()=>(0,X.of)([]),this.hasChildren=()=>!1}get moreNodesAvailable(){return!(!vn(this.loadMoreService)||0===this.data.length)&&this.pageSize0?this.pageSize:0):this._data}set data(d){this._data=d,this.registerLoadedNodes(this.data)}get loadMoreButtonIndex(){return this.loadMoreService?this.nodeIndex(this.data.length):null}get totalNodesCount(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}get hasTemplate(){return vn(this.nodeTemplateRef)}expandNode(d,M,Y){Y?this.expandService.expand(d,M):this.expandService.collapse(d,M)}checkNode(d){this.navigationService.checkIndex(d),this.navigationService.activateIndex(d)}nodeIndex(d){return this.indexBuilder.nodeIndex(d.toString(),this.parentIndex)}nodeText(d){const M=Qi(this.textField)?this.textField[0]:this.textField;return(0,it.Yn)(M)(d)}ngOnDestroy(){vn(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),vn(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}ngOnInit(){this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe((0,Hn.h)(d=>d===this.loadMoreButtonIndex)).subscribe(this.loadMoreNodes.bind(this)))}ngOnChanges(d){d.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}fetchChildren(d,M){return this.children(d).pipe((0,pn.K)(()=>(this.loadingService.notifyLoaded(M),xn.E)),(0,Yn.b)(()=>this.loadingService.notifyLoaded(M)))}get nextFields(){return Qi(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}loadMoreNodes(){vn(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}loadMoreLocalNodes(){const d=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(d)}fetchMoreNodes(){this.loadingMoreNodes||(this.loadingMoreNodes=!0,vn(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe((0,_t.x)(()=>this.loadingMoreNodes=!1)).subscribe(d=>{if(!(Array.isArray(d)&&d.length>0))return;const M=this.loadMoreButtonIndex;this.pageSize+=d.length,this.data=this.data.concat(d),this.navigationService.isActive(M)&&(this.changeDetectorRef.detectChanges(),this.reselectItemAt(M))}))}setNodeChildren(d){this.treeViewLookupService.registerChildren(this.parentIndex,d)}mapToTreeItem(d){return this.parentIndex?d.map((M,Y)=>({dataItem:M,index:this.nodeIndex(Y)})):[]}emitChildrenLoaded(d){if(!this.parentIndex)return;const M=d.filter(Y=>Y.dataItem);this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},M)}subscribeToNodesChange(){this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(d=>{this.data=d,this.initialNodesLoaded=!0})}reselectItemAt(d){!vn(d)||(this.navigationService.deactivate(),this.navigationService.activateIndex(d))}registerLoadedNodes(d=[]){const M=this.mapToTreeItem(d);this.loadOnDemand&&this.setNodeChildren(M),this.emitChildrenLoaded(M)}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(Ri),e.Y36(tn),e.Y36(Pr),e.Y36(hr),e.Y36(ii),e.Y36(ki),e.Y36(Ms),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(d,M){2&d&&(e.uIk("role",M.role),e.ekj("k-group",M.kGroupClass))},inputs:{loadOnDemand:"loadOnDemand",textField:"textField",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren",checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",trackBy:"trackBy",nodes:"nodes",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService"},features:[e.TTD],attrs:an,decls:2,vars:3,consts:[["class","k-item k-treeview-item","kendoTreeViewItem","",3,"k-display-none","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-item k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-item","k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[1,"k-mid"],["class","k-icon",3,"k-i-collapse","k-i-expand","kendoTreeViewLoading","click",4,"ngIf"],["tabindex","-1",3,"node","index","isChecked","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-in",3,"dataItem","index","initialSelection","isSelected"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy",4,"ngIf"],[1,"k-icon",3,"kendoTreeViewLoading","click"],["tabindex","-1",3,"node","index","isChecked","checkStateChange"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy"],["kendoTreeViewItem","","role","button",1,"k-item","k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],["class","k-icon k-i-loading k-i-expand",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-in","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading","k-i-expand"]],template:function(d,M){1&d&&(e.YNc(0,qt,9,29,"li",0),e.YNc(1,ps,6,14,"li",1)),2&d&&(e.Q6J("ngForOf",M.data)("ngForTrackBy",M.trackBy),e.xp6(1),e.Q6J("ngIf",M.initialNodesLoaded&&M.moreNodesAvailable))},directives:function(){return[Ze.sg,Ze.O5,ms,hs,Ze.RF,Ze.n9,Ze.ED,Ut,Wn,Ze.tP,_]},encapsulation:2,data:{animation:[(0,Mn.X$)("toggle",[(0,Mn.eR)("void => *",[(0,Mn.oB)({height:0}),(0,Mn.jt)("0.1s ease-in",(0,Mn.oB)({height:"*"}))]),(0,Mn.eR)("* => void",[(0,Mn.oB)({height:"*"}),(0,Mn.jt)("0.1s ease-in",(0,Mn.oB)({height:0}))])])]}}),G([(0,e.pfw)("class.k-group"),We("design:type",Boolean)],_.prototype,"kGroupClass",void 0),G([(0,e.pfw)("attr.role"),We("design:type",String)],_.prototype,"role",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"checkboxes",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"expandIcons",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"disabled",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"selectable",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"touchActions",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"loadOnDemand",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"trackBy",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"nodes",void 0),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"textField",void 0),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"parentDataItem",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"parentIndex",void 0),G([(0,e.IIB)(),We("design:type",e.Rgc)],_.prototype,"nodeTemplateRef",void 0),G([(0,e.IIB)(),We("design:type",e.Rgc)],_.prototype,"loadMoreButtonTemplateRef",void 0),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"loadMoreService",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"isChecked",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"isDisabled",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"isExpanded",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"isVisible",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"isSelected",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"children",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"hasChildren",void 0),_=G([We("design:paramtypes",[Ri,tn,Pr,hr,ii,ki,Ms,e.sBO])],_),_})(),et=(()=>{let _=class{constructor(d){this.treeView=d,this.selectedKeysChange=new e.vpe,this.subscriptions=new He.w0,this.selectActions={multiple:M=>this.selectMultiple(M),single:M=>this.selectSingle(M)},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=(M,Y)=>this.selectedKeys.indexOf(this.itemKey({dataItem:M,index:Y}))>-1}set isSelected(d){this.treeView.isSelected=d}get selectedKeys(){return this._selectedKeys}set selectedKeys(d){this._selectedKeys=d}get getAriaMultiselectable(){return"multiple"===this.options.mode}get options(){const d={enabled:!0,mode:"single"};if(!vn(this.selection)||"string"==typeof this.selection)return d;const M=(_=>"boolean"==typeof _)(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(d,M)}ngOnDestroy(){this.subscriptions.unsubscribe()}itemKey(d){return this.selectKey?"string"==typeof this.selectKey?d.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(d):void 0:d.index}select(d){const{enabled:M,mode:Y}=this.options;!M||(this.selectActions[Y]||_i)(d)}selectSingle(d){const M=this.itemKey(d);this.selectedKeys[0]!==M&&(this.selectedKeys=[M],this.notify())}selectMultiple(d){const M=this.itemKey(d),Y=this.selectedKeys.indexOf(M),Fe=Y>-1;!vn(M)||(Fe?this.selectedKeys.splice(Y,1):this.selectedKeys.push(M),this.notify())}notify(){this.selectedKeysChange.emit(this.selectedKeys.slice())}};return _.\u0275fac=function(d){return new(d||_)(e.Y36($s))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoTreeViewSelectable",""]],hostVars:1,hostBindings:function(d,M){2&d&&e.uIk("aria-multiselectable",M.getAriaMultiselectable)},inputs:{isSelected:"isSelected",selectedKeys:"selectedKeys",selectKey:["selectBy","selectKey"],selection:["kendoTreeViewSelectable","selection"]},outputs:{selectedKeysChange:"selectedKeysChange"}}),G([(0,e.IIB)(),We("design:type",Function),We("design:paramtypes",[Function])],_.prototype,"isSelected",null),G([(0,e.IIB)("selectBy"),We("design:type",Object)],_.prototype,"selectKey",void 0),G([(0,e.IIB)("kendoTreeViewSelectable"),We("design:type",Object)],_.prototype,"selection",void 0),G([(0,e.IIB)(),We("design:type",Array),We("design:paramtypes",[Array])],_.prototype,"selectedKeys",null),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"selectedKeysChange",void 0),G([(0,e.pfw)("attr.aria-multiselectable"),We("design:type",Boolean),We("design:paramtypes",[])],_.prototype,"getAriaMultiselectable",null),_=G([We("design:paramtypes",[$s])],_),_})();new RegExp("(auto|scroll)"),new Pr;let Ut=(()=>{let _=class{constructor(d,M,Y){this.expandService=d,this.loadingService=M,this.cd=Y,this._loading=!1}get loading(){return this._loading}set loading(d){this._loading=d,this.cd.markForCheck()}ngOnInit(){const d=this.loadingService.changes.pipe((0,Hn.h)(M=>M===this.index));this.subscription=this.expandService.changes.pipe((0,Hn.h)(({index:M})=>M===this.index),(0,Yn.b)(({expand:M})=>{!M&&this.loading&&(this.loading=!1)}),(0,Hn.h)(({expand:M})=>M),(0,Tt.w)(M=>(0,X.of)(M).pipe((0,Ft.g)(100),(0,F.R)(d)))).subscribe(()=>this.loading=!0),this.subscription.add(d.subscribe(()=>this.loading=!1))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(Ri),e.Y36(tn),e.Y36(e.sBO))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(d,M){2&d&&e.ekj("k-i-loading",M.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),G([(0,e.pfw)("class.k-i-loading"),We("design:type",Boolean),We("design:paramtypes",[Boolean])],_.prototype,"loading",null),G([(0,e.IIB)("kendoTreeViewLoading"),We("design:type",String)],_.prototype,"index",void 0),_=G([We("design:paramtypes",[Ri,tn,e.sBO])],_),_})();new Pr;const Ji=(_,v)=>({dataItem:v,index:_});let ls=0,ms=(()=>{let _=class{constructor(d,M,Y,Fe,Qt,gn,qn){this.element=d,this.expandService=M,this.navigationService=Y,this.selectionService=Fe,this.lookupService=Qt,this.renderer=gn,this.ib=qn,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=ls++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}set isChecked(d){this.ariaChecked="checked"===d?"true":"indeterminate"===d?"mixed":"false"}get isExpanded(){return this._isExpanded||!1}set isExpanded(d){this._isExpanded=d}get isSelected(){return this._isSelected||!1}set isSelected(d){this._isSelected=d}get isButton(){return"button"===this.role}get treeItem(){return Ji(this.index,this.dataItem)}get parentTreeItem(){return this.parentDataItem?Ji(this.parentIndex,this.parentDataItem):null}ngOnInit(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()}ngOnChanges(d){const{index:M,isDisabled:Y}=d;(0,z.aG)(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],d)&&this.setAriaAttributes(),Y&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(d),this.moveNavigationItem(M),(0,z.aG)(["isDisabled","isVisible"],d)&&this.updateNodeAvailability()}ngOnDestroy(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((d,M)=>(M.unsubscribe(),d),[])}subscribe(){this.subscriptions=[this.navigationService.moves.subscribe(()=>{this.updateTabIndex(),this.focusItem()}),this.navigationService.expands.pipe((0,Hn.h)(({index:d})=>d===this.index&&!this.isDisabled)).subscribe(({expand:d})=>this.expand(d))]}registerNavigationItem(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}activateItem(){if(this.isDisabled)return;const d=this.navigationService,M=this.selectionService,Y=this.index;M.setFirstSelected(Y,this.isSelected),!d.isActive(Y)&&M.isFirstSelected(Y)&&d.activateIndex(Y)}expand(d){this.expandService[d?"expand":"collapse"](this.index,this.dataItem)}isFocusable(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}focusItem(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()}moveLookupItem(d={}){const{dataItem:M,index:Y,parentDataItem:Fe,parentIndex:Qt}=d;Y&&Y.firstChange||!(M||Y||Fe||Qt)||this.lookupService.replaceItem((Y||{}).previousValue||this.index,this.treeItem,this.parentTreeItem)}moveNavigationItem(d={}){const{currentValue:M,firstChange:Y,previousValue:Fe}=d;!Y&&vn(M)&&vn(Fe)&&(this.navigationService.unregisterItem(this.id,Fe),this.navigationService.registerItem(this.id,M,this.isDisabled,this.isButton))}updateNodeAvailability(){const d=this.navigationService;this.isDisabled||!this.isVisible?d.activateClosest(this.index):d.activateFocusable(),d.unregisterItem(this.id,this.index),d.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)}setAriaAttributes(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}setDisabledClass(){this.setClass("k-state-disabled",this.isDisabled)}setClass(d,M){this.renderer[M?"addClass":"removeClass"](this.element.nativeElement,d)}updateTabIndex(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}setAttribute(d,M){vn(M)?this.renderer.setAttribute(this.element.nativeElement,d,M):this.renderer.removeAttribute(this.element.nativeElement,d)}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.SBq),e.Y36(Ri),e.Y36(ii),e.Y36(Es),e.Y36(hr),e.Y36(e.Qsj),e.Y36(Pr))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoTreeViewItem",""]],inputs:{role:"role",loadOnDemand:"loadOnDemand",isDisabled:"isDisabled",isVisible:"isVisible",isChecked:"isChecked",isExpanded:"isExpanded",isSelected:"isSelected",dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",checkable:"checkable",selectable:"selectable",expandable:"expandable"},features:[e.TTD]}),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"dataItem",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"index",void 0),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"parentDataItem",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"parentIndex",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"role",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"loadOnDemand",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"checkable",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"selectable",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"expandable",void 0),G([(0,e.IIB)(),We("design:type",String),We("design:paramtypes",[String])],_.prototype,"isChecked",null),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"isDisabled",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"isVisible",void 0),G([(0,e.IIB)(),We("design:type",Boolean),We("design:paramtypes",[Boolean])],_.prototype,"isExpanded",null),G([(0,e.IIB)(),We("design:type",Boolean),We("design:paramtypes",[Boolean])],_.prototype,"isSelected",null),_=G([We("design:paramtypes",[e.SBq,Ri,ii,Es,hr,e.Qsj,Pr])],_),_})(),hs=(()=>{let _=class{constructor(d,M,Y,Fe){this.element=d,this.navigationService=M,this.selectionService=Y,this.renderer=Fe,this.initialSelection=!1,this.isSelected=Ns,this.subscriptions=new He.w0,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe((0,Hn.h)(Qt=>Qt===this.index)).subscribe(Qt=>this.selectionService.select(Qt,this.dataItem))),this.subscriptions.add(this.selectionService.changes.subscribe(()=>{this.updateSelectionClass(this.isSelected(this.dataItem,this.index))}))}ngOnChanges(d){d.initialSelection&&this.updateSelectionClass(this.initialSelection),d.index&&this.updateFocusClass()}ngOnDestroy(){this.subscriptions.unsubscribe()}updateFocusClass(){this.render(this.navigationService.isActive(this.index),"k-state-focused")}updateSelectionClass(d){this.render(d,"k-state-selected")}render(d,M){this.renderer[d?"addClass":"removeClass"](this.element.nativeElement,M)}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.SBq),e.Y36(ii),e.Y36(Es),e.Y36(e.Qsj))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoTreeViewItemContent",""]],inputs:{initialSelection:"initialSelection",isSelected:"isSelected",dataItem:"dataItem",index:"index"},features:[e.TTD]}),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"dataItem",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"index",void 0),G([(0,e.IIB)(),We("design:type",Boolean)],_.prototype,"initialSelection",void 0),G([(0,e.IIB)(),We("design:type",Function)],_.prototype,"isSelected",void 0),_=G([We("design:paramtypes",[e.SBq,ii,Es,e.Qsj])],_),_})(),Wn=(()=>{let _=class{constructor(d,M,Y){this.element=d,this.renderer=M,this.changeDetector=Y,this.id=`_${(0,z.M8)()}`,this.tabindex=0,this.checkStateChange=new e.vpe,this.checkState="none"}get classWrapper(){return!0}get indeterminate(){return"indeterminate"===this.checkState}get checked(){return"checked"===this.checkState}ngOnInit(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}ngDoCheck(){this.checkState=this.isChecked(this.node,this.index)}handleChange(d){const M=d.target.checked?"checked":"none";this.checkState=M,this.changeDetector.detectChanges(),this.checkStateChange.emit(M)}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(d,M){2&d&&e.ekj("k-checkbox-wrapper",M.classWrapper)},inputs:{id:"id",tabindex:"tabindex",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:6,consts:[["type","checkbox",1,"k-checkbox",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(d,M){1&d&&(e.TgZ(0,"input",0),e.NdJ("change",function(Fe){return M.handleChange(Fe)}),e.qZA(),e.TgZ(1,"label",1),e._uU(2),e.qZA()),2&d&&(e.Q6J("id",M.id)("checked",M.checked)("indeterminate",M.indeterminate)("tabindex",M.tabindex),e.xp6(1),e.Q6J("for",M.id),e.xp6(1),e.Oqu(M.labelText))},encapsulation:2}),G([(0,e.pfw)("class.k-checkbox-wrapper"),We("design:type",Boolean),We("design:paramtypes",[])],_.prototype,"classWrapper",null),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"id",void 0),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"isChecked",void 0),G([(0,e.IIB)(),We("design:type",Object)],_.prototype,"node",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"index",void 0),G([(0,e.IIB)(),We("design:type",String)],_.prototype,"labelText",void 0),G([(0,e.IIB)(),We("design:type",Number)],_.prototype,"tabindex",void 0),G([(0,e.r_U)(),We("design:type",e.vpe)],_.prototype,"checkStateChange",void 0),_=G([We("design:paramtypes",[e.SBq,e.Qsj,e.sBO])],_),_})(),_s=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({}),_})(),cs=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[Ze.ez,_s,Q.rw]]}),_})(),_r=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[cs]]}),_})();function ro(_,v){return(d,M)=>!_.call(v,d,M)}var yo=S(4482),ic=S(5403);function yl(_){return(0,yo.e)((v,d)=>{let M=!1,Y=0;v.subscribe(new ic.Q(d,Fe=>(M||(M=!_(Fe,Y++)))&&d.next(Fe)))})}var rr=S(3601),ka=S(3239),na=S(4351);const Va=["input"],Aa=function(_,v){return{focus:_,blur:v}},bl=["content"],kl=["list"],Mc=["virtualContainer"];function Al(_,v){}const Oa=function(_,v){return{templateRef:_,$implicit:v}};function Xa(_,v){if(1&_&&e.YNc(0,Al,0,0,"ng-template",10),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.WLB(1,Oa,d.fixedGroupTemplate.templateRef,d.currentGroup))}}function sc(_,v){if(1&_&&(e.TgZ(0,"strong"),e._uU(1),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Oqu(d.currentGroup)}}const el=function(_){return{"k-virtual-item":_}},To=function(_,v,d){return{"height.px":_,"minHeight.px":v,boxSizing:d}};function ja(_,v){if(1&_&&(e.TgZ(0,"div",8),e.YNc(1,Xa,1,4,void 0,5),e.YNc(2,sc,2,1,"ng-template",9),e.qZA()),2&_){const d=e.oxw();e.Q6J("ngClass",e.VKq(4,el,d.virtual))("ngStyle",e.kEZ(6,To,null==d.virtual?null:d.virtual.itemHeight,null==d.virtual?null:d.virtual.itemHeight,d.virtual?"border-box":"inherit")),e.xp6(1),e.Q6J("ngIf",d.fixedGroupTemplate),e.xp6(1),e.Q6J("ngIf",!d.fixedGroupTemplate)}}function Ol(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"label",14),e.TgZ(1,"input",15),e.NdJ("change",function(Y){e.CHM(d);const Fe=e.oxw().index;return e.oxw(2).onCheckedChange(Y,Fe)}),e.qZA(),e.qZA()}if(2&_){const d=e.oxw().index,M=e.oxw(2);e.xp6(1),e.Q6J("checked",M.isChecked(d))}}function Cl(_,v){}function qd(_,v){if(1&_&&e.YNc(0,Cl,0,0,"ng-template",10),2&_){const d=e.oxw().$implicit,M=e.oxw(2);e.Q6J("templateContext",e.WLB(1,Oa,M.template.templateRef,d))}}function la(_,v){if(1&_&&e._uU(0),2&_){const d=e.oxw().$implicit,M=e.oxw(2);e.Oqu(M.getText(d))}}const Vl=function(_,v){return{"k-virtual-item":_,"k-state-disabled":v}};function Ga(_,v){if(1&_&&(e.TgZ(0,"li",12),e.YNc(1,Ol,2,1,"label",13),e.YNc(2,qd,1,4,void 0,5),e.YNc(3,la,1,1,"ng-template",9),e.qZA()),2&_){const d=v.$implicit,M=v.index,Y=e.oxw(2);e.Q6J("checkboxes",Y.checkboxes)("height",null==Y.virtual?null:Y.virtual.itemHeight)("index",M+Y.startFrom)("multipleSelection",Y.multipleSelection)("ngClass",e.WLB(10,Vl,Y.virtual,Y.isDisabled(M))),e.uIk("id",Y.optionPrefix+"-"+Y.getValue(d))("tabIndex",-1),e.xp6(1),e.Q6J("ngIf",Y.checkboxes.enabled),e.xp6(1),e.Q6J("ngIf",Y.template),e.xp6(1),e.Q6J("ngIf",!Y.template)}}function Oe(_,v){if(1&_&&e.YNc(0,Ga,4,13,"ng-template",11),2&_){const d=e.oxw();e.Q6J("ngForOf",d.data)}}function ve(_,v){}function se(_,v){if(1&_&&e.YNc(0,ve,0,0,"ng-template",10),2&_){const d=e.oxw(2).$implicit,M=e.oxw(2);e.Q6J("templateContext",e.WLB(1,Oa,M.groupTemplate.templateRef,d.value))}}function Qe(_,v){if(1&_&&(e.TgZ(0,"strong"),e._uU(1),e.qZA()),2&_){const d=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",d.value,"")}}function pt(_,v){if(1&_&&(e.TgZ(0,"li",18),e.YNc(1,se,1,4,void 0,5),e.YNc(2,Qe,2,1,"ng-template",9),e.qZA()),2&_){const d=e.oxw().$implicit,M=e.oxw(2);e.Q6J("ngClass",e.VKq(7,el,M.virtual))("ngStyle",e.kEZ(9,To,null==M.virtual?null:M.virtual.itemHeight,null==M.virtual?null:M.virtual.itemHeight,M.virtual?"border-box":"inherit")),e.uIk("group-index",d.index)("id",M.optionPrefix+"-"+M.getValue(d.value))("tabIndex",-1),e.xp6(1),e.Q6J("ngIf",M.groupTemplate),e.xp6(1),e.Q6J("ngIf",!M.groupTemplate)}}function Vt(_,v){}function rn(_,v){if(1&_&&e.YNc(0,Vt,0,0,"ng-template",10),2&_){const d=e.oxw(2).$implicit,M=e.oxw(2);e.Q6J("templateContext",e.WLB(1,Oa,M.template.templateRef,d.value))}}function _n(_,v){if(1&_&&e._uU(0),2&_){const d=e.oxw(2).$implicit,M=e.oxw(2);e.Oqu(M.getText(d.value))}}function Kn(_,v){if(1&_&&(e.TgZ(0,"li",19),e.YNc(1,rn,1,4,void 0,5),e.YNc(2,_n,1,1,"ng-template",9),e.qZA()),2&_){const d=e.oxw().$implicit,M=e.oxw(2);e.Q6J("height",null==M.virtual?null:M.virtual.itemHeight)("index",d.offsetIndex)("multipleSelection",M.multipleSelection)("ngClass",e.WLB(9,Vl,M.virtual,M.isDisabled(d.offsetIndex))),e.uIk("absolute-index",d.index)("id",M.optionPrefix+"-"+M.getValue(d.value))("tabIndex",-1),e.xp6(1),e.Q6J("ngIf",M.template),e.xp6(1),e.Q6J("ngIf",!M.template)}}function Wi(_,v){if(1&_&&(e.YNc(0,pt,3,13,"li",16),e.YNc(1,Kn,3,12,"li",17)),2&_){const d=v.$implicit;e.Q6J("ngIf",d.header&&d.index>0),e.xp6(1),e.Q6J("ngIf",!d.header)}}function fr(_,v){if(1&_&&e.YNc(0,Wi,2,2,"ng-template",11),2&_){const d=e.oxw();e.Q6J("ngForOf",d.data)}}function Ai(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-resize-sensor",20),e.NdJ("resize",function(){return e.CHM(d),e.oxw().listResize.emit()}),e.qZA()}}function Ir(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"div",21,22),e.TgZ(2,"div"),e.TgZ(3,"kendo-resize-sensor",20),e.NdJ("resize",function(){return e.CHM(d),e.oxw().listResize.emit()}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const d=e.oxw();e.xp6(2),e.Udp("height",d.scrollHeight,"px")}}const Br=function(_,v){return{"k-virtual-content":_,"k-list-scroller":v}},Eo=function(_){return{"k-virtual-list":_}},ia=["container"],Ro=["popupTemplate"],Fa=["optionsList"];function jl(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",8),e.NdJ("click",function(Y){return e.CHM(d),e.oxw().clearValue(Y)})("mousedown",function(Y){return Y.preventDefault()}),e.qZA()}if(2&_){const d=e.oxw();e.Udp("visibility",d.clearButtonVisiblity),e.uIk("title",d.clearTitle)}}function dl(_,v){1&_&&e._UZ(0,"span",9)}function Gl(_,v){}const bo=function(_){return{templateRef:_}};function Ul(_,v){if(1&_&&e.YNc(0,Gl,0,0,"ng-template",14),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,d.headerTemplate.templateRef))}}function ah(_,v){}function Xd(_,v){if(1&_&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&_){const d=e.oxw(3);e.xp6(1),e.Oqu(d.noDataText)}}function Po(_,v){if(1&_&&(e.TgZ(0,"div",15),e.YNc(1,ah,0,0,"ng-template",16),e.YNc(2,Xd,2,1,"ng-template",6),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.noDataTemplate)("templateContext",e.VKq(3,bo,null==d.noDataTemplate?null:d.noDataTemplate.templateRef)),e.xp6(1),e.Q6J("ngIf",!d.noDataTemplate)}}function rc(_,v){}function oc(_,v){if(1&_&&e.YNc(0,rc,0,0,"ng-template",14),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,d.footerTemplate.templateRef))}}function Ua(_,v){if(1&_){const d=e.EpF();e.YNc(0,Ul,1,3,void 0,10),e.TgZ(1,"kendo-list",11,12),e.NdJ("pageChange",function(Y){return e.CHM(d),e.oxw().pageChange(Y)}),e.qZA(),e.YNc(3,Po,3,5,"div",13),e.YNc(4,oc,1,3,void 0,10)}if(2&_){const d=e.oxw();e.Q6J("ngIf",d.headerTemplate),e.xp6(1),e.Q6J("id",d.listBoxId)("optionPrefix",d.optionPrefix)("data",d.data)("textField",d.valueField)("valueField",d.valueField)("template",d.template)("groupTemplate",d.groupTemplate)("fixedGroupTemplate",d.fixedGroupTemplate)("height",d.listHeight)("show",d.isOpen)("virtual",d.virtual),e.xp6(2),e.Q6J("ngIf",0===d.data.length),e.xp6(1),e.Q6J("ngIf",d.footerTemplate)}}function Ou(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-resize-sensor",17),e.NdJ("resize",function(){return e.CHM(d),e.oxw().onResize()}),e.qZA()}}const ho=["wrapper"],qc=["select"],ca=function(_){return{mousedown:_}};function Fl(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(Y){return e.CHM(d),e.oxw().clearValue(Y)}),e.qZA()}if(2&_){const d=e.oxw();e.Udp("visibility",d.clearButtonVisiblity),e.Q6J("kendoEventsOutsideAngular",e.VKq(4,ca,d.preventEventDefault)),e.uIk("title",d.clearTitle)}}function po(_,v){}function eu(_,v){if(1&_&&e.YNc(0,po,0,0,"ng-template",17),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,d.headerTemplate.templateRef))}}function lh(_,v){}function wd(_,v){if(1&_&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&_){const d=e.oxw(3);e.xp6(1),e.Oqu(d.noDataText)}}function Sl(_,v){if(1&_&&(e.TgZ(0,"div",18),e.YNc(1,lh,0,0,"ng-template",19),e.YNc(2,wd,2,1,"ng-template",10),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.noDataTemplate)("templateContext",e.VKq(3,bo,d.noDataTemplate?d.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!d.noDataTemplate)}}function Fu(_,v){}function Ic(_,v){if(1&_&&e.YNc(0,Fu,0,0,"ng-template",17),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,d.footerTemplate.templateRef))}}function xd(_,v){if(1&_){const d=e.EpF();e.YNc(0,eu,1,3,void 0,13),e.TgZ(1,"kendo-list",14,15),e.NdJ("pageChange",function(Y){return e.CHM(d),e.oxw().pageChange(Y)}),e.qZA(),e.YNc(3,Sl,3,5,"div",16),e.YNc(4,Ic,1,3,void 0,13)}if(2&_){const d=e.oxw();e.Q6J("ngIf",d.headerTemplate),e.xp6(1),e.Q6J("id",d.listBoxId)("optionPrefix",d.optionPrefix)("data",d.data)("textField",d.textField)("valueField",d.valueField)("template",d.template)("groupTemplate",d.groupTemplate)("fixedGroupTemplate",d.fixedGroupTemplate)("height",d.listHeight)("show",d.isOpen)("virtual",d.virtual),e.xp6(2),e.Q6J("ngIf",0===d.data.length),e.xp6(1),e.Q6J("ngIf",d.footerTemplate)}}function ul(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-resize-sensor",20),e.NdJ("resize",function(){return e.CHM(d),e.oxw().onResize()}),e.qZA()}}const Xc=function(_){return{"k-state-disabled":_}};function ko(_,v){}function $l(_,v){if(1&_&&e.YNc(0,ko,0,0,"ng-template",10),2&_){const d=e.oxw();e.Q6J("templateContext",e.WLB(1,Oa,d.valueTemplate.templateRef,d.dataItem))}}function Dc(_,v){if(1&_&&e._uU(0),2&_){const d=e.oxw();e.Oqu(d.getText())}}function Rl(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",14),e.NdJ("click",function(Y){return Y.stopImmediatePropagation()}),e.TgZ(1,"input",15),e.NdJ("ngModelChange",function(Y){return e.CHM(d),e.oxw(2).filterText=Y})("keydown",function(Y){return e.CHM(d),e.oxw(2).keydown(Y)})("input",function(Y){return e.CHM(d),e.oxw(2).handleFilter(Y)})("focus",function(){return e.CHM(d),e.oxw(2).onFilterFocus()})("blur",function(){return e.CHM(d),e.oxw(2).blurFilterInput()}),e.qZA(),e._UZ(2,"span",16),e.qZA()}if(2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("filterInput",d.isFocused&&!d.touchEnabled)("dir",d.direction)("ngModel",d.filterText),e.uIk("aria-owns",d.ariaOwns)("aria-activedescendant",d.ariaActivedescendant)("aria-label",d.noDataLabel)}}function tu(_,v){if(1&_&&(e.TgZ(0,"div",17),e._uU(1),e.qZA()),2&_){const d=e.oxw(2);e.Q6J("ngClass",e.VKq(3,Xc,d.isDisabledDefaultItem))("index",-1),e.xp6(1),e.hij(" ",d.getDefaultItemText()," ")}}function $a(_,v){}function tl(_,v){if(1&_&&(e.TgZ(0,"div",17),e.YNc(1,$a,0,0,"ng-template",10),e.qZA()),2&_){const d=e.oxw(2);e.Q6J("ngClass",e.VKq(3,Xc,d.isDisabledDefaultItem))("index",-1),e.xp6(1),e.Q6J("templateContext",e.WLB(5,Oa,d.itemTemplate.templateRef,d.defaultItem))}}function ch(_,v){}function Gr(_,v){if(1&_&&e.YNc(0,ch,0,0,"ng-template",10),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,d.headerTemplate.templateRef))}}function ac(_,v){}function dh(_,v){if(1&_&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&_){const d=e.oxw(3);e.xp6(1),e.Oqu(d.noDataText)}}function Zh(_,v){if(1&_&&(e.TgZ(0,"div",18),e.YNc(1,ac,0,0,"ng-template",19),e.YNc(2,dh,2,1,"ng-template",5),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.noDataTemplate)("templateContext",e.VKq(3,bo,d.noDataTemplate?d.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!d.noDataTemplate)}}function Jh(_,v){}function Jr(_,v){if(1&_&&e.YNc(0,Jh,0,0,"ng-template",10),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,d.footerTemplate.templateRef))}}function uh(_,v){if(1&_){const d=e.EpF();e.YNc(0,Rl,3,6,"ng-template",5),e.YNc(1,tu,2,5,"ng-template",5),e.YNc(2,tl,2,8,"ng-template",5),e.YNc(3,Gr,1,3,void 0,4),e.TgZ(4,"kendo-list",11,12),e.NdJ("pageChange",function(Y){return e.CHM(d),e.oxw().pageChange(Y)}),e.qZA(),e.YNc(6,Zh,3,5,"div",13),e.YNc(7,Jr,1,3,void 0,4)}if(2&_){const d=e.oxw();e.Q6J("ngIf",d.filterable),e.xp6(1),e.Q6J("ngIf",d.defaultItem&&!d.itemTemplate),e.xp6(1),e.Q6J("ngIf",d.defaultItem&&d.itemTemplate),e.xp6(1),e.Q6J("ngIf",d.headerTemplate),e.xp6(1),e.Q6J("id",d.listBoxId)("optionPrefix",d.optionPrefix)("data",d.data)("textField",d.textField)("valueField",d.valueField)("template",d.itemTemplate)("groupTemplate",d.groupTemplate)("fixedGroupTemplate",d.fixedGroupTemplate)("height",d.listHeight)("show",d.isOpen)("virtual",d.virtual),e.xp6(2),e.Q6J("ngIf",0===d.data.length),e.xp6(1),e.Q6J("ngIf",d.footerTemplate)}}function Ru(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-resize-sensor",20),e.NdJ("resize",function(){return e.CHM(d),e.oxw().onResize()}),e.qZA()}}const Ma=function(_){return{"k-dropdown-wrap":!0,"k-state-disabled":_}};function Tc(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",11),e.NdJ("mousedown",function(Y){return e.CHM(d),e.oxw().clearAll(Y)}),e.qZA()}if(2&_){const d=e.oxw();e.Udp("visibility",d.clearButtonVisiblity),e.uIk("title",d.clearTitle)}}function ed(_,v){1&_&&e._UZ(0,"span",12)}function Kh(_,v){}function hh(_,v){if(1&_&&e.YNc(0,Kh,0,0,"ng-template",18),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,d.headerTemplate.templateRef))}}function qh(_,v){}function Xr(_,v){if(1&_&&e.YNc(0,qh,0,0,"ng-template",18),2&_){const d=e.oxw(3);e.Q6J("templateContext",e.WLB(1,Oa,d.customItemTemplate.templateRef,d.text))}}function Md(_,v){if(1&_&&e._uU(0),2&_){const d=e.oxw(3);e.Oqu(d.text)}}function Id(_,v){if(1&_&&(e.TgZ(0,"div",19),e.TgZ(1,"div",20),e.YNc(2,Xr,1,4,void 0,21),e.YNc(3,Md,1,1,"ng-template",null,22,e.W1O),e._UZ(5,"span",23),e.qZA(),e.qZA()),2&_){const d=e.MAs(4),M=e.oxw(2);e.xp6(1),e.Q6J("multipleSelection",!0)("index",-1),e.xp6(1),e.Q6J("ngIf",M.customItemTemplate)("ngIfElse",d)}}function Ec(_,v){}function Dd(_,v){if(1&_&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&_){const d=e.oxw(3);e.xp6(1),e.Oqu(d.noDataText)}}function hl(_,v){if(1&_&&(e.TgZ(0,"div",24),e.YNc(1,Ec,0,0,"ng-template",25),e.YNc(2,Dd,2,1,"ng-template",9),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.noDataTemplate)("templateContext",e.VKq(3,bo,d.noDataTemplate?d.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!d.noDataTemplate)}}function sa(_,v){}function td(_,v){if(1&_&&e.YNc(0,sa,0,0,"ng-template",18),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,d.footerTemplate.templateRef))}}function kc(_,v){if(1&_){const d=e.EpF();e.YNc(0,hh,1,3,void 0,13),e.YNc(1,Id,6,4,"div",14),e.TgZ(2,"kendo-list",15,16),e.NdJ("pageChange",function(Y){return e.CHM(d),e.oxw().pageChange(Y)}),e.qZA(),e.YNc(4,hl,3,5,"div",17),e.YNc(5,td,1,3,void 0,13)}if(2&_){const d=e.oxw();e.Q6J("ngIf",d.headerTemplate),e.xp6(1),e.Q6J("ngIf",d.allowCustom&&d.text),e.xp6(1),e.Q6J("id",d.listBoxId)("optionPrefix",d.optionPrefix)("data",d.data)("textField",d.textField)("valueField",d.valueField)("height",d.listHeight)("template",d.template)("groupTemplate",d.groupTemplate)("fixedGroupTemplate",d.fixedGroupTemplate)("show",d.isOpen)("multipleSelection",!0)("virtual",d.virtual)("checkboxes",d.checkboxes),e.xp6(2),e.Q6J("ngIf",0===d.data.length),e.xp6(1),e.Q6J("ngIf",d.footerTemplate)}}function Td(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-resize-sensor",26),e.NdJ("resize",function(){return e.CHM(d),e.oxw().onResize()}),e.qZA()}}const nu=["header"];function iu(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(Y){return e.CHM(d),e.oxw().clearValue(Y)}),e.qZA()}if(2&_){const d=e.oxw();e.Udp("visibility",d.clearButtonVisiblity),e.Q6J("kendoEventsOutsideAngular",e.VKq(4,ca,d.preventEventDefault)),e.uIk("title",d.clearTitle)}}function n1(_,v){}function ph(_,v){if(1&_&&e.YNc(0,n1,0,0,"ng-template",23),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,null==d.headerTemplate?null:d.headerTemplate.templateRef))}}function fh(_,v){if(1&_&&e._UZ(0,"col"),2&_){const d=e.oxw().$implicit;e.Udp("width",d.width,"px")}}function lc(_,v){if(1&_&&(e.ynx(0),e.YNc(1,fh,1,2,"col",24),e.BQk()),2&_){const d=v.$implicit;e.xp6(1),e.Q6J("ngIf",!d.hidden&&d.matchesMedia)}}function Yl(_,v){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const d=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",d.title||d.field," ")}}function su(_,v){}const gh=function(_,v,d){return{templateRef:_,$implicit:v,column:d}};function Zo(_,v){if(1&_&&e.YNc(0,su,0,0,"ng-template",23),2&_){const d=e.oxw(2).$implicit;e.Q6J("templateContext",e.kEZ(1,gh,null==d.headerTemplate?null:d.headerTemplate.templateRef,d,d))}}function Xh(_,v){if(1&_&&(e.TgZ(0,"th",26),e.YNc(1,Yl,2,1,"ng-container",13),e.YNc(2,Zo,1,5,void 0,13),e.qZA()),2&_){const d=e.oxw().$implicit;e.Q6J("ngStyle",d.headerStyle)("ngClass",d.headerClass),e.xp6(1),e.Q6J("ngIf",!d.headerTemplate),e.xp6(1),e.Q6J("ngIf",d.headerTemplate)}}function ep(_,v){if(1&_&&(e.ynx(0),e.YNc(1,Xh,3,4,"th",25),e.BQk()),2&_){const d=v.$implicit;e.xp6(1),e.Q6J("ngIf",!d.hidden&&d.matchesMedia)}}function Ql(_,v){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const d=e.oxw(2).$implicit,M=e.oxw().$implicit,Y=e.oxw(2);e.xp6(1),e.hij(" ",Y.textFrom(M,d.field)," ")}}function j(_,v){}const T=function(_,v,d,M){return{templateRef:_,$implicit:v,dataItem:d,column:M}};function D(_,v){if(1&_&&e.YNc(0,j,0,0,"ng-template",23),2&_){const d=e.oxw(2).$implicit,M=e.oxw().$implicit;e.Q6J("templateContext",e.l5B(1,T,null==d.cellTemplate?null:d.cellTemplate.templateRef,M,M,d))}}function pe(_,v){if(1&_&&(e.TgZ(0,"span",28),e.YNc(1,Ql,2,1,"ng-container",13),e.YNc(2,D,1,6,void 0,13),e.qZA()),2&_){const d=e.oxw().$implicit;e.Udp("width",d.width,"px"),e.Q6J("ngClass",d.class)("ngStyle",d.style),e.xp6(1),e.Q6J("ngIf",!d.cellTemplate),e.xp6(1),e.Q6J("ngIf",d.cellTemplate)}}function lt(_,v){if(1&_&&(e.ynx(0),e.YNc(1,pe,3,6,"span",27),e.BQk()),2&_){const d=v.$implicit;e.xp6(1),e.Q6J("ngIf",!d.hidden&&d.matchesMedia)}}function Lt(_,v){if(1&_&&e.YNc(0,lt,2,1,"ng-container",18),2&_){const d=e.oxw(2);e.Q6J("ngForOf",d.columns)}}function Tn(_,v){}function ei(_,v){if(1&_&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&_){const d=e.oxw(3);e.xp6(1),e.Oqu(d.noDataText)}}function ri(_,v){if(1&_&&(e.TgZ(0,"div",29),e.YNc(1,Tn,0,0,"ng-template",30),e.YNc(2,ei,2,1,"ng-template",31),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.noDataTemplate)("templateContext",e.VKq(3,bo,null==d.noDataTemplate?null:d.noDataTemplate.templateRef)),e.xp6(1),e.Q6J("ngIf",!d.noDataTemplate)}}function hi(_,v){}function Gs(_,v){if(1&_&&(e.ynx(0),e.TgZ(1,"div",32),e.YNc(2,hi,0,0,"ng-template",23),e.qZA(),e.BQk()),2&_){const d=e.oxw(2);e.xp6(2),e.Q6J("templateContext",e.VKq(1,bo,d.footerTemplate.templateRef))}}function lr(_,v){if(1&_){const d=e.EpF();e.YNc(0,ph,1,3,void 0,13),e.TgZ(1,"div",14,15),e.TgZ(3,"div",16),e.TgZ(4,"table",17),e.TgZ(5,"colgroup"),e.YNc(6,lc,2,1,"ng-container",18),e.qZA(),e.TgZ(7,"tbody"),e.TgZ(8,"tr"),e.YNc(9,ep,2,1,"ng-container",18),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,Lt,1,1,"ng-template",null,19,e.W1O),e.TgZ(12,"kendo-list",20,21),e.NdJ("pageChange",function(Y){return e.CHM(d),e.oxw().pageChange(Y)})("listResize",function(){e.CHM(d);const Y=e.MAs(2);return e.oxw().updateHeaderPadding(Y)}),e.qZA(),e.YNc(14,ri,3,5,"div",22),e.YNc(15,Gs,3,3,"ng-container",13)}if(2&_){const d=e.MAs(11),M=e.oxw();e.Q6J("ngIf",M.headerTemplate),e.xp6(6),e.Q6J("ngForOf",M.columns),e.xp6(3),e.Q6J("ngForOf",M.columns),e.xp6(3),e.Q6J("id",M.listBoxId)("optionPrefix",M.optionPrefix)("data",M.data)("textField",M.textField)("valueField",M.valueField)("template",e.VKq(17,bo,d))("groupTemplate",M.groupTemplate)("fixedGroupTemplate",M.fixedGroupTemplate)("height",M.listHeight)("show",M.isOpen)("virtual",M.virtual)("listClass","k-reset k-grid-list"),e.xp6(2),e.Q6J("ngIf",0===M.data.length),e.xp6(1),e.Q6J("ngIf",M.footerTemplate)}}function Mi(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-resize-sensor",33),e.NdJ("resize",function(){return e.CHM(d),e.oxw().onResize()}),e.qZA()}}const Er=["treeview"],da=["filterInput"];function nl(_,v){}function cc(_,v){if(1&_&&e.YNc(0,nl,0,0,"ng-template",11),2&_){const d=e.oxw();e.Q6J("templateContext",e.WLB(1,Oa,d.valueTemplate.templateRef,d.dataItem))}}function Wl(_,v){if(1&_&&e._uU(0),2&_){const d=e.oxw();e.hij(" ",d.text||d.placeholder," ")}}function E0(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(Y){return e.CHM(d),e.oxw().clearValue(Y)}),e.qZA()}if(2&_){const d=e.oxw();e.Udp("visibility",d.clearButtonVisiblity),e.uIk("title",d.messageFor("clearTitle"))}}const mh=function(_){return{blur:_}};function tp(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",16),e.TgZ(1,"input",17,18),e.NdJ("input",function(Y){return e.CHM(d),e.oxw(2).handleFilterInputChange(Y.target.value)})("keydown.arrowdown",function(Y){return e.CHM(d),e.oxw(2).handleKeydown(Y)})("keydown.alt.arrowup",function(Y){return e.CHM(d),e.oxw(2).handleKeydown(Y)})("ngModelChange",function(Y){return e.CHM(d),e.oxw(2).filter=Y}),e.qZA(),e._UZ(3,"span",19),e.qZA()}if(2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("filterInput",d.filterable&&!d.touchEnabled)("ngModel",d.filter)("kendoEventsOutsideAngular",e.VKq(4,mh,d.handleBlur))("scope",d)}}function np(_,v){}function ip(_,v){if(1&_&&e.YNc(0,np,0,0,"ng-template",11),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,null==d.headerTemplate?null:d.headerTemplate.templateRef))}}function sp(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"kendo-treeview",20,21),e.NdJ("selectedKeysChange",function(Y){return e.CHM(d),e.oxw(2).selectedKeys=Y})("focusout",function(Y){return e.CHM(d),e.oxw(2).handleBlur(Y)})("keydown",function(Y){return e.CHM(d),e.oxw(2).handleKeydown(Y)})("selectionChange",function(Y){return e.CHM(d),e.oxw(2).onSelectionChange(Y)})("expand",function(Y){return e.CHM(d),e.oxw(2).nodeExpand.emit(Y)})("collapse",function(Y){return e.CHM(d),e.oxw(2).nodeCollapse.emit(Y)}),e.qZA()}if(2&_){const d=e.oxw(2);e.Udp("max-height",d.listHeight,"px"),e.Q6J("nodes",d.data)("animate",!1)("selectedKeys",d.selectedKeys)("selectBy",d.selectBy)("textField",d.textField)("children",d.children)("hasChildren",d.hasChildren)("loadOnDemand",d.loadOnDemand)("isExpanded",d.isNodeExpanded)("isDisabled",d.itemDisabled)("nodeTemplate",d.nodeTemplate)("filter",d.filter)("isVisible",d.isNodeVisible)}}function Ya(_,v){}function Ac(_,v){if(1&_&&e.YNc(0,Ya,0,0,"ng-template",11),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,null==d.footerTemplate?null:d.footerTemplate.templateRef))}}function rp(_,v){}function nd(_,v){if(1&_&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&_){const d=e.oxw(3);e.xp6(1),e.Oqu(d.messageFor("noDataText"))}}function dc(_,v){if(1&_&&(e.TgZ(0,"div",22),e.YNc(1,rp,0,0,"ng-template",23),e.YNc(2,nd,2,1,"ng-template",5),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.noDataTemplate)("templateContext",e.VKq(3,bo,null==d.noDataTemplate?null:d.noDataTemplate.templateRef)),e.xp6(1),e.Q6J("ngIf",!d.noDataTemplate)}}function cf(_,v){if(1&_&&(e.YNc(0,tp,4,6,"span",13),e.YNc(1,ip,1,3,void 0,4),e.YNc(2,sp,2,15,"kendo-treeview",14),e.YNc(3,Ac,1,3,void 0,4),e.YNc(4,dc,3,5,"div",15)),2&_){const d=e.oxw();e.Q6J("ngIf",d.filterable),e.xp6(1),e.Q6J("ngIf",d.headerTemplate),e.xp6(1),e.Q6J("ngIf",0!==d.data.length&&!d.allNodesHidden),e.xp6(1),e.Q6J("ngIf",d.footerTemplate),e.xp6(1),e.Q6J("ngIf",0===d.data.length||d.allNodesHidden)}}const vh=["checkAllInput"];function pl(_,v){if(1&_&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&_){const d=e.oxw();e.xp6(1),e.hij(" ",d.placeholder," ")}}function Bs(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(Y){return e.CHM(d),e.oxw().clearAll(Y)}),e.qZA()}if(2&_){const d=e.oxw();e.uIk("title",d.messageFor("clearTitle"))}}function _h(_,v){1&_&&e._UZ(0,"span",11)}function df(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"span",18),e.TgZ(1,"input",19,20),e.NdJ("input",function(Y){return e.CHM(d),e.oxw(2).handleFilterInputChange(Y.target.value)})("keydown",function(Y){return e.CHM(d),e.oxw(2).handleKeydown(Y)})("ngModelChange",function(Y){return e.CHM(d),e.oxw(2).filter=Y}),e.qZA(),e._UZ(3,"span",21),e.qZA()}if(2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("filterInput",d.filterable&&!d.touchEnabled)("ngModel",d.filter)("kendoEventsOutsideAngular",e.VKq(4,mh,d.handleBlur))("scope",d)}}function op(_,v){}function id(_,v){if(1&_&&e.YNc(0,op,0,0,"ng-template",22),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,null==d.headerTemplate?null:d.headerTemplate.templateRef))}}function wl(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"div",23),e.TgZ(1,"input",24,25),e.NdJ("checkedItemsChange",function(Y){return e.CHM(d),e.oxw(2).handleCheckedItemsChange(Y)})("keydown",function(Y){return e.CHM(d),e.oxw(2).handleKeydown(Y)}),e.qZA(),e.TgZ(3,"span",26),e.NdJ("click",function(){return e.CHM(d),e.oxw(2).toggleCheckAll()})("mousedown",function(Y){return Y.preventDefault()}),e._uU(4),e.qZA(),e.qZA()}if(2&_){e.oxw();const d=e.MAs(4),M=e.oxw();e.xp6(1),e.Q6J("checkAll",!M.filterable&&!M.touchEnabled)("treeview",d)("checkedItems",M.checkedItems)("valueField",M.valueField)("lastAction",M.lastAction)("kendoEventsOutsideAngular",e.VKq(8,mh,M.handleBlur))("scope",M),e.xp6(3),e.hij(" ",M.messageFor("checkAllText")," ")}}function Oc(_,v){}function uf(_,v){if(1&_&&e.YNc(0,Oc,0,0,"ng-template",22),2&_){const d=e.oxw(2);e.Q6J("templateContext",e.VKq(1,bo,null==d.footerTemplate?null:d.footerTemplate.templateRef))}}function sd(_,v){}function ap(_,v){if(1&_&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&_){const d=e.oxw(3);e.xp6(1),e.Oqu(d.messageFor("noDataText"))}}function uc(_,v){if(1&_&&(e.TgZ(0,"div",27),e.YNc(1,sd,0,0,"ng-template",28),e.YNc(2,ap,2,1,"ng-template",29),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.noDataTemplate)("templateContext",e.VKq(3,bo,null==d.noDataTemplate?null:d.noDataTemplate.templateRef)),e.xp6(1),e.Q6J("ngIf",!d.noDataTemplate)}}const hc=function(_){return{focusout:_}};function lp(_,v){if(1&_){const d=e.EpF();e.YNc(0,df,4,6,"span",12),e.YNc(1,id,1,3,void 0,13),e.YNc(2,wl,5,10,"div",14),e.TgZ(3,"kendo-treeview",15,16),e.NdJ("keydown",function(Y){return e.CHM(d),e.oxw().handleKeydown(Y)})("nodeClick",function(Y){return e.CHM(d),e.oxw().handleNodeClick(Y)})("expand",function(Y){return e.CHM(d),e.oxw().nodeExpand.emit(Y)})("collapse",function(Y){return e.CHM(d),e.oxw().nodeCollapse.emit(Y)})("checkedItemsChange",function(Y){return e.CHM(d),e.oxw().handleCheckedItemsChange(Y)}),e.qZA(),e.YNc(5,uf,1,3,void 0,13),e.YNc(6,uc,3,5,"div",17)}if(2&_){const d=e.oxw();e.Q6J("ngIf",d.filterable),e.xp6(1),e.Q6J("ngIf",d.headerTemplate),e.xp6(1),e.Q6J("ngIf",d.checkAll),e.xp6(1),e.Udp("max-height",d.listHeight,"px"),e.Q6J("nodes",d.data)("animate",!1)("checkable",d.checkableSettings)("checkedItems",d.checkedItems)("valueField",d.valueField)("textField",d.textField)("children",d.children)("hasChildren",d.hasChildren)("isExpanded",d.isNodeExpanded)("isDisabled",d.itemDisabled)("nodeTemplate",d.nodeTemplate)("loadOnDemand",d.loadOnDemand)("filter",d.filter)("isVisible",d.isNodeVisible)("kendoEventsOutsideAngular",e.VKq(23,hc,d.handleBlur))("scope",d),e.xp6(2),e.Q6J("ngIf",d.footerTemplate),e.xp6(1),e.Q6J("ngIf",0===(null==d.data?null:d.data.length)||d.allNodesHidden)}}const cp=function(_){return{"k-multiselect-wrap":!0,"k-floatwrap":!0,"k-state-disabled":_}};function hf(_,v){}function yh(_,v){1&_&&e.YNc(0,hf,0,0,"ng-template")}function pf(_,v){}function k0(_,v){if(1&_&&e.YNc(0,pf,0,0,"ng-template",10),2&_){const d=e.oxw(2).$implicit,M=e.oxw();e.Q6J("templateContext",e.WLB(1,Oa,M.groupTemplate.templateRef,d))}}function s1(_,v){if(1&_&&e._uU(0),2&_){const d=e.oxw(2).$implicit;e.AsE("",d.length," ",1===d.length?"item":"items"," selected")}}function r1(_,v){if(1&_&&(e.TgZ(0,"span"),e.YNc(1,k0,1,4,void 0,8),e.YNc(2,s1,1,2,"ng-template",9),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.groupTemplate),e.xp6(1),e.Q6J("ngIf",!d.groupTemplate)}}function o1(_,v){}function ff(_,v){if(1&_&&e.YNc(0,o1,0,0,"ng-template",10),2&_){const d=e.oxw(2).$implicit,M=e.oxw();e.Q6J("templateContext",e.WLB(1,Oa,M.template.templateRef,d))}}function bh(_,v){if(1&_&&e._uU(0),2&_){const d=e.oxw(2),M=d.$implicit,Y=d.index,Fe=e.oxw();e.Oqu(Fe.tagProp(M,Fe.textField,Y))}}function gf(_,v){if(1&_&&(e.TgZ(0,"span"),e.YNc(1,ff,1,4,void 0,8),e.YNc(2,bh,1,1,"ng-template",9),e.qZA()),2&_){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.template),e.xp6(1),e.Q6J("ngIf",!d.template)}}const mf=function(_,v){return{"k-state-focused":_,"k-state-disabled":v}};function ru(_,v){if(1&_){const d=e.EpF();e.TgZ(0,"li",2),e.YNc(1,yh,1,0,void 0,3),e.YNc(2,r1,3,2,"ng-template",null,4,e.W1O),e.YNc(4,gf,3,2,"ng-template",null,5,e.W1O),e.TgZ(6,"span",6),e.TgZ(7,"span",7),e.NdJ("mousedown",function(Y){const Fe=e.CHM(d),Qt=Fe.$implicit,gn=Fe.index;return e.oxw().deleteTag(Y,Qt,gn)}),e.qZA(),e.qZA(),e.qZA()}if(2&_){const d=v.$implicit,M=v.index,Y=e.MAs(3),Fe=e.MAs(5),Qt=e.oxw();e.Q6J("ngClass",e.WLB(8,mf,M===Qt.focused,Qt.isTagDisabled(d,M))),e.uIk("id",Qt.itemId(d,M))("aria-hidden",Qt.tagAriaHidden(M))("aria-setsize",null==Qt.tags?null:Qt.tags.length),e.xp6(1),e.Q6J("ngIf",Qt.isGroupTag(d))("ngIfThen",Y)("ngIfElse",Fe),e.xp6(5),e.uIk("aria-hidden",M!==Qt.focused)}}const Ed={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1639043976,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Bn=_=>null!=_,il=()=>{let v,d,_="";for(v=0;v<32;v++)d=16*Math.random()|0,(8===v||12===v||16===v||20===v)&&(_+="-"),_+=(12===v?4:16===v?3&d|8:d).toString(16);return _},Ia=_=>Array.isArray(_),Ad=_=>Bn(_)&&"object"==typeof _,Ch=_=>"string"==typeof _&&0===_.length,Od=_=>Ia(_)&&_.every(v=>Ad(v)),up=(_,v,d)=>{const M=v.map(Y=>Bn(Y)&&Bn(ts(Y,d))?ts(Y,d):Y);return _.reduce((Y,Fe)=>{const Qt=Bn(Fe)&&Bn(ts(Fe,d))?ts(Fe,d):Fe,gn=M.indexOf(Qt);return-1!==gn&&Y.push(gn),Y},[])},ts=(_,v)=>Bn(_)?Bn(v)&&Ad(_)?(0,it.Yn)(v)(_):_:null,yf=(_,v,d)=>{if(!Bn(_))return!1;let M=String(_);return d&&(M=M.toLowerCase()),0===M.indexOf(v)},Pu=(_,v)=>!!Bn(_)&&v.every(d=>_.hasOwnProperty(d)),is=_=>_.className.includes("ng-untouched"),Fc=_=>{},hp=(_,v)=>{const d=_.matches||_.msMatchesSelector||_.webkitMatchesSelector;return!!d&&d.call(_,v)},rd=(_,v=0)=>{const d=Number(_);return isNaN(d)?v:d},Lu=(_,v,d)=>_.nativeElement.contains(v)||d&&d.popupElement.contains(v),Ho=_=>(_||"").split("_").length-1,xh=(_,v)=>{if(!Bn(_)||0===_.children.length)return[];let d=_.children;return Bn(v)&&(d=d.filter(M=>v(M.item))),d.forEach(M=>d=d.concat(xh(M,v))),d},Rc=({dataItem:_,index:v,level:d},M)=>{const Y=Array.isArray(M)?M:[M],Fe=Bn(d)?d:Ho(v),Qt=Math.min(Fe,Y.length-1);return(0,it.Yn)(Y[Qt])(_)};let ua=(()=>{let _=class{constructor(d,M){this.localization=d,this.valueChange=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.onClick=new e.vpe,this.onNavigate=new e.vpe,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=d.rtl?"rtl":"ltr",this.renderer=M}get userInput(){return this._userInput}set userInput(d){this._userInput=d||""}get value(){return this.input.nativeElement.value}set placeholder(d){this._placeholder=d||"",this.setInputSize()}get placeholder(){return this._placeholder}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:d})=>this.direction=d?"rtl":"ltr")}ngOnChanges(d){let M;if(this.input&&(d.userInput||d.suggestedText)){M=d.userInput&&d.userInput.previousValue?this._previousValue===d.userInput.previousValue?this._previousValue:d.userInput.currentValue||"":this._previousValue;const Y=this.input.nativeElement.selectionStart,Fe=M.length===Y;this.writeInputValue(this.suggestedText?((_,v)=>_.concat(v.substr(v.toLowerCase().indexOf(_.toLowerCase())+_.length)))(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):Fe?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(Y,Y),this._previousValue=this.userInput}}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}writeInputValue(d){(0,z.X_)()&&this.renderer.setProperty(this.input.nativeElement,"value",d)}setInputSelection(d,M){if((0,z.X_)()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(d,M)}catch(Y){}}handleInput(d){const M=d.target.value;M!==this.userInput&&(this._previousValue=M,this.valueChange.emit(M))}handleFocus(d){this.onFocus.emit(d)}handleBlur(d){this.onBlur.emit(d)}handleKeydown(d){[z.R8.ArrowUp,z.R8.ArrowDown,z.R8.ArrowLeft,z.R8.ArrowRight,z.R8.Enter,z.R8.Escape,z.R8.Delete,z.R8.Backspace,z.R8.Home,z.R8.End].indexOf(d.keyCode)>-1&&this.onNavigate.emit(d)}focus(){(0,z.X_)()&&this.input.nativeElement.focus()}blur(){(0,z.X_)()&&this.input.nativeElement.blur()}setInputSize(){const d=gn=>gn?gn.length:0,M=this.input.nativeElement,Y=d(this.placeholder),Fe=d(this.value),Qt=Math.max(Y,Fe,1);this.renderer.setAttribute(M,"size",Qt.toString())}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(ct.oQ),e.Y36(e.Qsj))},_.\u0275cmp=e.Xpm({type:_,selectors:[["kendo-searchbar"]],viewQuery:function(d,M){if(1&d&&e.Gf(Va,7),2&d){let Y;e.iGM(Y=e.CRH())&&(M.input=Y.first)}},hostVars:2,hostBindings:function(d,M){2&d&&e.ekj("k-searchbar",M.searchBarClass)},inputs:{userInput:"userInput",placeholder:"placeholder",id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",noDataLabel:"noDataLabel",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",suggestedText:"suggestedText"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[e.TTD],decls:2,vars:21,consts:[["autocomplete","off","aria-haspopup","listbox",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(d,M){1&d&&(e.TgZ(0,"input",0,1),e.NdJ("input",function(Fe){return M.handleInput(Fe)})("keydown",function(Fe){return M.handleKeydown(Fe)}),e.qZA()),2&d&&(e.Tol("k-input"),e.Q6J("id",M.id)("disabled",M.disabled)("readonly",M.readonly)("placeholder",M.placeholder)("kendoEventsOutsideAngular",e.WLB(18,Aa,M.handleFocus,M.handleBlur))("scope",M),e.uIk("tabIndex",M.tabIndex)("dir",M.direction)("role",M.role)("aria-disabled",M.disabled)("aria-readonly",M.readonly)("aria-expanded",M.popupOpen)("aria-owns",M.listId)("aria-describedby",M.tagListId)("aria-activedescendant",M.activeDescendant)("aria-label",M.noDataLabel))},directives:[z.nV],encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"id",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"listId",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"tagListId",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"activeDescendant",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"noDataLabel",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],_.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],_.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Number)],_.prototype,"tabIndex",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],_.prototype,"popupOpen",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"role",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],_.prototype,"userInput",null),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"suggestedText",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"onFocus",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"onClick",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"onNavigate",void 0),p([(0,e.i9L)("input",{static:!0}),r("design:type",e.SBq)],_.prototype,"input",void 0),p([(0,e.pfw)("class.k-searchbar"),r("design:type",Boolean)],_.prototype,"searchBarClass",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],_.prototype,"placeholder",null),_=p([r("design:paramtypes",[ct.oQ,e.Qsj])],_),_})(),ha=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),xs=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),ra=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),Ra=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),Qa=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),fo=(()=>{let _=class{constructor(){this.onSelect=new e.vpe,this.onChange=new e.vpe,this.onFocus=new e.vpe,this.total=0,this.selectedIndices=[]}getTotal(){return this.total}isSelected(d){return Bn(this.selectedIndices.find(M=>M===d))}isFocused(d){return d===this.focused}focus(d){this.isFocused(d)||(this.focused=d,this.onFocus.emit(d))}select(d){this.isSelected(d)||(this.selectedIndices=[d],this.focused=d,this.onSelect.emit({indices:[d],newSelection:Bn(d)}))}add(d){this.isSelected(d)||(this.selectedIndices.push(d),this.focused=d,this.onChange.emit({added:d,indices:this.selectedIndices.slice()}))}unselect(d){if(!this.isSelected(d))return;const M=this.selectedIndices.indexOf(d);this.selectedIndices.splice(M,1),this.focused=d,this.onChange.emit({indices:this.selectedIndices.slice(),removed:d})}change(d){const M=Bn(d)&&!this.isSelected(d);this.selectedIndices=[d],this.focused=d,this.onChange.emit({indices:[d],newSelection:M})}resetSelection(d){this.selectedIndices=d instanceof Array?d:[d],this.focused=this.selectedIndices[this.selectedIndices.length-1]}get selected(){return this.selectedIndices.slice()}get focused(){return this.focusedIndex}set focused(d){this.focusedIndex!==d&&(this.focusedIndex=d,this.onFocus.emit(d))}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_})();var Ys=(()=>{return(_=Ys||(Ys={}))[_.Undefined=0]="Undefined",_[_.Open=1]="Open",_[_.Close=2]="Close",_[_.Enter=3]="Enter",_[_.Tab=4]="Tab",_[_.Esc=5]="Esc",_[_.Delete=6]="Delete",_[_.Backspace=7]="Backspace",_[_.Home=8]="Home",_[_.End=9]="End",_[_.Up=10]="Up",_[_.Down=11]="Down",_[_.Left=12]="Left",_[_.Right=13]="Right",Ys;var _})();let Ao=(()=>{let _=class{constructor(){this.grouped=!1,this.groupIndices=[]}set data(d){this._data=d,this.grouped=this.isGrouped(d),this.grouped&&(this.groupIndices=this.getGroupIndices(d),this._flatData=this.flatten(d))}get data(){return this.grouped?this._flatData:this._data}get itemsCount(){return Bn(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(M=>!M.header):this.data).length:0}isGrouped(d){return Bn(d)&&0!==d.length&&Bn(d[0])&&Pu(d[0],["aggregates","field","items","value"])}getGroupIndices(d){let M=[];for(let Y=0;Y<=d.length-1;Y++)M[Y]=(M[Y-1]||0)+d[Y].items.length;return M}filter(d){let M=[];if(this.isGrouped(this.data))for(let Y=0;Y<=this.groupIndices.length-1;Y++){const Fe=this.data[Y].items.filter(d);Fe&&(M=M.concat(Fe))}else M=this.data.filter(d);return M}indexOf(d,M=0){let Y=Fe=>Fe===d;return this.grouped&&(Y=Fe=>Fe.value===d),this.findIndex(Y,M)}findIndex(d,M=0){let Y=-1;if(this.grouped){const Fe=this._flatData.filter(Qt=>!Qt.header&&Qt.offsetIndex>=M);Y=Fe.findIndex(d),Y=Fe[Y]?Fe[Y].offsetIndex:-1}else{const Qt=this.data.slice(M).findIndex(d);Y=-1!==Qt?Qt+M:-1}return Y}closestGroup(d){for(let M=d;M>=0;M--)if(this._flatData[M].header)return this._flatData[M]}find(d){const M=this.findIndex(d);return this.itemAt(M)}flatIndex(d){if(0===this.itemsCount)return-1;if(!this.grouped)return d;{const M=this._flatData.find(Y=>!Y.header&&Y.offsetIndex===d);if(M)return M.index}return-1}itemAt(d){let M;if(0===this.itemsCount)return M;if(this.grouped){const Y=this._flatData.find(Fe=>!Fe.header&&Fe.offsetIndex===d);Y&&(M=Y.value)}else M=this.data[d];return M}groupAt(d){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(M=>M.header&&M.index===d)}groupField(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}itemGroup(d){if(!d||0===this.itemsCount||!this.isGrouped)return;const M=this.groupField();return M?ts(d,M):void 0}flatten(d,M,Y=0,Fe=0){let Qt=[];Bn(M)&&Qt.push({header:!0,index:Fe+Y,offsetIndex:Fe,value:M});for(let gn=0;gn{let _=class{constructor(d){this.dataService=d,this.itemDisabled=null}isIndexDisabled(d){if(this.itemDisabled){const M=this.dataService.itemAt(d);if(Bn(M))return this.itemDisabled({dataItem:M,index:d});if(Bn(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}isItemDisabled(d){if(this.itemDisabled){const M=this.dataService.indexOf(d);if(-1!==M)return this.itemDisabled({dataItem:d,index:M});if(Bn(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}};return _.\u0275fac=function(d){return new(d||_)(e.LFG(Ao))},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_=p([r("design:paramtypes",[Ao])],_),_})();class Fd{constructor(v,d){this.index=v,this.originalEvent=d}}let Vo=(()=>{let _=class{constructor(d,M){this.disabledItemsService=d,this.selectionService=M,this.open=new e.vpe,this.close=new e.vpe,this.enter=new e.vpe,this.tab=new e.vpe,this.esc=new e.vpe,this.up=new e.vpe,this.right=new e.vpe,this.down=new e.vpe,this.left=new e.vpe,this.delete=new e.vpe,this.backspace=new e.vpe,this.home=new e.vpe,this.end=new e.vpe}process(d){const M=d.originalEvent.keyCode,Y=d.originalEvent.altKey;let Fe,Qt=Ys.Undefined;Y&&M===z.R8.ArrowDown?Qt=Ys.Open:Y&&M===z.R8.ArrowUp?Qt=Ys.Close:M===z.R8.Enter?Qt=Ys.Enter:M===z.R8.Escape?Qt=Ys.Esc:M===z.R8.Tab?Qt=Ys.Tab:M===z.R8.ArrowUp?(Fe=this.next({current:d.current,start:d.min,end:d.max,step:-1}),Qt=Ys.Up):M===z.R8.ArrowLeft?(Fe=this.next({current:d.current,start:d.min,end:d.max,step:-1}),Qt=Ys.Left):M===z.R8.ArrowDown?(Fe=this.next({current:d.current,start:d.min,end:d.max,step:1}),Qt=Ys.Down):M===z.R8.ArrowRight?(Fe=this.next({current:d.current,start:d.min,end:d.max,step:1}),Qt=Ys.Right):M===z.R8.Home?(Fe=this.isDisabled(0)?d.current:0,Qt=Ys.Home):M===z.R8.End?(Fe=this.isDisabled(d.max)?d.current:d.max,Qt=Ys.End):M===z.R8.Delete?Qt=Ys.Delete:M===z.R8.Backspace&&(Qt=Ys.Backspace);const gn=new Fd(Fe,d.originalEvent);return Qt!==Ys.Undefined&&this[Ys[Qt].toLowerCase()].emit(gn),Qt}next(d){const{current:M,start:Y,end:Fe,step:Qt}=d,gn=Bn(M)?this.clampIndex(M+Qt,Y,Fe):Y,qn=this.firstFocusableIndex(gn,Y,Fe,Qt);return Bn(qn)?qn:this.selectionService.isSelected(M)&&M>=Y?M:this.firstFocusableIndex(gn,Y,Fe,-1*Qt)}clampIndex(d,M,Y){return!Bn(d)||dY?Y:d}firstFocusableIndex(d,M,Y,Fe){for(;M<=d&&d<=Y;){if(!this.isDisabled(d))return d;d+=Fe}}isDisabled(d){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(d)}};return _.\u0275fac=function(d){return new(d||_)(e.LFG(Ur),e.LFG(fo))},_.\u0275prov=e.Yz7({token:_,factory:function(v){return _.\u0275fac(v)}}),_=p([r("design:paramtypes",[Ur,fo])],_),_})(),Jo=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})();class jo{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Zl{}let Rd=(()=>{let _=class{constructor(d){this.element=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.SBq))},_.\u0275dir=e.lG2({type:_,selectors:[["li","role","option"],["li","role","group"]]}),_=p([r("design:paramtypes",[e.SBq])],_),_})(),Jl=(()=>{let _=class{constructor(d,M,Y,Fe,Qt,gn,qn){this.dataService=d,this.wrapper=M,this.selectionService=Y,this.disabledItemsService=Fe,this.cdr=Qt,this.zone=gn,this.renderer=qn,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.checkboxes={enabled:!1},this.onClick=new e.vpe,this.pageChange=new e.vpe,this.listResize=new e.vpe,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this.selectSubscription=(0,g.T)(this.selectionService.onSelect.pipe((0,Rt.U)(Un=>Un.indices[0])),this.selectionService.onFocus).pipe((0,Tt.w)(Un=>this.zone.onStable.pipe((0,Gt.q)(1),(0,Rt.U)(()=>Un)))).subscribe(this.scrollToItem.bind(this))}set data(d){this._data=d[0]&&d[0].header?d.slice(0):d}get data(){return this._data}get pageSize(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}get scrollHeight(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight}get overflowY(){if(Bn(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}ngOnChanges(d){(0,z.ln)("data",d,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!d.data.isFirstChange()),this.setOverflow()),(0,z.ln)("virtual",d,!1)&&this.setOverflow()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.scrollSubscription=(0,qe.R)(this.content.nativeElement,"scroll").pipe((0,rr.e)(100),(0,Yn.b)(this.prefetchData.bind(this)),(0,Yn.b)(this.findCurrentGroup.bind(this))).subscribe(()=>{this.lastScrollTop=this.content.nativeElement.scrollTop})}),this.setOverflow()}ngAfterViewChecked(){this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,this.scrollToItem(this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused)),this.dataService.grouped&&this.findCurrentGroup()}ngOnDestroy(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}onCheckedChange(d,M){const Y=d.target.checked;Y&&!this.selectionService.isSelected(M)&&this.selectionService.add(M),!Y&&this.selectionService.isSelected(M)&&this.selectionService.unselect(M)}isChecked(d){return this.selectionService.isSelected(this.virtual?d+this.virtual.skip:d)}firstVisibleItem(){const d=this.content.nativeElement,M=d.getBoundingClientRect(),Y=Array.prototype.slice.call(d.querySelectorAll(".k-state-disabled"));Y.forEach(Qt=>this.renderer.setStyle(Qt,"pointer-events","auto"));const Fe=document.elementFromPoint(M.left+1,M.top+1);return Y.forEach(Qt=>this.renderer.setStyle(Qt,"pointer-events","none")),((_,v)=>{let d=_;for(;null!==d&&1===d.nodeType;){if(hp(d,"li"))return d;d=d.parentElement||d.parentNode}return null})(Fe)}findCurrentGroup(){if(!this.dataService.grouped)return void(this.currentGroup=void 0);const d=this.firstVisibleItem();if(d){let M;"group"===d.getAttribute("role")?(M=parseInt(d.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(M).value):(M=parseInt(d.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(M)))}else this.currentGroup=void 0;this.cdr.detectChanges()}prefetchData(){if(!this.virtual)return;const d=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),M=this.content.nativeElement.scrollTop,Y=Math.trunc(M/this.virtual.itemHeight),Fe=M>this.lastScrollTop,qn=this.lastLoaded-this.pageSize+d>=Y-(this.pageSize-(this.lastLoaded-this.startFrom));Fe&&Y+d>=this.lastLoaded&&this.lastLoaded{let M=this.pageSize+d;M>this.virtual.total&&(d--,M=this.virtual.total),d<0&&(d=0),this.startFrom=d,this.lastLoaded=M,this.pageChange.emit({skip:d,take:this.pageSize})})}index(d,M){return d>0?this.dataService.groupIndices[d-1]+M:M}getText(d){return ts(d,this.textField)}getValue(d){return ts(d,this.valueField)}isDisabled(d){return Bn(this.virtual)&&(d+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(d)}scrollToItem(d){let M=d;if(this.dataService.grouped&&(M=this.dataService.flatIndex(d),M+=this.firstGroupHeaderInTargetedPage(M)?-1:0),this.virtual&&M>-1)return void this.scrollToIndex(M);const Y=this.items.toArray();Bn(Y[M])&&-1!==M&&this.scroll(Y[M].element)}scrollToIndex(d){let M=this.content.nativeElement,Y=M.scrollTop;const Fe=d*this.virtual.itemHeight,gn=M.clientHeight,qn=Fe+this.virtual.itemHeight;Y>Fe?Y=Fe:qn>Y+gn&&(Y=qn-gn),M.scrollTop=Y}scroll(d){if(!d)return;const M=d.nativeElement;let Y=this.content.nativeElement,Fe=M.offsetTop,gn=Y.scrollTop,qn=Y.clientHeight,Un=Fe+M.offsetHeight;gn>Fe?gn=Fe:Un>gn+qn&&(gn=Un-qn),Y.scrollTop=gn}hasScrollbar(){return!!(Bn(this.items)&&this.items.length&&Bn(this.list)&&Bn(this.content))&&(Bn(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}setOverflow(){if(this.virtual){const d=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",d)}}hasVirtualScrollbar(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}positionItems(){this.items.forEach((d,M)=>{this.renderer.setStyle(d.element.nativeElement,"transform",`translateY(${(M+this.startFrom)*this.virtual.itemHeight}px`)})}firstGroupHeaderInTargetedPage(d){return!Bn(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(Ao),e.Y36(e.SBq),e.Y36(fo),e.Y36(Ur),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.Qsj))},_.\u0275cmp=e.Xpm({type:_,selectors:[["kendo-list"]],viewQuery:function(d,M){if(1&d&&(e.Gf(bl,7),e.Gf(kl,7),e.Gf(Mc,5),e.Gf(Rd,5)),2&d){let Y;e.iGM(Y=e.CRH())&&(M.content=Y.first),e.iGM(Y=e.CRH())&&(M.list=Y.first),e.iGM(Y=e.CRH())&&(M.virtualContainer=Y.first),e.iGM(Y=e.CRH())&&(M.items=Y)}},inputs:{selected:"selected",focused:"focused",show:"show",multipleSelection:"multipleSelection",listClass:"listClass",checkboxes:"checkboxes",data:"data",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",id:"id",optionPrefix:"optionPrefix",virtual:"virtual"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[e.TTD],decls:9,vars:20,consts:[["class","k-outer-group-header k-first",3,"ngClass","ngStyle",4,"ngIf"],["unselectable","on",3,"ngClass"],["content",""],["role","listbox",3,"ngClass"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[1,"k-outer-group-header","k-first",3,"ngClass","ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",1,"k-item",3,"checkboxes","height","index","multipleSelection","ngClass"],["class","k-checkbox-label",4,"ngIf"],[1,"k-checkbox-label"],["type","checkbox",1,"k-checkbox",3,"checked","change"],["role","group","class","k-outer-group-header",3,"ngClass","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","","class","k-item",3,"height","index","multipleSelection","ngClass",4,"ngIf"],["role","group",1,"k-outer-group-header",3,"ngClass","ngStyle"],["role","option","kendoDropDownsSelectable","",1,"k-item",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(d,M){1&d&&(e.YNc(0,ja,3,10,"div",0),e.TgZ(1,"div",1,2),e.TgZ(3,"ul",3,4),e.YNc(5,Oe,1,1,void 0,5),e.YNc(6,fr,1,1,void 0,5),e.YNc(7,Ai,1,0,"kendo-resize-sensor",6),e.qZA(),e.YNc(8,Ir,4,2,"div",7),e.qZA()),2&d&&(e.Q6J("ngIf",M.dataService.grouped),e.xp6(1),e.Udp("overscroll-behavior","none")("max-height",M.height,"px"),e.Q6J("ngClass",e.WLB(15,Br,M.virtual,!M.virtual)),e.xp6(2),e.Tol(M.listClass),e.Q6J("ngClass",e.VKq(18,Eo,M.virtual)),e.uIk("id",M.id)("aria-hidden",!M.show),e.xp6(2),e.Q6J("ngIf",!M.dataService.grouped&&M.show),e.xp6(1),e.Q6J("ngIf",M.dataService.grouped),e.xp6(1),e.Q6J("ngIf",!M.virtual),e.xp6(1),e.Q6J("ngIf",M.virtual))},directives:function(){return[Ze.O5,Ze.mk,Ze.PC,Ml,Ze.sg,Rd,zd,z.NG]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Array)],_.prototype,"selected",void 0),p([(0,e.IIB)(),r("design:type",Number)],_.prototype,"focused",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"textField",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",Number)],_.prototype,"height",void 0),p([(0,e.IIB)(),r("design:type",ha)],_.prototype,"template",void 0),p([(0,e.IIB)(),r("design:type",Ra)],_.prototype,"groupTemplate",void 0),p([(0,e.IIB)(),r("design:type",Qa)],_.prototype,"fixedGroupTemplate",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],_.prototype,"show",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"id",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"optionPrefix",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],_.prototype,"multipleSelection",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"virtual",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"listClass",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"checkboxes",void 0),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],_.prototype,"data",null),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"onClick",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"pageChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"listResize",void 0),p([(0,e.vR)(Rd),r("design:type",e.n_E)],_.prototype,"items",void 0),p([(0,e.i9L)("content",{static:!0}),r("design:type",e.SBq)],_.prototype,"content",void 0),p([(0,e.i9L)("list",{static:!0}),r("design:type",e.SBq)],_.prototype,"list",void 0),p([(0,e.i9L)("virtualContainer",{static:!1}),r("design:type",e.SBq)],_.prototype,"virtualContainer",void 0),_=p([r("design:paramtypes",[Ao,e.SBq,fo,Ur,e.sBO,e.R0b,e.Qsj])],_),_})();const a1={pageSize:50,itemHeight:28},Bu=(_,v)=>{const d=Object.assign({},a1,v);return!0===_?d:_?Object.assign({pageSize:a1.pageSize},_):null},sl=new e.OlP("dropdowns-touch-enabled");var Kl;const ou={multi:!0,provide:je.JU,useExisting:(0,e.Gpc)(()=>zs)};let zs=Kl=class{constructor(v,d,M,Y,Fe,Qt,gn,qn,Un,Xi,Pi){this.localization=v,this.dataService=d,this.popupService=M,this.selectionService=Y,this.navigationService=Fe,this.disabledItemsService=Qt,this._zone=gn,this.cdr=qn,this.renderer=Un,this.hostElement=Xi,this.touchEnabled=Pi,this.highlightFirst=!0,this.focusableId=`k-${il()}`,this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new e.vpe,this.filterChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.widgetClasses=!0,this.listBoxId=il(),this.optionPrefix=il(),this.onChangeCallback=Fc,this.onTouchedCallback=Fc,this.popupMouseDownHandler=Hs=>Hs.preventDefault(),this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new Ve.x,this._isFocused=!1,(0,rt.s)(Ed),this.direction=v.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}get width(){let v=0;(0,z.X_)()&&(v=this.wrapper.offsetWidth);const d=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(d)?d:`${d}px`}}get height(){const v=this.popupSettings.height;return Bn(v)?`${v}px`:"auto"}get listContainerClasses(){const v=["k-list-container","k-reset"];return this.popupSettings.popupClass&&v.push(this.popupSettings.popupClass),v}get suggestion(){if(!this.text||!this.suggestedText)return void(this.suggestedText=void 0);const v=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&v?this.suggestedText:void 0}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}toggle(v){Promise.resolve(null).then(()=>{const d=Bn(v)?v:!this._open;this._toggle(d)})}get isOpen(){return this._open}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||this._toggle(v)}get activeDescendant(){if(!this.isOpen||!Bn(this.selectionService.focused)||-1===this.selectionService.focused)return null;const v=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+ts(v,this.valueField)}get noDataLabel(){if(0===this.data.length)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}set data(v){this.dataService.data=v||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=ts(this.dataService.itemAt(0),this.valueField))}get data(){const v=this.virtual;if(v){const d=v.skip||0,M=d+v.pageSize;return v.total=this.dataService.data.length,this.dataService.data.slice(d,M)}return this.dataService.data}set value(v){this.verifySettings(v),this._value=v||"",this.text=this.value,this.cdr.markForCheck()}get value(){return this._value||""}set popupSettings(v){this._popupSettings=Object.assign({animate:!0},v)}get popupSettings(){return this._popupSettings}set itemDisabled(v){if("function"!=typeof v)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(v)}.`);this.disabledItemsService.itemDisabled=v}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set virtual(v){this._virtualSettings=Bu(v)}get virtual(){return this._virtualSettings}get isFocused(){return this._isFocused}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.wrapper,"k-state-focused"),this._isFocused=v}get isDisabled(){return this.disabled}get dir(){return this.direction}ngOnInit(){this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.setMessages()}),this.setMessages()}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}ngOnChanges(v){const d=this.virtual;d&&v.data&&v.data.isFirstChange()&&this.pageChange({skip:0,take:d.pageSize})}reset(){this.value=""}clearValue(v){v.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}writeValue(v){this.value=v}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}focusItemAt(v){const d=v>=0&&v=0)M=ts(this.dataService.itemAt(d),this.valueField);else{const Y=this.suggest&&this.suggestedText&&this.data.length&&ts(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();M=this.isOpen&&Y?this.suggestedText:this.searchbar.value}this.change(M)}handleEscape(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null}searchBarChange(v){const d=Bn(this.text)?this.text.length:0;this.backspacePressed=v.length0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(v):this.highlightFirst&&this.search(v)}handleFocus(){this.isFocused=!0,(0,z.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()})}handleBlur(){const v=this.filterable?this.selectionService.focused:-1;let d,M;this.searchbar.input.nativeElement.scrollLeft=0,-1!==v?(d=this.dataService.itemAt(v),M=ts(d,this.valueField)||""):M=this.searchbar.value;const Y=M===this.searchbar.value,Fe=M.toLowerCase()===this.searchbar.value.toLowerCase();!Y&&Fe&&this.selectionService.resetSelection([]),this.isFocused=!1;const Qt=this.value!==this.text;(0,z.g$)(this.onBlur)||(0,z.g$)(this.close)||is(this.wrapper)||Qt?this._zone.run(()=>{Qt&&this.change(this.searchbar.value),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}pageChange(v){this.virtual.skip=v.skip}change(v){this.togglePopup(!1),this.valueChangeSubject.next(v)}subscribeEvents(){!(0,z.X_)()||(this.valueChangeSubscription=this.valueChangeSubject.subscribe(v=>{const d=this.value!==v;this.value=v,this.text=v,d&&this.emitChange(v)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=(0,g.T)(this.navigationService.up,this.navigationService.down).subscribe(v=>this.navigate(v.index)),this.closeSubscription=this.navigationService.close.subscribe(()=>this.togglePopup(!1)),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))}subscribeTouchEvents(){!(0,z.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{this.isFocused&&!Lu(this.hostElement,v.target,this.popupRef)&&this._zone.run(()=>this.blur())}))}unsubscribeEvents(){!(0,z.X_)()||(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}handleItemChange(v){const d=v.indices.length?v.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),!Bn(d))return;let M=ts(this.dataService.itemAt(d),this.valueField);this.change(M)}handleItemFocus(v){const d=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&d>=0)&&(this.suggestedText=ts(this.dataService.itemAt(d),this.valueField))}createPopup(){this.virtual&&(this.virtual.skip=0);const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:v,vertical:"top"},anchorAlign:{horizontal:v,vertical:"bottom"}});const Y=this.popupRef.popupElement,{min:Fe,max:Qt}=this.width;Y.addEventListener("mousedown",this.popupMouseDownHandler),Y.style.minWidth=Fe,Y.style.width=Qt,Y.style.height=this.height,Y.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}_toggle(v){this._open=v,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(v){const d=new jo;return v?this.open.emit(d):this.close.emit(d),d.isDefaultPrevented()}firstFocusableIndex(v){const d=this.data.length-1;return this.disabledItemsService.isIndexDisabled(v)?v{let M=ts(d.value,this.valueField);return M=Bn(M)?M.toString().toLowerCase():"",M.startsWith(v.toLowerCase())}:d=>{let M=ts(d,this.valueField);return M=Bn(M)?M.toString().toLowerCase():"",M.startsWith(v.toLowerCase())}}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}};zs.\u0275fac=function(v){return new(v||zs)(e.Y36(ct.oQ),e.Y36(Ao),e.Y36(Te.qL),e.Y36(fo),e.Y36(Vo),e.Y36(Ur),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(sl,8))},zs.\u0275cmp=e.Xpm({type:zs,selectors:[["kendo-autocomplete"]],contentQueries:function(v,d,M){if(1&v&&(e.Suo(M,ha,5),e.Suo(M,xs,5),e.Suo(M,ra,5),e.Suo(M,Jo,5),e.Suo(M,Ra,5),e.Suo(M,Qa,5)),2&v){let Y;e.iGM(Y=e.CRH())&&(d.template=Y.first),e.iGM(Y=e.CRH())&&(d.headerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.footerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.noDataTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.groupTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.fixedGroupTemplate=Y.first)}},viewQuery:function(v,d){if(1&v&&(e.Gf(ia,7,e.s_b),e.Gf(Ro,7),e.Gf(ua,7),e.Gf(Fa,5)),2&v){let M;e.iGM(M=e.CRH())&&(d.container=M.first),e.iGM(M=e.CRH())&&(d.popupTemplate=M.first),e.iGM(M=e.CRH())&&(d.searchbar=M.first),e.iGM(M=e.CRH())&&(d.optionsList=M.first)}},hostVars:7,hostBindings:function(v,d){2&v&&(e.uIk("dir",d.dir),e.ekj("k-widget",d.widgetClasses)("k-autocomplete",d.widgetClasses)("k-state-disabled",d.isDisabled))},inputs:{highlightFirst:"highlightFirst",focusableId:"focusableId",placeholder:"placeholder",listHeight:"listHeight",clearButton:"clearButton",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",filterable:"filterable",data:"data",value:"value",popupSettings:"popupSettings",itemDisabled:"itemDisabled",tabIndex:"tabIndex",virtual:"virtual",valueField:"valueField",loading:"loading",suggest:"suggest"},outputs:{valueChange:"valueChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoAutoComplete"],features:[e._Bn([ou,Ao,fo,Vo,Ur,ct.oQ,{provide:ct.mM,useValue:"kendo.autocomplete"},{provide:Zl,useExisting:(0,e.Gpc)(()=>Kl)},{provide:z.GX,useExisting:(0,e.Gpc)(()=>Kl)}]),e.TTD],decls:10,vars:15,consts:function(){let _,v;return _=$localize`:kendo.autocomplete.noDataText|The text displayed in the popup when there are no items␟4e9993e088a293543eb0c2801343518c115b6f20␟2690656529626907484:NO DATA FOUND`,v=$localize`:kendo.autocomplete.clearTitle|The title of the clear button␟7cf49cc2d50eebd29f8d61564512383caaaac7a6␟4821453594854847070:clear`,[["kendoAutoCompleteLocalizedMessages","","noDataText",_,"clearTitle",v],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"visibility","click","mousedown",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],[3,"ngIf"],["container",""],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"click","mousedown"],[1,"k-icon","k-i-loading"],[4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(v,d){1&v&&(e.GkF(0,0),e.TgZ(1,"kendo-searchbar",1,2),e.NdJ("onNavigate",function(Y){return d.handleNavigate(Y)})("valueChange",function(Y){return d.searchBarChange(Y)})("onBlur",function(){return d.handleBlur()})("onFocus",function(){return d.handleFocus()}),e.qZA(),e.YNc(3,jl,1,3,"span",3),e.YNc(4,dl,1,0,"span",4),e.YNc(5,Ua,5,14,"ng-template",null,5,e.W1O),e.YNc(7,Ou,1,0,"ng-template",6),e.GkF(8,null,7)),2&v&&(e.xp6(1),e.Q6J("role","combobox")("id",d.focusableId)("listId",d.listBoxId)("activeDescendant",d.activeDescendant)("noDataLabel",d.noDataLabel)("userInput",d.text)("suggestedText",d.suggestion)("disabled",d.disabled)("readonly",d.readonly)("tabIndex",d.tabIndex)("popupOpen",d.isOpen)("placeholder",d.placeholder),e.xp6(2),e.Q6J("ngIf",!d.loading&&!d.readonly&&d.clearButton&&(null==d.text?null:d.text.length)),e.xp6(1),e.Q6J("ngIf",d.loading),e.xp6(3),e.Q6J("ngIf",d.isOpen))},directives:function(){return[ma,ua,Ze.O5,Jl,Ml,z.NG]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Boolean)],zs.prototype,"highlightFirst",void 0),p([(0,e.IIB)(),r("design:type",String)],zs.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],zs.prototype,"data",null),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],zs.prototype,"value",null),p([(0,e.IIB)(),r("design:type",String)],zs.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",String)],zs.prototype,"placeholder",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],zs.prototype,"popupSettings",null),p([(0,e.IIB)(),r("design:type",Number)],zs.prototype,"listHeight",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],zs.prototype,"loading",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],zs.prototype,"clearButton",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],zs.prototype,"suggest",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],zs.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Function),r("design:paramtypes",[Function])],zs.prototype,"itemDisabled",null),p([(0,e.IIB)(),r("design:type",Boolean)],zs.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Number)],zs.prototype,"tabindex",void 0),p([(0,e.IIB)("tabIndex"),r("design:type",Number),r("design:paramtypes",[Number])],zs.prototype,"tabIndex",null),p([(0,e.IIB)(),r("design:type",Boolean)],zs.prototype,"filterable",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],zs.prototype,"virtual",null),p([(0,e.r_U)(),r("design:type",e.vpe)],zs.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],zs.prototype,"filterChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],zs.prototype,"open",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],zs.prototype,"opened",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],zs.prototype,"close",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],zs.prototype,"closed",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],zs.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],zs.prototype,"onBlur",void 0),p([(0,e.aQ5)(ha,{static:!1}),r("design:type",ha)],zs.prototype,"template",void 0),p([(0,e.aQ5)(xs,{static:!1}),r("design:type",xs)],zs.prototype,"headerTemplate",void 0),p([(0,e.aQ5)(ra,{static:!1}),r("design:type",ra)],zs.prototype,"footerTemplate",void 0),p([(0,e.aQ5)(Jo,{static:!1}),r("design:type",Jo)],zs.prototype,"noDataTemplate",void 0),p([(0,e.aQ5)(Ra,{static:!1}),r("design:type",Ra)],zs.prototype,"groupTemplate",void 0),p([(0,e.aQ5)(Qa,{static:!1}),r("design:type",Qa)],zs.prototype,"fixedGroupTemplate",void 0),p([(0,e.i9L)("container",{read:e.s_b,static:!0}),r("design:type",e.s_b)],zs.prototype,"container",void 0),p([(0,e.i9L)("popupTemplate",{static:!0}),r("design:type",e.Rgc)],zs.prototype,"popupTemplate",void 0),p([(0,e.i9L)(ua,{static:!0}),r("design:type",ua)],zs.prototype,"searchbar",void 0),p([(0,e.i9L)("optionsList",{static:!1}),r("design:type",Jl)],zs.prototype,"optionsList",void 0),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-autocomplete"),r("design:type",Boolean)],zs.prototype,"widgetClasses",void 0),p([(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],zs.prototype,"isDisabled",null),p([(0,e.pfw)("attr.dir"),r("design:type",Object),r("design:paramtypes",[])],zs.prototype,"dir",null),zs=Kl=p([K(10,(0,e.FiY)()),K(10,(0,e.tBr)(sl)),r("design:paramtypes",[ct.oQ,Ao,Te.qL,fo,Vo,Ur,e.R0b,e.sBO,e.Qsj,e.SBq,Boolean])],zs);const Pc_dataItems="Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",Pc_valueDepth="Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth";var Ld;const A0={multi:!0,provide:je.JU,useExisting:(0,e.Gpc)(()=>ys)};let ys=Ld=class{constructor(v,d,M,Y,Fe,Qt,gn,qn,Un,Xi,Pi){this.localization=v,this.popupService=d,this.selectionService=M,this.navigationService=Y,this.disabledItemsService=Fe,this.dataService=Qt,this.zone=gn,this.cdr=qn,this.renderer=Un,this.hostElement=Xi,this.touchEnabled=Pi,this.selected=[],this.focusableId=`k-${il()}`,this.allowCustom=!1,this.valueNormalizer=Hs=>Hs.pipe((0,Rt.U)(Co=>Co)),this.placeholder="",this.listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new e.vpe,this.selectionChange=new e.vpe,this.filterChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=il(),this.optionPrefix=il(),this.onChangeCallback=Hs=>{},this.onTouchedCallback=Hs=>{},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=Hs=>Hs.preventDefault(),this.customValueSubject=new Ve.x,this.valueSubject=new Ve.x,this.clearValueSubject=new Ve.x,this.subs=new He.w0,(0,rt.s)(Ed),this.direction=v.rtl?"rtl":"ltr",this.data=[]}set text(v){this._text=Bn(v)?v.toString():""}get text(){return this._text}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||this._toggle(v)}get activeDescendant(){if(!this.isOpen||!Bn(this.selectionService.focused)||-1===this.selectionService.focused)return null;const v=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(v?ts(v,this.valueField):"")}get noDataLabel(){if(0===this.data.length)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}set data(v){if(this.dataService.data=v||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){const M=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=M}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=ts(this.dataService.itemAt(0),this.textField))}get data(){const v=this.virtual;if(v){const d=v.skip||0,M=d+v.pageSize;return v.total=this.dataService.data.length,this.dataService.data.slice(d,M)}return this.dataService.data}set value(v){this._value=v,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set valuePrimitive(v){this._valuePrimitive=v}get valuePrimitive(){return Bn(this._valuePrimitive)?this._valuePrimitive:!Bn(this.valueField)}set popupSettings(v){this._popupSettings=Object.assign({animate:!0},v)}get popupSettings(){return this._popupSettings}set itemDisabled(v){if("function"!=typeof v)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(v)}.`);this.disabledItemsService.itemDisabled=v}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set virtual(v){this._virtualSettings=Bu(v,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}get virtual(){return this._virtualSettings}get clearable(){return this.clearButton}get dir(){return this.direction}get isFocused(){return this._isFocused}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=v}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get popupWidth(){let v=0;(0,z.X_)()&&(v=this.wrapper.nativeElement.offsetWidth);const d=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(d)?d:`${d}px`}}get popupHeight(){const v=this.popupSettings.height;return Bn(v)?`${v}px`:"auto"}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages()}createValueStream(){const v=this.valueSubject.pipe((0,Hn.h)(gn=>{const qn=ts(this.value,this.valueField),Un=ts(gn,this.valueField);let Xi=ts(gn,this.textField);return!(!Bn(this.value)&&!Bn(Un)||(Bn(Xi)&&(Xi=Xi.toString()),qn===Un&&this.text===Xi&&(this.clearFilter(),1)))}),(0,Rt.U)(gn=>{const qn=ts(gn,this.valueField);return{dataItem:gn,text:ts(gn,this.textField),value:this.valuePrimitive?qn:gn}})),d=function(_,v){return d=>[(0,Hn.h)(_,v)(d),(0,Hn.h)(ro(_,v))(d)]}(()=>this.allowCustom)(this.customValueSubject.pipe((0,ka.p)(300))),M=d[0].pipe((0,Yn.b)(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),(0,Hn.h)(()=>{const gn=this.text!==ts(this.value,this.valueField);return this.loading=gn,this.disabled=gn,gn||this.clearFilter(),gn}),this.valueNormalizer,(0,Rt.U)(gn=>({custom:!0,dataItem:gn,text:this.text,value:gn}))),Y=d[1].pipe((0,Rt.U)(()=>({custom:!0,dataItem:void 0,text:void 0,value:void 0}))),Fe=this.clearValueSubject.pipe((0,Rt.U)(()=>({dataItem:void 0,text:void 0,value:void 0})));this.valueSubscription&&this.valueSubscription.unsubscribe();const Qt=(0,g.T)(v,M,Y,Fe);this.valueSubscription=Qt.pipe((0,pn.K)(()=>{const gn=void 0!==ts(this.dataItem,this.valueField);return this.dataItem=void 0,this.value=void 0,this.text=void 0,this.loading=!1,this.disabled=!1,gn&&this.selectionChange.emit(void 0),this.emitValueChange(),this.createValueStream(),(0,X.of)(null)})).subscribe(gn=>{const qn=ts(this.dataItem,this.valueField)!==ts(gn.dataItem,this.valueField);this.dataItem=gn.dataItem,this.value=gn.value,this.text=gn.text,this.loading=!1,this.disabled=!1,this.clearFilter(),gn.custom&&(this.selectionService.focused=-1),qn&&this.selectionChange.emit(gn.custom?void 0:this.dataItem),this.emitValueChange()})}attachStreams(){!(0,z.X_)()||(this.subs.add(this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.setMessages()})),this.subs.add((0,g.T)(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe((0,Hn.h)(v=>Bn(v.index))).subscribe(v=>this.navigate(v.index))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe((0,Yn.b)(v=>{this.isOpen&&v.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add((0,g.T)(this.selectionService.onChange,this.selectionService.onSelect.pipe((0,Hn.h)(v=>!this.isOpen))).pipe((0,Yn.b)(v=>{this._filtering=!1,this.togglePopup(!1)}),(0,Rt.U)(v=>this.dataService.itemAt(v.indices[0]))).subscribe(v=>{this.change(v)})),this.subs.add(this.selectionService.onSelect.pipe((0,Hn.h)(v=>this.isOpen),(0,Yn.b)(v=>this._filtering=!1),(0,Rt.U)(v=>this.dataService.itemAt(v.indices[0]))).subscribe(v=>{const d=ts(v,this.valueField)!==ts(this.dataItem,this.valueField);this.updateState({dataItem:v}),d&&this.selectionChange.emit(v)})))}ngOnDestroy(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),Bn(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}ngOnChanges(v){const d=this.virtual;d&&v.data&&v.data.isFirstChange()&&this.pageChange({skip:0,take:d.pageSize}),(0,z.ln)("valueNormalizer",v)&&this.createValueStream(),(0,z.aG)(["textField","valueField","valuePrimitive"],v,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(v){const d=v>=0&&v{const d=Bn(v)?v:!this._open;this._toggle(d),this.cdr.markForCheck()})}get isOpen(){return this._open}reset(){this.value=void 0,this.clearState(),this.resetSelection()}isEmpty(){const v=!Bn(this.text)||Ch(this.text),d=!Bn(this.value)||Ch(this.value);return v&&d}clearValue(v){v.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1}writeValue(v){this.value=null===v?void 0:v}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}get buttonClasses(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"}onResize(){if(this.isOpen){const v=this.popupRef.popupElement,{min:d,max:M}=this.popupWidth;v.style.minWidth=d,v.style.width=M}}verifySettings(){if((0,e.X6Q)()){if(!0===this.valuePrimitive&&Bn(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!1===this.valuePrimitive&&Bn(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!Bn(this.valueField)!=!Bn(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data");if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error("Expected virtual.itemHeight of type number.")}}setState(){if(this._filtering)return;const v=this.value,M=this.findDataItem({valueField:this.valueField,value:v});Bn(M.index)&&-1!==M.index?(this.updateState({dataItem:M.dataItem,confirm:!0}),this.resetSelection(M.index)):Bn(v)&&this.allowCustom?(this.updateState({dataItem:v}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1))}updateState({dataItem:v,confirm:d=!1}){this.dataItem=v,this.text=ts(v,this.textField),d&&(this._previousDataItem=v)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(v){const d=!Bn(v)||v<0;this.selectionService.resetSelection(d?[]:[v]),this.selectionService.focused=v}firstFocusableIndex(v){const d=this.data.length-1;return this.disabledItemsService.isIndexDisabled(v)?v{let M=ts(d.value,this.textField);return M=Bn(M)?M.toString().toLowerCase():"",M.startsWith(v.toLowerCase())}:d=>{let M=ts(d,this.textField);return M=Bn(M)?M.toString().toLowerCase():"",M.startsWith(v.toLowerCase())}}findDataItem({valueField:v,value:d}){const M={dataItem:null,index:-1},Fe=this.dataService.findIndex(Qt=>ts(this.dataService.grouped?Qt.value:Qt,v)===ts(d,v));return M.dataItem=this.dataService.itemAt(Fe),M.index=Fe,M}search(v,d=0){let M;M=v.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(v),d):-1,this.disabledItemsService.isIndexDisabled(M)?M+1{Y&&(Bn(this.focusedItemText)&&this.focusedItemText.toLowerCase()===d.toLowerCase()||v?this.selectionService.change(this.selectionService.focused):this.change(d,!0)),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}handleEscape(){this.togglePopup(!1),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)}handleNavigationOpen(){this.restoreItemFocus(),this.togglePopup(!0)}searchBarChange(v){this.backspacePressed=v.length<(this.text?this.text.length:0),this.text=v,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==v?(this.filterText=v,this.filterChange.emit(v)):this.search(v)}handleFocus(){this.isFocused=!0,(0,z.g$)(this.onFocus)&&this.zone.run(()=>this.onFocus.emit())}pageChange(v){this.virtual.skip=v.skip}change(v,d=!1){d?this.customValueSubject.next(v):this.valueSubject.next(v)}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}selectClick(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}get listContainerClasses(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])}preventEventDefault(v){v.preventDefault()}get focusedItemText(){const v=this.selectionService.focused;if(!Bn(v)||-1===v)return null;const d=ts(this.dataService.itemAt(v),this.textField);return Bn(d)?d.toString():""}restoreItemFocus(){!(Bn(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}useSuggestion(){if(!this.suggest||!Bn(this.searchbar.value))return!1;const v=this.dataService.itemAt(this.selectionService.focused),d=ts(v,this.textField);return!!Bn(d)&&this.searchbar.value.toLowerCase()===d.toLowerCase()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){this.virtual&&(this.virtual.skip=0);const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:v,vertical:"bottom"},popupAlign:{horizontal:v,vertical:"top"}});const Y=this.popupRef.popupElement,{min:Fe,max:Qt}=this.popupWidth;Y.addEventListener("mousedown",this.popupMouseDownHandler),Y.style.minWidth=Fe,Y.style.width=Qt,Y.style.height=this.popupHeight,Y.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}_toggle(v){this._open=v,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(v){const d=new jo;return v?this.open.emit(d):this.close.emit(d),d.isDefaultPrevented()}clearFilter(){!this.filterable||!this.filterText||(this.filterText="",this.filterChange.emit(this.filterText))}setMessages(){this.zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}subscribeTouchEvents(){!(0,z.X_)()||!this.touchEnabled||this.zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{const M=Lu(this.hostElement,v.target,this.popupRef);this.isFocused&&!M?this.zone.run(()=>this.blur()):this.isOpen&&!M&&this.zone.run(()=>this.togglePopup(!1))}))}attachSelectClickHandler(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,it.d?"pointerdown":"click",this.selectClick.bind(this))}};ys.\u0275fac=function(v){return new(v||ys)(e.Y36(ct.oQ),e.Y36(Te.qL),e.Y36(fo),e.Y36(Vo),e.Y36(Ur),e.Y36(Ao),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(sl,8))},ys.\u0275cmp=e.Xpm({type:ys,selectors:[["kendo-combobox"]],contentQueries:function(v,d,M){if(1&v&&(e.Suo(M,ha,5),e.Suo(M,xs,5),e.Suo(M,ra,5),e.Suo(M,Jo,5),e.Suo(M,Ra,5),e.Suo(M,Qa,5)),2&v){let Y;e.iGM(Y=e.CRH())&&(d.template=Y.first),e.iGM(Y=e.CRH())&&(d.headerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.footerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.noDataTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.groupTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.fixedGroupTemplate=Y.first)}},viewQuery:function(v,d){if(1&v&&(e.Gf(ia,7,e.s_b),e.Gf(Ro,7),e.Gf(ua,7),e.Gf(Fa,5),e.Gf(ho,7),e.Gf(qc,7)),2&v){let M;e.iGM(M=e.CRH())&&(d.container=M.first),e.iGM(M=e.CRH())&&(d.popupTemplate=M.first),e.iGM(M=e.CRH())&&(d.searchbar=M.first),e.iGM(M=e.CRH())&&(d.optionsList=M.first),e.iGM(M=e.CRH())&&(d.wrapper=M.first),e.iGM(M=e.CRH())&&(d.select=M.first)}},hostVars:7,hostBindings:function(v,d){2&v&&(e.uIk("dir",d.dir),e.ekj("k-widget",d.widgetClasses)("k-combobox",d.widgetClasses)("k-combobox-clearable",d.clearable))},inputs:{focusableId:"focusableId",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer",placeholder:"placeholder",listHeight:"listHeight",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",filterable:"filterable",data:"data",value:"value",valuePrimitive:"valuePrimitive",popupSettings:"popupSettings",itemDisabled:"itemDisabled",tabIndex:"tabIndex",virtual:"virtual",loading:"loading",textField:"textField",valueField:"valueField",iconClass:"iconClass"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[e._Bn([A0,Ao,fo,Vo,Ur,ct.oQ,{provide:ct.mM,useValue:"kendo.combobox"},{provide:Zl,useExisting:(0,e.Gpc)(()=>Ld)},{provide:z.GX,useExisting:(0,e.Gpc)(()=>Ld)}]),e.TTD],decls:14,vars:21,consts:function(){let _,v;return _=$localize`:kendo.combobox.noDataText|The text displayed in the popup when there are no items␟2b6e00c74a6d9c98c03a6274d0224e9bd457ff89␟7708502966028483300:NO DATA FOUND`,v=$localize`:kendo.combobox.clearTitle|The title of the clear button␟069e8fae80677e3e785861123bef446b3ff41ab4␟2025597431468961462:clear`,[["kendoComboBoxLocalizedMessages","","noDataText",_,"clearTitle",v],["unselectable","on",1,"k-dropdown-wrap",3,"ngClass"],["wrapper",""],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["aria-hidden","true","unselectable","on",1,"k-select",3,"kendoEventsOutsideAngular"],["select",""],[1,"k-icon",3,"ngClass"],["popupTemplate",""],[3,"ngIf"],["container",""],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"kendoEventsOutsideAngular","click"],[4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(v,d){1&v&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e.TgZ(3,"kendo-searchbar",3,4),e.NdJ("onNavigate",function(Y){return d.handleNavigate(Y)})("valueChange",function(Y){return d.searchBarChange(Y)})("onBlur",function(){return d.handleBlur()})("onFocus",function(){return d.handleFocus()}),e.qZA(),e.YNc(5,Fl,1,6,"span",5),e.TgZ(6,"span",6,7),e._UZ(8,"span",8),e.qZA(),e.YNc(9,xd,5,14,"ng-template",null,9,e.W1O),e.qZA(),e.YNc(11,ul,1,0,"ng-template",10),e.GkF(12,null,11)),2&v&&(e.xp6(1),e.Q6J("ngClass",e.VKq(17,Xc,d.disabled)),e.xp6(2),e.Q6J("role","combobox")("id",d.focusableId)("listId",d.listBoxId)("activeDescendant",d.activeDescendant)("noDataLabel",d.noDataLabel)("userInput",d.text)("suggestedText",d.getSuggestion())("disabled",d.disabled)("readonly",d.readonly)("tabIndex",d.tabIndex)("popupOpen",d.isOpen)("placeholder",d.placeholder),e.xp6(2),e.Q6J("ngIf",d.clearButton&&!d.loading&&!d.disabled&&!d.readonly&&(null==d.text?null:d.text.length)),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.VKq(19,ca,d.preventEventDefault)),e.xp6(2),e.Q6J("ngClass",d.buttonClasses),e.xp6(3),e.Q6J("ngIf",d.isOpen))},directives:function(){return[ma,Ze.mk,ua,Ze.O5,z.nV,Jl,Ml,z.NG]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],ys.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ys.prototype,"allowCustom",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ys.prototype,"data",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ys.prototype,"value",null),p([(0,e.IIB)(),r("design:type",String)],ys.prototype,"textField",void 0),p([(0,e.IIB)(),r("design:type",String)],ys.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],ys.prototype,"valuePrimitive",null),p([(0,e.IIB)(),r("design:type",Function)],ys.prototype,"valueNormalizer",void 0),p([(0,e.IIB)(),r("design:type",String)],ys.prototype,"placeholder",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ys.prototype,"popupSettings",null),p([(0,e.IIB)(),r("design:type",Number)],ys.prototype,"listHeight",void 0),p([(0,e.IIB)(),r("design:type",String)],ys.prototype,"iconClass",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ys.prototype,"loading",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ys.prototype,"suggest",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ys.prototype,"clearButton",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ys.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Function),r("design:paramtypes",[Function])],ys.prototype,"itemDisabled",null),p([(0,e.IIB)(),r("design:type",Boolean)],ys.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Number)],ys.prototype,"tabindex",void 0),p([(0,e.IIB)("tabIndex"),r("design:type",Number),r("design:paramtypes",[Number])],ys.prototype,"tabIndex",null),p([(0,e.IIB)(),r("design:type",Boolean)],ys.prototype,"filterable",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ys.prototype,"virtual",null),p([(0,e.r_U)(),r("design:type",e.vpe)],ys.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ys.prototype,"selectionChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ys.prototype,"filterChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ys.prototype,"open",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ys.prototype,"opened",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ys.prototype,"close",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ys.prototype,"closed",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],ys.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],ys.prototype,"onBlur",void 0),p([(0,e.aQ5)(ha,{static:!1}),r("design:type",ha)],ys.prototype,"template",void 0),p([(0,e.aQ5)(xs,{static:!1}),r("design:type",xs)],ys.prototype,"headerTemplate",void 0),p([(0,e.aQ5)(ra,{static:!1}),r("design:type",ra)],ys.prototype,"footerTemplate",void 0),p([(0,e.aQ5)(Jo,{static:!1}),r("design:type",Jo)],ys.prototype,"noDataTemplate",void 0),p([(0,e.aQ5)(Ra,{static:!1}),r("design:type",Ra)],ys.prototype,"groupTemplate",void 0),p([(0,e.aQ5)(Qa,{static:!1}),r("design:type",Qa)],ys.prototype,"fixedGroupTemplate",void 0),p([(0,e.i9L)("container",{read:e.s_b,static:!0}),r("design:type",e.s_b)],ys.prototype,"container",void 0),p([(0,e.i9L)("popupTemplate",{static:!0}),r("design:type",e.Rgc)],ys.prototype,"popupTemplate",void 0),p([(0,e.i9L)(ua,{static:!0}),r("design:type",ua)],ys.prototype,"searchbar",void 0),p([(0,e.i9L)("optionsList",{static:!1}),r("design:type",Jl)],ys.prototype,"optionsList",void 0),p([(0,e.i9L)("wrapper",{static:!0}),r("design:type",e.SBq)],ys.prototype,"wrapper",void 0),p([(0,e.i9L)("select",{static:!0}),r("design:type",e.SBq)],ys.prototype,"select",void 0),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-combobox"),r("design:type",Boolean)],ys.prototype,"widgetClasses",void 0),p([(0,e.pfw)("class.k-combobox-clearable"),r("design:type",Boolean),r("design:paramtypes",[])],ys.prototype,"clearable",null),p([(0,e.pfw)("attr.dir"),r("design:type",Object),r("design:paramtypes",[])],ys.prototype,"dir",null),ys=Ld=p([K(10,(0,e.FiY)()),K(10,(0,e.tBr)(sl)),r("design:paramtypes",[ct.oQ,Te.qL,fo,Vo,Ur,Ao,e.R0b,e.sBO,e.Qsj,e.SBq,Boolean])],ys);let pc=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})();var mp;const O0={multi:!0,provide:je.JU,useExisting:(0,e.Gpc)(()=>tr)};let tr=mp=class{constructor(v,d,M,Y,Fe,Qt,gn,qn,Un,Xi,Pi){this.localization=v,this.popupService=d,this.selectionService=M,this.navigationService=Y,this.disabledItemsService=Fe,this.dataService=Qt,this._zone=gn,this.renderer=qn,this.hostElement=Un,this.cdr=Xi,this.touchEnabled=Pi,this.focusableId=`k-${il()}`,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new e.vpe,this.filterChange=new e.vpe,this.selectionChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.widgetClasses=!0,this.groupIndices=[],this.listBoxId=il(),this.optionPrefix=il(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=Hs=>{},this.onChangeCallback=Hs=>{},this.word="",this.last="",this.filterFocused=new e.vpe,this.filterBlurred=new e.vpe,this.wrapperFocused=new e.vpe,this.wrapperBlurred=new e.vpe,this.selectionSubscription=new He.w0,this._open=!1,this._popupSettings={animate:!0},(0,rt.s)(Ed),this.direction=v.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}get width(){const v=(0,z.X_)()?this.wrapper.nativeElement.offsetWidth:0,d=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(d)?d:`${d}px`}}get height(){const v=this.popupSettings.height;return Bn(v)?`${v}px`:"auto"}get widgetTabIndex(){if(this.disabled)return;const v=Number(this.tabIndex);return isNaN(v)?0:v}get ariaExpanded(){return this.isOpen}get ariaOwns(){if(this.isOpen)return this.listBoxId}get ariaActivedescendant(){if(Bn(this.dataItem))return this.optionPrefix+"-"+ts(this.dataItem,this.valueField)}get noDataLabel(){if(0===this.dataService.itemsCount)return this.noDataText}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}set data(v){this.dataService.data=v||[],this.virtual&&(this.virtual.skip=0),this.setState()}get data(){const v=this.virtual;if(v){const d=v.skip||0,M=d+v.pageSize;return v.total=this.dataService.data.length,this.dataService.data.slice(d,M)}return this.dataService.data}set value(v){Bn(v)||(this._previousDataItem=void 0),this._value=v,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set popupSettings(v){this._popupSettings=Object.assign({animate:!0},v)}get popupSettings(){return this._popupSettings}set itemDisabled(v){if("function"!=typeof v)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(v)}.`);this.disabledItemsService.itemDisabled=v}set virtual(v){this._virtualSettings=Bu(v)}get virtual(){return this._virtualSettings}set valuePrimitive(v){this._valuePrimitive=v}get valuePrimitive(){return Bn(this._valuePrimitive)?this._valuePrimitive:!Bn(this.valueField)}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}blurComponent(){this.wrapperBlurred.emit()}blurFilterInput(){this.filterBlurred.emit()}focusComponent(){this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,(0,z.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}keydown(v){const d=Bn(this.defaultItem)?-1:0;let M=isNaN(this.selectionService.focused)?this.firstFocusableIndex(d):this.selectionService.focused,Y=0;if(this.disabled||this.readonly)return;if(this.filterable&&this.isFocused&&this.isOpen&&(v.keyCode===z.R8.Home||v.keyCode===z.R8.End))return;const gn=Bn(this.selectionService.selected[0]),qn=Bn(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!gn||qn)&&(v.keyCode===z.R8.ArrowDown||v.keyCode===z.R8.ArrowRight?Y=-1:(v.keyCode===z.R8.ArrowUp||v.keyCode===z.R8.ArrowLeft)&&(Y=1));const Un=v,Xi=this.navigationService.process({current:M+Y,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:Un});Xi!==Ys.Undefined&&Xi!==Ys.Tab&&Xi!==Ys.Backspace&&Xi!==Ys.Delete&&(Xi!==Ys.Left&&Xi!==Ys.Right||!this.filterable)&&Xi!==Ys.Enter&&Un.preventDefault()}keypress(v){this.disabled||this.readonly||this.filterable||this.onKeyPress(v)}click(v){v.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)}onResize(){if(this._open){const v=this.popupRef.popupElement,{min:d,max:M}=this.width;v.style.minWidth=d,v.style.width=M}}get dir(){return this.direction}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=v}get isFocused(){return this._isFocused}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.setMessages()}),this.setMessages(),this.assignAriaDescribedBy()}isEmpty(){const v=this.value;return!(0===v||!1===v||v||this.defaultItem)}onFilterFocus(){this.filterFocused.emit()}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()}ngOnChanges(v){const d=this.virtual;d&&v.data&&v.data.isFirstChange()&&this.pageChange({skip:0,take:d.pageSize}),(0,z.ln)("defaultItem",v,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),(0,z.aG)(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],v,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(v){const M=(Bn(this.defaultItem)?-1:0)<=v&&v{const d=Bn(v)?v:!this._open;this._toggle(d)})}_toggle(v){this._open=v,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(v){const d=new jo;return v?this.open.emit(d):this.close.emit(d),d.isDefaultPrevented()}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||(!v&&this.filterable&&this.isFocused&&this.focus(),this._toggle(v))}get isOpen(){return this._open}reset(){this.value=void 0}writeValue(v){this.value=null===v?void 0:v}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}get buttonClasses(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"}get listContainerClasses(){const v=["k-list-container","k-reset"];return this.popupSettings.popupClass&&v.push(this.popupSettings.popupClass),v}get isDisabledDefaultItem(){return this.disabledItemsService.isItemDisabled(this.defaultItem)}getText(){return this.text}getDefaultItemText(){return ts(this.defaultItem,this.textField)}createPopup(){this.virtual&&(this.virtual.skip=0);const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:v,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:v,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const Y=this.popupRef.popupElement,{min:Fe,max:Qt}=this.width;Y.addEventListener("mousedown",this.popupMouseDownHandler),Y.style.minWidth=Fe,Y.style.width=Qt,Y.style.height=this.height,Y.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}updateState({dataItem:v,confirm:d=!1}){this.dataItem=v,this.text=ts(v,this.textField),d&&(this._previousDataItem=v)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(v){const d=!Bn(v);this.selectionService.resetSelection(d?[]:[v]),this.selectionService.focused=d?this.firstFocusableIndex(0):v}onSelectionChange({dataItem:v}){this.updateState({dataItem:v}),this.selectionChange.emit(v),this.assignAriaDescribedBy()}subscribeEvents(){!(0,z.X_)()||(this.selectionSubscription.add(this.selectionService.onSelect.pipe((0,Hn.h)(v=>this.isOpen),(0,Rt.U)(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add((0,g.T)(this.selectionService.onSelect.pipe((0,Hn.h)(v=>!this.isOpen)),this.selectionService.onChange).pipe((0,Rt.U)(this.itemFromEvent.bind(this)),(0,Yn.b)(v=>this.togglePopup(!1))).subscribe(({dataItem:v,value:d,newSelection:M})=>{M&&this.onSelectionChange({dataItem:v});const Y=!Bn(v)&&this._previousDataItem,Fe=d!==ts(this.value,this.valueField);Y?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):Fe&&(this.value=this.valuePrimitive?d:v,this._previousDataItem=v,this.emitChange(this.value)),this.clearFilter()})),this.navigationSubscription=(0,g.T)(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(yl(()=>this.filterable)),this.navigationService.right.pipe(yl(()=>this.filterable)),this.navigationService.home,this.navigationService.end).pipe((0,Hn.h)(v=>!isNaN(v.index))).subscribe(v=>this.selectionService.select(v.index)),this.openSubscription=this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.closeSubscription=this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()}),this.enterSubscription=this.navigationService.enter.pipe((0,Yn.b)(v=>v.originalEvent.preventDefault())).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe((0,na.b)(()=>(0,Le.F)(10).pipe((0,Gt.q)(1),(0,F.R)(this.wrapperFocused)))).subscribe(()=>{this.wrapperBlurred.emit()}),this._zone.runOutsideAngular(()=>{this.componentBlurredSubscription=(0,g.T)(this.wrapperBlurred.pipe((0,na.b)(()=>(0,Le.F)(10).pipe((0,Gt.q)(1),(0,F.R)(this.filterFocused)))),this.navigationService.tab).pipe((0,Yn.b)(v=>v instanceof Fd&&this.focus()),(0,Hn.h)(()=>this.isFocused)).subscribe(()=>this.componentBlur())}))}subscribeTouchEvents(){!(0,z.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{this.isFocused&&!Lu(this.hostElement,v.target,this.popupRef)&&this._zone.run(()=>{this.filterFocused&&this.togglePopup(!1),this.blur()})}))}unsubscribeEvents(){!(0,z.X_)()||(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())}itemFromEvent(v){const d=v.indices[0];let M=this.dataService.itemAt(d);M=Bn(M)?M:this.currentOrDefault(d);const Y=ts(M,this.valueField);return{dataItem:M,index:d,newSelection:v.newSelection,value:Y}}currentOrDefault(v){return Bn(this.dataItem)&&-1!==v?this.dataItem:this.defaultItem}firstFocusableIndex(v){const d=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(v)?v{d&&this.selectionService.change(this.selectionService.selected[0]),this.togglePopup(!1),this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1)}onMouseDown(v){"input"!==v.target.tagName.toLowerCase()&&v.preventDefault()}onKeyPress(v){if(0===v.which||v.keyCode===z.R8.Enter)return;let d=String.fromCharCode(v.charCode||v.keyCode);this.ignoreCase&&(d=d.toLowerCase())," "===d&&v.preventDefault(),this.word+=d,this.last=d,this.search()}search(){clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(()=>{this.word=""},this.delay),this.selectNext())}selectNext(){let v=this.dataService.filter(Un=>Bn(Un)&&!Un.header&&!this.disabledItemsService.isItemDisabled(Un)).map(Un=>this.dataService.grouped?{item:Un.value,itemIndex:Un.offsetIndex}:{item:Un,itemIndex:this.dataService.indexOf(Un)});const d=((_,v)=>{for(let d=0;d<_.length;d++)if(_.charAt(d)!==v)return!1;return!0})(this.word,this.last);let Qt,gn,qn,M=v.length,Y=!isNaN(this.selectionService.selected[0]),Fe=Y?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(qn={item:this.defaultItem,itemIndex:-1},M+=1,Fe+=1),Fe+=d&&Y?1:0,v=((_,v,d)=>{let M=_;return d&&(M=[d].concat(M)),M.slice(v).concat(M.slice(0,v))})(v,Fe,qn),gn=0;gnts(gn,v);let Fe;Fe=this.dataService.grouped?gn=>Y(gn.value)===Y(d):gn=>Y(gn)===Y(d);const Qt=this.dataService.findIndex(Fe);return M.dataItem=this.dataService.itemAt(Qt),M.index=Qt,M}setState(){const v=this.value,d=this.valueField,M=this.textField,Y=this.valuePrimitive;if(this.defaultItem){const gn=ts(this.defaultItem,d),qn=ts(v,d);if(!Bn(v)||qn===gn)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}const Fe=this.findDataItem({valueField:d,value:v}),Qt=!(Y&&M);Fe.dataItem?(this.updateState({dataItem:Fe.dataItem,confirm:!0}),this.resetSelection(Fe.index)):Bn(v)&&Qt?(this.updateState({dataItem:v}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())}handleFilter(v){this.filterChange.emit(v.target.value)}pageChange(v){this.virtual.skip=v.skip}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}assignAriaDescribedBy(){const d=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=il();const M=`${this.valueLabelId} ${d}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",M)}};tr.\u0275fac=function(v){return new(v||tr)(e.Y36(ct.oQ),e.Y36(Te.qL),e.Y36(fo),e.Y36(Vo),e.Y36(Ur),e.Y36(Ao),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(sl,8))},tr.\u0275cmp=e.Xpm({type:tr,selectors:[["kendo-dropdownlist"]],contentQueries:function(v,d,M){if(1&v&&(e.Suo(M,ha,5),e.Suo(M,Ra,5),e.Suo(M,Qa,5),e.Suo(M,pc,5),e.Suo(M,xs,5),e.Suo(M,ra,5),e.Suo(M,Jo,5)),2&v){let Y;e.iGM(Y=e.CRH())&&(d.itemTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.groupTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.fixedGroupTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.valueTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.headerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.footerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.noDataTemplate=Y.first)}},viewQuery:function(v,d){if(1&v&&(e.Gf(ia,7,e.s_b),e.Gf(Ro,7),e.Gf(ho,7),e.Gf(Fa,5)),2&v){let M;e.iGM(M=e.CRH())&&(d.container=M.first),e.iGM(M=e.CRH())&&(d.popupTemplate=M.first),e.iGM(M=e.CRH())&&(d.wrapper=M.first),e.iGM(M=e.CRH())&&(d.optionsList=M.first)}},hostVars:5,hostBindings:function(v,d){2&v&&(e.uIk("dir",d.dir),e.ekj("k-widget",d.widgetClasses)("k-dropdown",d.widgetClasses))},inputs:{focusableId:"focusableId",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",filterable:"filterable",ignoreCase:"ignoreCase",delay:"delay",tabindex:"tabindex",data:"data",value:"value",popupSettings:"popupSettings",itemDisabled:"itemDisabled",virtual:"virtual",valuePrimitive:"valuePrimitive",tabIndex:"tabIndex",iconClass:"iconClass",loading:"loading",textField:"textField",valueField:"valueField",defaultItem:"defaultItem"},outputs:{valueChange:"valueChange",filterChange:"filterChange",selectionChange:"selectionChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoDropDownList"],features:[e._Bn([O0,Ao,fo,Vo,Ur,ct.oQ,{provide:ct.mM,useValue:"kendo.dropdownlist"},{provide:Zl,useExisting:(0,e.Gpc)(()=>mp)},{provide:z.GX,useExisting:(0,e.Gpc)(()=>mp)}]),e.TTD],decls:13,vars:23,consts:function(){let _;return _=$localize`:kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items␟4fc2f70c9c8cf7b18affd6b938105996d6ac3306␟8289552890585138350:NO DATA FOUND`,[["kendoDropDownListLocalizedMessages","","noDataText",_],["unselectable","on","role","listbox","aria-haspopup","listbox",3,"id","ngClass","kendoEventsOutsideAngular","scope","keydown","keypress","click"],["wrapper",""],["unselectable","on",1,"k-input",3,"id"],[4,"ngIf"],[3,"ngIf"],["unselectable","on",1,"k-select"],["unselectable","on",1,"k-icon",3,"ngClass"],["popupTemplate",""],["container",""],[3,"templateContext"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[1,"k-list-filter",3,"click"],["tabindex","-1",1,"k-textbox",3,"filterInput","dir","ngModel","ngModelChange","keydown","input","focus","blur"],["unselectable","on",1,"k-icon","k-i-search"],["kendoDropDownsSelectable","",1,"k-list-optionlabel",3,"ngClass","index"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(v,d){1&v&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e.NdJ("keydown",function(Y){return d.keydown(Y)})("keypress",function(Y){return d.keypress(Y)})("click",function(Y){return d.click(Y)}),e.TgZ(3,"span",3),e.YNc(4,$l,1,4,void 0,4),e.YNc(5,Dc,1,1,"ng-template",5),e.qZA(),e.TgZ(6,"span",6),e._UZ(7,"span",7),e.qZA(),e.YNc(8,uh,8,17,"ng-template",null,8,e.W1O),e.qZA(),e.YNc(10,Ru,1,0,"ng-template",5),e.GkF(11,null,9)),2&v&&(e.xp6(1),e.Q6J("id",d.focusableId)("ngClass",e.VKq(18,Ma,d.disabled))("kendoEventsOutsideAngular",e.WLB(20,Aa,d.focusComponent,d.blurComponent))("scope",d),e.uIk("dir",d.direction)("readonly",d.readonly)("tabindex",d.widgetTabIndex)("aria-disabled",d.disabled)("aria-readonly",d.readonly)("aria-expanded",d.ariaExpanded)("aria-owns",d.ariaOwns)("aria-activedescendant",d.ariaActivedescendant)("aria-label",d.noDataLabel),e.xp6(2),e.Q6J("id",d.valueLabelId),e.xp6(1),e.Q6J("ngIf",d.valueTemplate),e.xp6(1),e.Q6J("ngIf",!d.valueTemplate),e.xp6(2),e.Q6J("ngClass",d.buttonClasses),e.xp6(3),e.Q6J("ngIf",d.isOpen))},directives:function(){return[ma,Ze.mk,z.nV,Ze.O5,Ml,Jl,je.Fj,Th,je.JJ,je.On,zd,z.NG]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],tr.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",String)],tr.prototype,"iconClass",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],tr.prototype,"loading",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],tr.prototype,"data",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],tr.prototype,"value",null),p([(0,e.IIB)(),r("design:type",String)],tr.prototype,"textField",void 0),p([(0,e.IIB)(),r("design:type",String)],tr.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],tr.prototype,"popupSettings",null),p([(0,e.IIB)(),r("design:type",Number)],tr.prototype,"listHeight",void 0),p([(0,e.IIB)(),r("design:type",Object)],tr.prototype,"defaultItem",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],tr.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Function),r("design:paramtypes",[Function])],tr.prototype,"itemDisabled",null),p([(0,e.IIB)(),r("design:type",Boolean)],tr.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],tr.prototype,"filterable",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],tr.prototype,"virtual",null),p([(0,e.IIB)(),r("design:type",Boolean)],tr.prototype,"ignoreCase",void 0),p([(0,e.IIB)(),r("design:type",Number)],tr.prototype,"delay",void 0),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],tr.prototype,"valuePrimitive",null),p([(0,e.IIB)(),r("design:type",Number)],tr.prototype,"tabindex",void 0),p([(0,e.IIB)("tabIndex"),r("design:type",Number),r("design:paramtypes",[Number])],tr.prototype,"tabIndex",null),p([(0,e.r_U)(),r("design:type",e.vpe)],tr.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],tr.prototype,"filterChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],tr.prototype,"selectionChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],tr.prototype,"open",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],tr.prototype,"opened",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],tr.prototype,"close",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],tr.prototype,"closed",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],tr.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],tr.prototype,"onBlur",void 0),p([(0,e.aQ5)(ha,{static:!1}),r("design:type",ha)],tr.prototype,"itemTemplate",void 0),p([(0,e.aQ5)(Ra,{static:!1}),r("design:type",Ra)],tr.prototype,"groupTemplate",void 0),p([(0,e.aQ5)(Qa,{static:!1}),r("design:type",Qa)],tr.prototype,"fixedGroupTemplate",void 0),p([(0,e.aQ5)(pc,{static:!1}),r("design:type",pc)],tr.prototype,"valueTemplate",void 0),p([(0,e.aQ5)(xs,{static:!1}),r("design:type",xs)],tr.prototype,"headerTemplate",void 0),p([(0,e.aQ5)(ra,{static:!1}),r("design:type",ra)],tr.prototype,"footerTemplate",void 0),p([(0,e.aQ5)(Jo,{static:!1}),r("design:type",Jo)],tr.prototype,"noDataTemplate",void 0),p([(0,e.i9L)("container",{read:e.s_b,static:!0}),r("design:type",e.s_b)],tr.prototype,"container",void 0),p([(0,e.i9L)("popupTemplate",{static:!0}),r("design:type",e.Rgc)],tr.prototype,"popupTemplate",void 0),p([(0,e.i9L)("wrapper",{static:!0}),r("design:type",e.SBq)],tr.prototype,"wrapper",void 0),p([(0,e.i9L)("optionsList",{static:!1}),r("design:type",Jl)],tr.prototype,"optionsList",void 0),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-dropdown"),r("design:type",Boolean)],tr.prototype,"widgetClasses",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String),r("design:paramtypes",[])],tr.prototype,"dir",null),tr=mp=p([K(10,(0,e.FiY)()),K(10,(0,e.tBr)(sl)),r("design:paramtypes",[ct.oQ,Te.qL,fo,Vo,Ur,Ao,e.R0b,e.Qsj,e.SBq,e.sBO,Boolean])],tr);let vp=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoMultiSelectCustomItemTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),pa=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoMultiSelectTagTemplate",""],["","kendoMultiSelectTreeTagTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),fc=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoMultiSelectGroupTagTemplate",""],["","kendoMultiSelectTreeGroupTagTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})();class _p extends jo{constructor(v){super(),this.dataItem=v}}var lu;const R0={multi:!0,provide:je.JU,useExisting:(0,e.Gpc)(()=>Rs)};let Rs=lu=class{constructor(v,d,M,Y,Fe,Qt,gn,qn,Un,Xi,Pi,Hs){this.localization=v,this.popupService=d,this.dataService=M,this.selectionService=Y,this.navigationService=Fe,this.disabledItemsService=Qt,this.cdr=gn,this.differs=qn,this.renderer=Un,this.hostElement=Xi,this._zone=Pi,this.touchEnabled=Hs,this.listBoxId=il(),this.tagListId=il(),this.tagPrefix="tag-"+il(),this.optionPrefix="option-"+il(),this.focusedTagIndex=void 0,this.focusableId=`k-${il()}`,this.autoClose=!0,this.tabindex=0,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.listHeight=200,this.clearButton=!0,this.tagMapper=Co=>Co||[],this.allowCustom=!1,this.valueNormalizer=Co=>Co.pipe((0,Rt.U)(Pl=>{const fu=xf=>"string"==typeof xf&&Pl.toLowerCase()===xf.toLowerCase(),Sf=this.value.find(fu);return Sf||(this.dataService.find(fu)||Pl)})),this.filterChange=new e.vpe,this.valueChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.removeTag=new e.vpe,this.widgetClasses=!0,this.initialized=!1,this.onChangeCallback=Co=>{},this.onTouchedCallback=Co=>{},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new Ve.x,this.observableSubscriptions=new He.w0,(0,rt.s)(Ed),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}focusItemAt(v){const M=(this.allowCustom?-1:0)<=0&&v{this.onFocus.emit()}))}blur(){this.disabled||this.searchbar.blur()}onSearchBarBlur(){!this.isFocused||(this.isFocused=!1,(0,z.g$)(this.onBlur)||(0,z.g$)(this.filterChange)||(0,z.g$)(this.close)||is(this.hostElement.nativeElement)?this._zone.run(()=>{this.closePopup(),this.isOpen&&this.allowCustom||this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))}wrapperMousedown(v){if(0===v.button){if(this.isFocused&&this.isOpen&&v.target===this.searchbar.input.nativeElement)return;(!this.touchEnabled||this.touchEnabled&&"SPAN"!==v.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),v.preventDefault()}}onMouseDown(v){v.preventDefault()}onResize(){if(this._open){const v=this.popupRef.popupElement,{min:d,max:M}=this.width;v.style.minWidth=d,v.style.width=M}}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}set data(v){this.dataService.data=v||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)}get data(){const v=this.virtual;if(v){const d=v.skip||0,M=d+v.pageSize;return v.total=this.dataService.data.length,this.dataService.data.slice(d,M)}return this.dataService.data}set value(v){this._value=v||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)}get value(){return this._value}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set placeholder(v){this._placeholder=v||""}get placeholder(){return this.selectedDataItems.length?"":this._placeholder}set itemDisabled(v){if("function"!=typeof v)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(v)}.`);this.disabledItemsService.itemDisabled=v}set checkboxes(v){var _;this._checkboxes=Ad(_=v)?Object.assign({},{enabled:!0,checkOnClick:!0},_):{enabled:Boolean(_),checkOnClick:!0}}get checkboxes(){return this._checkboxes}set virtual(v){this._virtualSettings=Bu(v)}get virtual(){return this._virtualSettings}set popupSettings(v){this._popupSettings=Object.assign({animate:!0},v)}get popupSettings(){return this._popupSettings}set valuePrimitive(v){this._valuePrimitive=v}get valuePrimitive(){return Bn(this._valuePrimitive)?this._valuePrimitive:!Bn(this.valueField)}get dir(){return this.direction}get disabledClass(){return this.disabled}get listContainerClasses(){const v=["k-list-container","k-reset"];return this.popupSettings.popupClass&&v.push(this.popupSettings.popupClass),v}get width(){let v=0;(0,z.X_)()&&(v=this.wrapper.nativeElement.offsetWidth);const d=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(d)?d:`${d}px`}}get height(){const v=this.popupSettings.height;return Bn(v)?`${v}px`:"auto"}get activeDescendant(){const v=this.focusedTagIndex,d=this.selectionService.focused;let M,Y;if(Bn(v)&&!this.isOpen)Y=this.tags[v],M=this.tagPrefix;else{if(!Bn(d)||-1===d||!this.isOpen)return null;Y=this.dataService.itemAt(d),M=this.optionPrefix}return M+"-"+ts(Y,this.valueField)}get noDataLabel(){if(0===this.dataService.itemsCount)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}verifySettings(){if((0,e.X6Q)()&&0!==this.value.length){if(!Ia(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!0===this.valuePrimitive&&Od(this.value))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!1===this.valuePrimitive&&!Od(this.value))throw new Error("Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!Bn(this.valueField)!=!Bn(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data")}}change(v){if(!Bn(v.added)&&!Bn(v.removed)||-1!==v.added&&-1!==v.removed){if(Bn(v.added)){const M=this.dataService.itemAt(v.added),Y=this.valuePrimitive&&Bn(M)&&Bn(M[this.valueField])?M[this.valueField]:M;this.value=[...this.value,Y]}if(Bn(v.removed)){const M=this.dataService.itemAt(v.removed);this.value=this.value.filter(Fe=>ts(Fe,this.valueField)!==ts(M,this.valueField)),this.selectionService.focused=v.removed,this.cdr.detectChanges()}this.emitValueChange()}else this.addCustomValue(this.text)}setState(v){let d=this.dataService.data;this.dataService.grouped&&(d=d.filter(Y=>!Y.header).map(Y=>Y.value));const M=up(this.value,d,this.valueField);this.selectionService.resetSelection(M),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=v.slice()),(Od(v)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=((_,v,d)=>{const M=((_,v)=>Ia(_)&&_.filter(d=>Ad(d)&&Bn(ts(d,v))))(_,d)||[];return(((_,v=[],d)=>_.map(M=>v.find(Y=>ts(Y,d)===M)).filter(M=>void 0!==M))(_,v,d)||[]).concat(M)})(v,d,this.valueField)),this.selectedDataItems.length{const Fe=this.selectedDataItems.find(Qt=>ts(Qt,this.valueField)===ts(Y,this.valueField));return Bn(Fe)?Fe:this.resolveDataItemFromTags(Y)}).filter(Y=>Bn(Y))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()}handleFilter(v){this.text=v,v&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(v):this.searchTextAndFocus(v),this.searchbar.setInputSize()}pageChange(v){this.virtual.skip=v.skip}clearFilter(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()}handleNavigate(v){const d=this.text&&v.keyCode!==z.R8.ArrowDown&&v.keyCode!==z.R8.ArrowUp,M=this.text&&v.keyCode===z.R8.Enter||v.keyCode===z.R8.Escape;if(!this.text&&v.keyCode===z.R8.Backspace&&this.tags.length>0)return void this.handleBackspace();if(this.disabled||d&&!M)return;const Fe=v,Qt=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,gn=this.navigationService.process({current:Qt,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:Fe});gn!==Ys.Undefined&&(gn===Ys.Enter&&this.isOpen||gn!==Ys.Enter)&&v.preventDefault()}handleRemoveTag({tag:v}){const d=new _p(v);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(d),!d.isDefaultPrevented()&&(v instanceof Array?this.removeGroupTag(v):this.removeSingleTag(v),this.cdr.detectChanges()))}clearAll(v){v.stopImmediatePropagation(),v.preventDefault(),this.focus(),this.clearFilter();const d=this.selectionService.selected;this.value=this.value.filter((M,Y)=>this.disabledItemsService.isIndexDisabled(d[Y])),this.emitValueChange()}addCustomValue(v){this.customValueSubject.next(v)}ngAfterContentChecked(){this.verifySettings()}ngDoCheck(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.setMessages()}),this.setMessages(),this.setState(this.value),this.initialized=!0}ngOnChanges(v){const d=this.virtual;d&&v.data&&v.data.isFirstChange()&&this.pageChange({skip:0,take:d.pageSize}),(0,z.ln)("valueNormalizer",v)&&this.createCustomValueStream(),(0,z.aG)(["textField","valueField","valuePrimitive"],v)&&this.setState(this.value)}ngAfterViewInit(){this.searchbar.setInputSize()}ngOnDestroy(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout)}toggle(v){Promise.resolve(null).then(()=>{const d=Bn(v)?v:!this._open;this._toggle(d),this.cdr.markForCheck()})}get isOpen(){return this._open}reset(){this.text="",this.value=[]}writeValue(v){this.value=v||[]}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}onTagMapperChange(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=v}get isFocused(){return this._isFocused}subscribeEvents(){if(!(0,z.X_)())return;const v=()=>this.isOpen,d=()=>!this.isOpen,M=()=>!this.isOpen&&void 0!==this.focusedTagIndex;[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe((0,Hn.h)(v)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe((0,Hn.h)(v)).subscribe(Y=>this.handleUp(Y.index)),this.navigationService.home.pipe((0,Hn.h)(()=>d)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe((0,Hn.h)(()=>d)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe((0,Hn.h)(M)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe((0,Hn.h)(M)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(Y=>this.handleDownKey(Y.index))].forEach(Y=>this.observableSubscriptions.add(Y))}subscribeTouchEvents(){!(0,z.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{(this.isFocused||this.isOpen)&&!Lu(this.hostElement,v.target,this.popupRef)&&this._zone.run(()=>{this.blur(),this.isOpen&&this.togglePopup(!1)})}))}unsubscribeEvents(){!(0,z.X_)()||(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}removeGroupTag(v){let d=this.dataService.data;this.dataService.grouped&&(d=d.filter(Y=>!Y.header).map(Y=>Y.value));const M=new Set(v.map(Y=>ts(Y,this.valueField)));this.value=this.value.filter(Y=>{const Fe=up([Y],d,this.valueField)[0],Qt=this.disabledItemsService.isIndexDisabled(Fe);return!M.has(ts(Y,this.valueField))||Qt}),this.emitValueChange()}removeSingleTag(v){let d=this.dataService.data;this.dataService.grouped&&(d=d.filter(Y=>!Y.header).map(Y=>Y.value));const M=up([v],d,this.valueField)[0];this.disabledItemsService.isIndexDisabled(M)||(isNaN(M)?(this.value=this.value.filter(Fe=>ts(Fe,this.valueField)!==ts(v,this.valueField)),this.emitValueChange()):(this.selectionService.unselect(M),this.selectionService.focused=M,this.togglePopup(!1)))}disabledItemsMapper(){const{selected:v}=this.selectionService;return new Set(this.selectedDataItems.reduce((d,M,Y)=>(this.disabledItemsService.isIndexDisabled(v[Y])&&d.push(Y),d),[]))}createCustomValueStream(){this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe((0,Yn.b)(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),this.valueNormalizer,(0,pn.K)(()=>(this.loading=!1,this.disabled=!1,this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()}),this.createCustomValueStream(),(0,X.of)(null)))).subscribe(v=>{if(this.loading=!1,this.disabled=!1,Bn(v)){const d=this.valuePrimitive?ts(v,this.valueField):v,M=this.dataService.indexOf(d),Y=-1===M;-1===this.value.indexOf(d)?(this.tags=this.tagMapper([...this.selectedDataItems,v]),Y?this.value=[...this.value,d]:this.selectionService.add(M)):!Y&&this.selectionService.isSelected(M)?(this.selectionService.unselect(M),this.selectionService.focused=M):this.value=this.value.filter(Fe=>ts(Fe,this.valueField)!==d),this.emitValueChange()}this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()})})}handleItemChange(v){this.change(v),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}handleEnter(v){const d=this.selectionService,M=this.selectionService.focused;this.isOpen&&v.originalEvent.preventDefault(),-1!==M?(d.isSelected(M)?(d.unselect(M),d.focused=M):d.add(M),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}handleClose(){this.closePopup(),this.searchbar.focus()}handleEnd(){this.focusedTagIndex=this.tags.length-1}handleHome(){this.focusedTagIndex=0}handleUp(v){this.selectionService.focused=v}handleBackspace(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}handleDelete(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}handleLeftKey(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}handleDownKey(v){this.isOpen?this.selectionService.focused=v||this.firstFocusableIndex(0):this.openPopup()}handleRightKey(){const v=this.tags.length-1;this.focusedTagIndex===v?this.focusedTagIndex=void 0:this.focusedTagIndex(M=ts(this.dataService.grouped?Fe.value:Fe,this.textField),M=Bn(M)?M.toString().toLowerCase():"",v&&M.startsWith(v)),d);return this.disabledItemsService.isIndexDisabled(Y)?Y+1>this.dataService.itemsCount?-1:this.findIndex(v,Y+1):Y}searchTextAndFocus(v){const d=this.findIndex(v);this.selectionService.focused=d}closePopup(){this.togglePopup(!1),this.focusedTagIndex=void 0}openPopup(){this.togglePopup(!0),this.focusedTagIndex=void 0}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||this._toggle(v)}triggerPopupEvents(v){const d=new jo;return v?this.open.emit(d):this.close.emit(d),d.isDefaultPrevented()}_toggle(v){this._open=v,this.destroyPopup(),this._open&&this.createPopup()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){this.virtual&&(this.virtual.skip=0);const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:v,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:v,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const Y=this.popupRef.popupElement,{min:Fe,max:Qt}=this.width;Y.addEventListener("mousedown",this.popupMouseDownHandler),Y.style.minWidth=Fe,Y.style.width=Qt,Y.style.height=this.height,Y.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.togglePopup(!1)})}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}resolveDataItemFromTags(v){return this.tags&&this.tags.length&&Bn(v)?this.tags.reduce((M,Y)=>{const Fe=Ia(Y)?Y:[Y];return M.push(...Fe),M},[]).find(M=>ts(M,this.valueField)===ts(v,this.valueField)):void 0}firstFocusableIndex(v){const d=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(v)){const M=v+1;return M{setTimeout(()=>this._zone.run(v))})}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}};Rs.\u0275fac=function(v){return new(v||Rs)(e.Y36(ct.oQ),e.Y36(Te.qL),e.Y36(Ao),e.Y36(fo),e.Y36(Vo),e.Y36(Ur),e.Y36(e.sBO),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(sl,8))},Rs.\u0275cmp=e.Xpm({type:Rs,selectors:[["kendo-multiselect"]],contentQueries:function(v,d,M){if(1&v&&(e.Suo(M,ha,5),e.Suo(M,vp,5),e.Suo(M,Ra,5),e.Suo(M,Qa,5),e.Suo(M,xs,5),e.Suo(M,ra,5),e.Suo(M,pa,5),e.Suo(M,fc,5),e.Suo(M,Jo,5)),2&v){let Y;e.iGM(Y=e.CRH())&&(d.template=Y.first),e.iGM(Y=e.CRH())&&(d.customItemTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.groupTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.fixedGroupTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.headerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.footerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.tagTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.groupTagTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.noDataTemplate=Y.first)}},viewQuery:function(v,d){if(1&v&&(e.Gf(ia,7,e.s_b),e.Gf(ua,7),e.Gf(Ro,7),e.Gf(ho,7),e.Gf(Fa,5)),2&v){let M;e.iGM(M=e.CRH())&&(d.container=M.first),e.iGM(M=e.CRH())&&(d.searchbar=M.first),e.iGM(M=e.CRH())&&(d.popupTemplate=M.first),e.iGM(M=e.CRH())&&(d.wrapper=M.first),e.iGM(M=e.CRH())&&(d.optionsList=M.first)}},hostVars:7,hostBindings:function(v,d){2&v&&(e.uIk("dir",d.dir),e.ekj("k-widget",d.widgetClasses)("k-multiselect",d.widgetClasses)("k-state-disabled",d.disabledClass))},inputs:{focusableId:"focusableId",autoClose:"autoClose",tabindex:"tabindex",disabled:"disabled",readonly:"readonly",filterable:"filterable",listHeight:"listHeight",clearButton:"clearButton",tagMapper:"tagMapper",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer",data:"data",value:"value",tabIndex:"tabIndex",placeholder:"placeholder",itemDisabled:"itemDisabled",checkboxes:"checkboxes",virtual:"virtual",popupSettings:"popupSettings",valuePrimitive:"valuePrimitive",loading:"loading",valueField:"valueField",textField:"textField"},outputs:{filterChange:"filterChange",valueChange:"valueChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",removeTag:"removeTag"},exportAs:["kendoMultiSelect"],features:[e._Bn([R0,Ao,fo,Vo,Ur,ct.oQ,{provide:ct.mM,useValue:"kendo.multiselect"},{provide:Zl,useExisting:(0,e.Gpc)(()=>lu)},{provide:z.GX,useExisting:(0,e.Gpc)(()=>lu)}]),e.TTD],decls:13,vars:24,consts:function(){let _,v;return _=$localize`:kendo.multiselect.noDataText|The text displayed in the popup when there are no items␟3cc1323f79a5fe012960578e513f8a35b2af1e96␟1450213984397806503:NO DATA FOUND`,v=$localize`:kendo.combobox.clearTitle|The title of the clear button␟069e8fae80677e3e785861123bef446b3ff41ab4␟2025597431468961462:clear`,[["kendoMultiSelectLocalizedMessages","","noDataText",_,"clearTitle",v],[1,"k-multiselect-wrap","k-floatwrap",3,"mousedown"],["wrapper",""],[3,"id","tags","textField","valueField","focused","disabled","template","groupTemplate","tagPrefix","disabledIndices","removeTag"],[3,"id","role","tagListId","activeDescendant","noDataLabel","userInput","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"visibility","mousedown",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],[3,"ngIf"],["container",""],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"mousedown"],[1,"k-icon","k-i-loading"],[4,"ngIf"],["class","k-list",4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","multipleSelection","virtual","checkboxes","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-list"],["kendoDropDownsSelectable","",1,"k-item","k-custom-item",3,"multipleSelection","index"],[4,"ngIf","ngIfElse"],["default_custom_item_template",""],[1,"k-icon","k-i-plus",2,"float","right"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(v,d){1&v&&(e.GkF(0,0),e.TgZ(1,"div",1,2),e.NdJ("mousedown",function(Y){return d.wrapperMousedown(Y)}),e.TgZ(3,"kendo-taglist",3),e.NdJ("removeTag",function(Y){return d.handleRemoveTag(Y)}),e.qZA(),e.TgZ(4,"kendo-searchbar",4,5),e.NdJ("onNavigate",function(Y){return d.handleNavigate(Y)})("valueChange",function(Y){return d.handleFilter(Y)})("onBlur",function(){return d.onSearchBarBlur()})("onFocus",function(){return d.onSearchBarFocus()}),e.qZA(),e.YNc(6,Tc,1,3,"span",6),e.YNc(7,ed,1,0,"span",7),e.qZA(),e.YNc(8,kc,6,17,"ng-template",null,8,e.W1O),e.YNc(10,Td,1,0,"ng-template",9),e.GkF(11,null,10)),2&v&&(e.xp6(3),e.Q6J("id",d.tagListId)("tags",d.tags)("textField",d.textField)("valueField",d.valueField)("focused",d.focusedTagIndex)("disabled",d.disabled)("template",d.tagTemplate)("groupTemplate",d.groupTagTemplate)("tagPrefix",d.tagPrefix)("disabledIndices",d.disabledIndices),e.xp6(1),e.Q6J("id",d.focusableId)("role","listbox")("tagListId",d.tagListId)("activeDescendant",d.activeDescendant)("noDataLabel",d.noDataLabel)("userInput",d.text)("disabled",d.disabled)("readonly",d.readonly)("tabIndex",d.tabIndex)("popupOpen",d.isOpen)("placeholder",d.placeholder),e.xp6(2),e.Q6J("ngIf",!d.loading&&!d.readonly&&d.clearButton&&((null==d.tags?null:d.tags.length)||(null==d.text?null:d.text.length))),e.xp6(1),e.Q6J("ngIf",d.loading),e.xp6(3),e.Q6J("ngIf",d.isOpen))},directives:function(){return[ma,uu,ua,Ze.O5,Jl,Ml,zd,z.NG]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],Rs.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Rs.prototype,"autoClose",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Rs.prototype,"loading",void 0),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],Rs.prototype,"data",null),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],Rs.prototype,"value",null),p([(0,e.IIB)(),r("design:type",String)],Rs.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",String)],Rs.prototype,"textField",void 0),p([(0,e.IIB)(),r("design:type",Number)],Rs.prototype,"tabindex",void 0),p([(0,e.IIB)("tabIndex"),r("design:type",Number),r("design:paramtypes",[Number])],Rs.prototype,"tabIndex",null),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],Rs.prototype,"placeholder",null),p([(0,e.IIB)(),r("design:type",Boolean)],Rs.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Function),r("design:paramtypes",[Function])],Rs.prototype,"itemDisabled",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],Rs.prototype,"checkboxes",null),p([(0,e.IIB)(),r("design:type",Boolean)],Rs.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Rs.prototype,"filterable",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],Rs.prototype,"virtual",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],Rs.prototype,"popupSettings",null),p([(0,e.IIB)(),r("design:type",Number)],Rs.prototype,"listHeight",void 0),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],Rs.prototype,"valuePrimitive",null),p([(0,e.IIB)(),r("design:type",Boolean)],Rs.prototype,"clearButton",void 0),p([(0,e.IIB)(),r("design:type",Object)],Rs.prototype,"tagMapper",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Rs.prototype,"allowCustom",void 0),p([(0,e.IIB)(),r("design:type",Function)],Rs.prototype,"valueNormalizer",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Rs.prototype,"filterChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Rs.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Rs.prototype,"open",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Rs.prototype,"opened",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Rs.prototype,"close",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Rs.prototype,"closed",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],Rs.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],Rs.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Rs.prototype,"removeTag",void 0),p([(0,e.i9L)("container",{read:e.s_b,static:!0}),r("design:type",e.s_b)],Rs.prototype,"container",void 0),p([(0,e.i9L)(ua,{static:!0}),r("design:type",ua)],Rs.prototype,"searchbar",void 0),p([(0,e.i9L)("popupTemplate",{static:!0}),r("design:type",e.Rgc)],Rs.prototype,"popupTemplate",void 0),p([(0,e.i9L)("wrapper",{static:!0}),r("design:type",e.SBq)],Rs.prototype,"wrapper",void 0),p([(0,e.i9L)("optionsList",{static:!1}),r("design:type",Jl)],Rs.prototype,"optionsList",void 0),p([(0,e.aQ5)(ha,{static:!1}),r("design:type",ha)],Rs.prototype,"template",void 0),p([(0,e.aQ5)(vp,{static:!1}),r("design:type",vp)],Rs.prototype,"customItemTemplate",void 0),p([(0,e.aQ5)(Ra,{static:!1}),r("design:type",Ra)],Rs.prototype,"groupTemplate",void 0),p([(0,e.aQ5)(Qa,{static:!1}),r("design:type",Qa)],Rs.prototype,"fixedGroupTemplate",void 0),p([(0,e.aQ5)(xs,{static:!1}),r("design:type",xs)],Rs.prototype,"headerTemplate",void 0),p([(0,e.aQ5)(ra,{static:!1}),r("design:type",ra)],Rs.prototype,"footerTemplate",void 0),p([(0,e.aQ5)(pa,{static:!1}),r("design:type",pa)],Rs.prototype,"tagTemplate",void 0),p([(0,e.aQ5)(fc,{static:!1}),r("design:type",fc)],Rs.prototype,"groupTagTemplate",void 0),p([(0,e.aQ5)(Jo,{static:!1}),r("design:type",Jo)],Rs.prototype,"noDataTemplate",void 0),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-multiselect"),r("design:type",Boolean)],Rs.prototype,"widgetClasses",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String),r("design:paramtypes",[])],Rs.prototype,"dir",null),p([(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],Rs.prototype,"disabledClass",null),Rs=lu=p([K(11,(0,e.FiY)()),K(11,(0,e.tBr)(sl)),r("design:paramtypes",[ct.oQ,Te.qL,Ao,fo,Vo,Ur,e.sBO,e.aQg,e.Qsj,e.SBq,e.R0b,Boolean])],Rs);let ld,Bd=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoMultiColumnComboBoxColumnCellTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),Mh=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoMultiColumnComboBoxColumnHeaderTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})(),ad=(()=>{let _=class{constructor(){this.hidden=!1,this.matchesMedia=!0}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["kendo-combobox-column"]],contentQueries:function(d,M,Y){if(1&d&&(e.Suo(Y,Bd,5),e.Suo(Y,Mh,5)),2&d){let Fe;e.iGM(Fe=e.CRH())&&(M.cellTemplate=Fe.first),e.iGM(Fe=e.CRH())&&(M.headerTemplate=Fe.first)}},inputs:{hidden:"hidden",field:"field",title:"title",width:"width",style:"style",headerStyle:"headerStyle",class:"class",headerClass:"headerClass",media:"media"},decls:0,vars:0,template:function(d,M){},encapsulation:2}),p([(0,e.aQ5)(Bd,{static:!1}),r("design:type",Bd)],_.prototype,"cellTemplate",void 0),p([(0,e.aQ5)(Mh,{static:!1}),r("design:type",Mh)],_.prototype,"headerTemplate",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"field",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"title",void 0),p([(0,e.IIB)(),r("design:type",Number)],_.prototype,"width",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],_.prototype,"hidden",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"style",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"headerStyle",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"class",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"headerClass",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"media",void 0),_})();const xl=()=>{if(isNaN(ld)){const _=document.createElement("div");_.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",_.innerHTML=" ",document.body.appendChild(_),ld=_.offsetWidth-_.scrollWidth,document.body.removeChild(_)}return ld};var cu;let cd=cu=class extends ys{constructor(v,d,M,Y,Fe,Qt,gn,qn,Un,Xi,Pi){super(v,d,M,Y,Fe,Qt,gn,qn,Un,Xi,Pi),this.hostClasses=!0,this.removeWindowResizeListener=Fc,this.defaultVirtualItemHeight=36,this.defaultVirtualPageSize=30}set header(v){this.updateHeaderPadding(v&&v.nativeElement)}get popupWidth(){const v=this.wrapper.nativeElement.offsetWidth,d=`${v}px`,M=this.popupSettings.width||(_=>{if(!(_=>!(!Bn(_)||0===_.length)&&_.toArray().every(v=>!isNaN(v.width)&&v.width>0))(_))return null;const d=xl()+2;return _.reduce((M,Y)=>(!Y.hidden&&Y.matchesMedia&&(M+=parseInt(Y.width,10)),M),d)})(this.columns)||v;return{min:d,max:isNaN(M)?M:`${M}px`}}get listContainerClasses(){return["k-list-container","k-popup","k-reset","k-group","k-dropdowngrid-popup","k-popup-flush","k-state-border-up"].concat(this.popupSettings.popupClass||[])}ngAfterViewInit(){this.updateColumnsMediaState(),this.addWindowResizeListener()}ngOnDestroy(){super.ngOnDestroy(),this.removeWindowResizeListener()}textFrom(v,d){return ts(v,d)}updateHeaderPadding(v){if(!Bn(v))return;const d=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&xl()>0?this.renderer.setStyle(v,d,`${xl()}px`):this.renderer.removeStyle(v,d)}verifySettings(){if((0,e.X6Q)()){if(Bn(this.data)&&this.data.length>0&&this.data.some(v=>!Ad(v)))throw new Error("Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/");if(!Bn(this.valueField)||!Bn(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration");super.verifySettings()}}addWindowResizeListener(){!(0,z.X_)()||this.zone.runOutsideAngular(()=>this.removeWindowResizeListener=this.renderer.listen(window,"resize",this.updateColumnsMediaState.bind(this)))}updateColumnsMediaState(){!Bn(this.columns)||!(0,z.X_)()||this.columns.forEach(v=>{const d=!v.media||window.matchMedia(v.media).matches;v.matchesMedia!==d&&(v.matchesMedia=d,this.isOpen&&this.zone.run(()=>this.popupRef.popupElement.style.width=this.popupWidth.max))})}};cd.\u0275fac=function(v){return new(v||cd)(e.Y36(ct.oQ),e.Y36(Te.qL),e.Y36(fo),e.Y36(Vo),e.Y36(Ur),e.Y36(Ao),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(sl))},cd.\u0275cmp=e.Xpm({type:cd,selectors:[["kendo-multicolumncombobox"]],contentQueries:function(v,d,M){if(1&v&&e.Suo(M,ad,4),2&v){let Y;e.iGM(Y=e.CRH())&&(d.columns=Y)}},viewQuery:function(v,d){if(1&v&&e.Gf(nu,5),2&v){let M;e.iGM(M=e.CRH())&&(d.header=M.first)}},hostVars:2,hostBindings:function(v,d){2&v&&e.ekj("k-dropdowngrid",d.hostClasses)},features:[e._Bn([fo,Ao,Vo,Ur,ct.oQ,{provide:ct.mM,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:je.JU,useExisting:(0,e.Gpc)(()=>cu)},{provide:z.GX,useExisting:(0,e.Gpc)(()=>cu)},{provide:Zl,useExisting:(0,e.Gpc)(()=>cu)}]),e.qOj],decls:14,vars:20,consts:function(){let _,v;return _=$localize`:kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items␟23a18095f2c16d40a04251fa2fb15d3927e7a79a␟3227251500690942605:NO DATA FOUND`,v=$localize`:kendo.multicolumncombobox.clearTitle|The title of the clear button␟6b371962a2564e2e50986f7ec238e513b466d553␟326603149056291198:clear`,[["kendoMultiColumnComboBoxLocalizedMessages","","noDataText",_,"clearTitle",v],["unselectable","on",1,"k-dropdown-wrap"],["wrapper",""],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["aria-hidden","true","unselectable","on",1,"k-select",3,"kendoEventsOutsideAngular"],["select",""],[1,"k-icon",3,"ngClass"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"kendoEventsOutsideAngular","click"],[4,"ngIf"],[1,"k-grid-header"],["header",""],[1,"k-grid-header-wrap"],["role","presentation"],[4,"ngFor","ngForOf"],["rowTemplate",""],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","listClass","pageChange","listResize"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[3,"width",4,"ngIf"],["class","k-header",3,"ngStyle","ngClass",4,"ngIf"],[1,"k-header",3,"ngStyle","ngClass"],["class","k-cell",3,"ngClass","width","ngStyle",4,"ngIf"],[1,"k-cell",3,"ngClass","ngStyle"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"ngIf"],[1,"k-footer"],[3,"resize"]]},template:function(v,d){1&v&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e.TgZ(3,"kendo-searchbar",3,4),e.NdJ("onNavigate",function(Y){return d.handleNavigate(Y)})("valueChange",function(Y){return d.searchBarChange(Y)})("onBlur",function(){return d.handleBlur()})("onFocus",function(){return d.handleFocus()}),e.qZA(),e.YNc(5,iu,1,6,"span",5),e.TgZ(6,"span",6,7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.YNc(9,lr,16,19,"ng-template",null,9,e.W1O),e.YNc(11,Mi,1,0,"kendo-resize-sensor",10),e.GkF(12,null,11)),2&v&&(e.xp6(1),e.ekj("k-state-disabled",d.disabled),e.xp6(2),e.Q6J("role","combobox")("id",d.focusableId)("listId",d.listBoxId)("activeDescendant",d.activeDescendant)("noDataLabel",d.noDataLabel)("userInput",d.text)("suggestedText",d.getSuggestion())("disabled",d.disabled)("readonly",d.readonly)("tabIndex",d.tabIndex)("popupOpen",d.isOpen)("placeholder",d.placeholder),e.xp6(2),e.Q6J("ngIf",d.clearButton&&!d.loading&&!d.disabled&&!d.readonly&&(null==d.text?null:d.text.length)),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.VKq(18,ca,d.preventEventDefault)),e.xp6(2),e.Q6J("ngClass",d.buttonClasses),e.xp6(3),e.Q6J("ngIf",d.isOpen))},directives:function(){return[ma,ua,Ze.O5,z.nV,Ze.mk,Ze.sg,Jl,Ml,Ze.PC,z.NG]},encapsulation:2}),p([(0,e.pfw)("class.k-dropdowngrid"),r("design:type",Boolean)],cd.prototype,"hostClasses",void 0),p([(0,e.AcB)(ad),r("design:type",e.n_E)],cd.prototype,"columns",void 0),p([(0,e.i9L)("header",{static:!1}),r("design:type",e.SBq),r("design:paramtypes",[e.SBq])],cd.prototype,"header",null),cd=cu=p([K(10,(0,e.tBr)(sl)),r("design:paramtypes",[ct.oQ,Te.qL,fo,Vo,Ur,Ao,e.R0b,e.sBO,e.Qsj,e.SBq,Boolean])],cd);let La=(()=>{let _=class{constructor(d){this.templateRef=d}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.Rgc))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownTreeNodeTemplate",""],["","kendoMultiSelectTreeNodeTemplate",""]]}),_=p([r("design:paramtypes",[e.Rgc])],_),_})();var Lo;const oa={animate:!0},Ba=()=>!1,Da=()=>(0,X.of)([]),Ko=()=>!1,fa=()=>!0;let ss=Lo=class{constructor(v,d,M,Y,Fe,Qt,gn,qn){this.popupService=v,this.navigationService=d,this.renderer=M,this.hostElement=Y,this._zone=Fe,this.cdr=Qt,this.localization=gn,this.touchEnabled=qn,this.hostClasses=!0,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.nodeExpand=new e.vpe,this.nodeCollapse=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.valueChange=new e.vpe,this.filterChange=new e.vpe,this.clearButton=!0,this.hasChildren=Ba,this.fetchChildren=Da,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=Ko,this.isNodeVisible=fa,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId=`k-${(0,z.M8)()}`,this.selectedKeys=[],this.filterStateChange=new e.vpe,this.allNodesHidden=!1,this.valueLabelId=`k-${(0,z.M8)()}`,this._popupSettings=oa,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=Fc,this.onChangeCallback=Fc,this.direction=gn.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}get clearable(){return this.clearButton}set treeview(v){v&&((this.isFocused&&!this.filterable||this.touchEnabled)&&v.focus(),v.animate=!0,this._treeview=v)}get treeview(){return this._treeview}set data(v){this._nodes=v,this.setState()}get data(){return this._nodes}set value(v){this._value=v,this.setState()}get value(){return this._value}set popupSettings(v){this._popupSettings=Object.assign({},oa,v)}get popupSettings(){return this._popupSettings}set dataItem(v){this._dataItem=v,this.setState()}get dataItem(){return this._dataItem?this._dataItem:this.value}set tabindex(v){const d=Number(v);this._tabindex=isNaN(d)?0:d}get tabindex(){return this.disabled?-1:this._tabindex}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=v}get isFocused(){return this._isFocused}get width(){const v=this.wrapper.nativeElement.offsetWidth,d=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(d)?d:`${d}px`}}get height(){const v=this.popupSettings.height;return Bn(v)?`${v}px`:"auto"}get isOpen(){return Bn(this.popupRef)}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}set isExpanded(v){this.isNodeExpanded=v}get isExpanded(){return this.isNodeExpanded}get expand(){return this.nodeExpand}get collapse(){return this.nodeCollapse}set nodes(v){this.data=v}get nodes(){return this.data}set children(v){this.fetchChildren=v}get children(){return this.fetchChildren}set isVisible(v){this.isNodeVisible=v}get isVisible(){return this.isNodeVisible}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.cdr.markForCheck()}))}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents()}ngOnChanges(v){(0,z.aG)(["textField","valueField","valuePrimitive"],v,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}isEmpty(){return!this.text&&!this.placeholder}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||(v?this.createPopup():this.destroyPopup())}handleFocus(){this.isFocused||(this.isFocused=!0,(0,z.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}handleBlur(v){const d=v&&v.relatedTarget;this.hostElement.nativeElement.contains(d)||this.isOpen&&this.popupRef.popupElement.contains(d)||(this.isFocused=!1,(0,z.g$)(this.onBlur)||is(this.hostElement.nativeElement)?this._zone.run(()=>{this.togglePopup(!1),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1))}handleKeydown(v){this.disabled||this.readonly||this.navigationService.process({originalEvent:v})}handleClick(){this.togglePopup(!this.isOpen)}focusItemAt(v){if(this.treeview){const d=this.treeview.itemLookup(v);!Bn(d)||this.treeview.isDisabled(d.item.dataItem,d.item.index)||this.treeview.focus(v)}}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||this.wrapper.nativeElement.blur()}reset(){this.value=void 0,this.dataItem=void 0}toggle(v){Promise.resolve(null).then(()=>{const d=Bn(v)?v:!Bn(this.popupRef);this.destroyPopup(),d&&this.createPopup()})}get popupContainerClasses(){const v=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&v.push(this.popupSettings.popupClass),v}onSelectionChange({dataItem:v,index:d}){this.valueDepth=d.split("_").length-1;const M=this.getField(this.valueField,v),Y=this.valuePrimitive?(0,it.Yn)(M)(v):v;Y!==this.value&&(this.value=Y,this.dataItem=v,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()}messageFor(v){return this.localization.get(v)}clearValue(v){v.stopImmediatePropagation(),this.focus(),this.value=void 0,this.dataItem=void 0,this.clearState(),this.valueChange.emit(void 0),this.emitValueChange()}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}preventEventDefault(v){v.preventDefault()}writeValue(v){!Bn(v)&&Bn(this.value)&&(this.dataItem=null),this.value=null===v?void 0:v}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v,this.cdr.markForCheck()}handleFilterInputChange(v){this.filterChange.next(v),this.allNodesHidden=this.nodes.every((d,M)=>!this.isVisible(d,String(M)))}get buttonClasses(){return this.loading?"k-i-loading":"k-i-arrow-s"}verifySettings(){if((0,e.X6Q)()){if(!0===this.valuePrimitive&&Bn(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values");if(!0===this.valuePrimitive&&Bn(this.value)&&"object"!=typeof this.dataItem)throw new Error("Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem");if(!1===this.valuePrimitive&&Bn(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values");if(!Bn(this.valueField)||!Bn(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding");if((Ia(this.valueField)||Ia(this.textField))&&Bn(this.value)&&!Bn(this.valueDepth))throw new Error("Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth")}}emitValueChange(v){this.onChangeCallback(v),this.valueChange.emit(v)}getText(v,d){if(Bn(d)&&Bn(v)){const M=this.getField(v,d);return(0,it.Yn)(M)(d)}return null}getField(v,d){const M=v.length-1;return"string"==typeof v?v:Bn(this.valueDepth)?MY in d)}triggerPopupEvents(v){const d=new jo;return v?this.open.emit(d):this.close.emit(d),d.isDefaultPrevented()}createPopup(){const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:v,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:v,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});const Y=this.popupRef.popupElement,{min:Fe,max:Qt}=this.width;Y.style.minWidth=Fe,Y.style.width=Qt,Y.style.height=this.height,Y.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})}destroyPopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,(0,z.g$)(this.filterChange)&&this._zone.run(()=>{this.filterChange.emit("")})))}handleEscape(){this.togglePopup(!1),this.focus()}setState(){if(Bn(this.value)&&Bn(this.dataItem)&&Bn(this.valueField)){this.text=this.getText(this.textField,this.dataItem);const v=this.getField(this.valueField,this.dataItem);this.selectBy=v,this.selectedKeys=[(0,it.Yn)(v)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()}clearState(){this.text=void 0,this.selectedKeys=[]}subscribeEvents(){this.subscriptions.push(this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()}),this.navigationService.enter.pipe((0,Yn.b)(v=>v.originalEvent.preventDefault())).subscribe(()=>this.togglePopup(!0)),this.navigationService.esc.subscribe(()=>this.handleEscape()),this.navigationService.tab.subscribe(()=>this.focus()),this.navigationService.down.subscribe(v=>{!this.treeview||(v.originalEvent.preventDefault(),this.treeview.isActive||this.treeview.focus())}),this.navigationService.up.subscribe(v=>{!this.treeview||(v.originalEvent.preventDefault(),this.filterable&&"0"===this.treeview.navigationService.activeIndex&&this.filterInput.nativeElement.focus())}))}subscribeTouchEvents(){!(0,z.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{this.isFocused&&!Lu(this.hostElement,v.target,this.popupRef)&&this._zone.run(()=>{this.isOpen&&this.treeview.blur(),this.blur()})}))}unsubscribeEvents(){this.subscriptions.forEach(v=>v.unsubscribe()),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}assignAriaDescribedBy(){const v=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",d=`${this.valueLabelId} ${v.trim()}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",d)}};var Wa;ss.\u0275fac=function(v){return new(v||ss)(e.Y36(Te.qL),e.Y36(Vo),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(ct.oQ),e.Y36(sl,8))},ss.\u0275cmp=e.Xpm({type:ss,selectors:[["kendo-dropdowntree"]],contentQueries:function(v,d,M){if(1&v&&(e.Suo(M,Jo,5),e.Suo(M,xs,5),e.Suo(M,ra,5),e.Suo(M,La,5),e.Suo(M,pc,5)),2&v){let Y;e.iGM(Y=e.CRH())&&(d.noDataTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.headerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.footerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.nodeTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.valueTemplate=Y.first)}},viewQuery:function(v,d){if(1&v&&(e.Gf(Er,5),e.Gf(Ro,7),e.Gf(ho,7),e.Gf(ia,7,e.s_b),e.Gf(da,5)),2&v){let M;e.iGM(M=e.CRH())&&(d.treeview=M.first),e.iGM(M=e.CRH())&&(d.popupTemplate=M.first),e.iGM(M=e.CRH())&&(d.wrapper=M.first),e.iGM(M=e.CRH())&&(d.container=M.first),e.iGM(M=e.CRH())&&(d.filterInput=M.first)}},hostVars:7,hostBindings:function(v,d){2&v&&(e.uIk("dir",d.direction),e.ekj("k-widget",d.hostClasses)("k-dropdowntree",d.hostClasses)("k-dropdowntree-clearable",d.clearable))},inputs:{clearButton:"clearButton",hasChildren:"hasChildren",fetchChildren:"fetchChildren",placeholder:"placeholder",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",itemDisabled:"itemDisabled",isNodeVisible:"isNodeVisible",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",focusableId:"focusableId",data:"data",value:"value",popupSettings:"popupSettings",dataItem:"dataItem",tabindex:"tabindex",isNodeExpanded:"isNodeExpanded",valueDepth:"valueDepth",loading:"loading",textField:"textField",valueField:"valueField"},outputs:{open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",onFocus:"focus",onBlur:"blur",valueChange:"valueChange",filterChange:"filterChange"},exportAs:["kendoDropDownTree"],features:[e._Bn([Ao,fo,Vo,Ur,ct.oQ,{provide:ct.mM,useValue:"kendo.dropdowntree"},{multi:!0,provide:je.JU,useExisting:(0,e.Gpc)(()=>Lo)},{provide:z.GX,useExisting:(0,e.Gpc)(()=>Lo)},{provide:os,useExisting:(0,e.Gpc)(()=>Lo)},{provide:ws,useExisting:(0,e.Gpc)(()=>Lo)}]),e.TTD],decls:13,vars:18,consts:function(){let _,v;return _=$localize`:kendo.dropdowntree.noDataText|The text displayed in the popup when there are no items␟b5507b240a829a596159da3600ea1c73810d8708␟8377764809518564323:NO DATA FOUND`,v=$localize`:kendo.dropdowntree.clearTitle|The title of the clear button␟549a21c02a5be9711c5297a917390d5f4c06448b␟5091538317194981642:clear`,[["kendoDropDownTreeLocalizedMessages","","noDataText",_,"clearTitle",v],["role","listbox","aria-haspopup","tree",3,"ngClass","kendoEventsOutsideAngular","scope","click","keydown"],["wrapper",""],[1,"k-input"],[4,"ngIf"],[3,"ngIf"],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","click",4,"ngIf"],["aria-hidden","true",1,"k-select"],[1,"k-icon","k-i-arrow-60-down",3,"ngClass"],["popupTemplate",""],["container",""],[3,"templateContext"],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"click"],["class","k-list-filter",4,"ngIf"],["kendoTreeViewSelectable","",3,"nodes","maxHeight","animate","selectedKeys","selectBy","textField","children","hasChildren","loadOnDemand","isExpanded","isDisabled","nodeTemplate","filter","isVisible","selectedKeysChange","focusout","keydown","selectionChange","expand","collapse",4,"ngIf"],["class","k-nodata",4,"ngIf"],[1,"k-list-filter"],["role","textbox","aria-haspopup","true","aria-expanded","false","tabindex","0","aria-disabled","false","aria-readonly","false",1,"k-textbox",3,"filterInput","ngModel","kendoEventsOutsideAngular","scope","input","keydown.arrowdown","keydown.alt.arrowup","ngModelChange"],["filterInput",""],[1,"k-icon","k-i-zoom"],["kendoTreeViewSelectable","",3,"nodes","animate","selectedKeys","selectBy","textField","children","hasChildren","loadOnDemand","isExpanded","isDisabled","nodeTemplate","filter","isVisible","selectedKeysChange","focusout","keydown","selectionChange","expand","collapse"],["treeview",""],[1,"k-nodata"],[3,"ngIf","templateContext"]]},template:function(v,d){1&v&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e.NdJ("click",function(){return d.handleClick()})("keydown",function(Y){return d.handleKeydown(Y)}),e.TgZ(3,"span",3),e.YNc(4,cc,1,4,void 0,4),e.YNc(5,Wl,1,1,"ng-template",5),e.qZA(),e.YNc(6,E0,1,3,"span",6),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.YNc(9,cf,5,5,"ng-template",null,9,e.W1O),e.GkF(11,null,10)),2&v&&(e.xp6(1),e.Q6J("ngClass",e.VKq(13,Ma,d.disabled))("kendoEventsOutsideAngular",e.WLB(15,Aa,d.handleFocus,d.handleBlur))("scope",d),e.uIk("id",d.focusableId)("aria-expanded",d.isOpen)("aria-readonly",d.readonly)("tabindex",d.tabindex)("dir",d.direction),e.xp6(2),e.uIk("id",d.valueLabelId),e.xp6(1),e.Q6J("ngIf",d.valueTemplate),e.xp6(1),e.Q6J("ngIf",!d.valueTemplate),e.xp6(1),e.Q6J("ngIf",!d.loading&&!d.readonly&&d.clearButton&&(null==d.text?null:d.text.length)&&!d.disabled),e.xp6(2),e.Q6J("ngClass",d.buttonClasses))},directives:function(){return[ma,Ze.mk,z.nV,Ze.O5,Ml,je.Fj,Th,je.JJ,je.On,$s,et]},encapsulation:2,changeDetection:0}),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-dropdowntree"),(0,e.pfw)("class.k-dropdowntree-clearable"),r("design:type",Boolean)],ss.prototype,"hostClasses",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],ss.prototype,"direction",void 0),p([(0,e.pfw)("class.k-dropdowntree-clearable"),r("design:type",Boolean),r("design:paramtypes",[])],ss.prototype,"clearable",null),p([(0,e.aQ5)(Jo,{static:!1}),r("design:type",Jo)],ss.prototype,"noDataTemplate",void 0),p([(0,e.aQ5)(xs,{static:!1}),r("design:type",xs)],ss.prototype,"headerTemplate",void 0),p([(0,e.aQ5)(ra,{static:!1}),r("design:type",ra)],ss.prototype,"footerTemplate",void 0),p([(0,e.aQ5)(La,{static:!1}),r("design:type",La)],ss.prototype,"nodeTemplate",void 0),p([(0,e.aQ5)(pc,{static:!1}),r("design:type",pc)],ss.prototype,"valueTemplate",void 0),p([(0,e.i9L)("popupTemplate",{static:!0}),r("design:type",e.Rgc)],ss.prototype,"popupTemplate",void 0),p([(0,e.i9L)("wrapper",{static:!0}),r("design:type",e.SBq)],ss.prototype,"wrapper",void 0),p([(0,e.i9L)("container",{read:e.s_b,static:!0}),r("design:type",e.s_b)],ss.prototype,"container",void 0),p([(0,e.i9L)("treeview",{static:!1}),r("design:type",$s),r("design:paramtypes",[$s])],ss.prototype,"treeview",null),p([(0,e.i9L)("filterInput",{static:!1}),r("design:type",e.SBq)],ss.prototype,"filterInput",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ss.prototype,"open",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ss.prototype,"opened",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ss.prototype,"close",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ss.prototype,"closed",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ss.prototype,"nodeExpand",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ss.prototype,"nodeCollapse",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],ss.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],ss.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ss.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ss.prototype,"filterChange",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ss.prototype,"loading",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ss.prototype,"clearButton",void 0),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],ss.prototype,"data",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ss.prototype,"value",null),p([(0,e.IIB)(),r("design:type",Object)],ss.prototype,"textField",void 0),p([(0,e.IIB)(),r("design:type",Object)],ss.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",Number)],ss.prototype,"valueDepth",void 0),p([(0,e.IIB)(),r("design:type",Function)],ss.prototype,"hasChildren",void 0),p([(0,e.IIB)(),r("design:type",Function)],ss.prototype,"fetchChildren",void 0),p([(0,e.IIB)(),r("design:type",String)],ss.prototype,"placeholder",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ss.prototype,"popupSettings",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ss.prototype,"dataItem",null),p([(0,e.IIB)(),r("design:type",Number)],ss.prototype,"listHeight",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ss.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ss.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ss.prototype,"valuePrimitive",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],ss.prototype,"tabindex",null),p([(0,e.IIB)(),r("design:type",Function)],ss.prototype,"itemDisabled",void 0),p([(0,e.IIB)(),r("design:type",Function)],ss.prototype,"isNodeExpanded",void 0),p([(0,e.IIB)(),r("design:type",Function)],ss.prototype,"isNodeVisible",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ss.prototype,"loadOnDemand",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ss.prototype,"filterable",void 0),p([(0,e.IIB)(),r("design:type",String)],ss.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",String)],ss.prototype,"focusableId",void 0),ss=Lo=p([K(7,(0,e.FiY)()),K(7,(0,e.tBr)(sl)),r("design:paramtypes",[Te.qL,Vo,e.Qsj,e.SBq,e.R0b,e.sBO,ct.oQ,Boolean])],ss);const ga={animate:!0},Nd={checkChildren:!0,checkOnClick:!0},Ih=()=>!1,du=()=>(0,X.of)([]),l1=()=>!1,c1=()=>!0;let ks=Wa=class{constructor(v,d,M,Y,Fe,Qt,gn,qn){this.popupService=v,this.renderer=d,this.hostElement=M,this.navigationService=Y,this._zone=Fe,this.localization=Qt,this.cdr=gn,this.touchEnabled=qn,this.hostClasses=!0,this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId=`k-${(0,z.M8)()}`,this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=Ih,this.fetchChildren=du,this.isNodeVisible=c1,this.itemDisabled=l1,this.tagMapper=Un=>Un||[],this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.nodeExpand=new e.vpe,this.nodeCollapse=new e.vpe,this.valueChange=new e.vpe,this.removeTag=new e.vpe,this.filterChange=new e.vpe,this.filterStateChange=new e.vpe,this.checkedItems=[],this.checkBy=Un=>Un,this.showAfter=0,this.allNodesHidden=!1,this.tagListId=(0,z.M8)(),this.tagPrefix="tag-"+(0,z.M8)(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=ga,this._checkableSettings=Nd,this._isFocused=!1,this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=Fc,this.onChangeCallback=Fc,this.direction=Qt.rtl?"rtl":"ltr",this.subscribeEvents()}set treeview(v){this._treeview=v,v&&((this.isFocused&&!this.filterable&&!this.checkAll||this.touchEnabled)&&v.focus(),Promise.resolve(null).then(()=>this.treeview.animate=!0))}get treeview(){return this._treeview}set tabindex(v){const d=rd(v);this._tabindex=isNaN(d)?0:d}get tabindex(){return this.disabled?-1:this._tabindex}set popupSettings(v){this._popupSettings=Object.assign({},ga,v),this.cdr.detectChanges()}get popupSettings(){return this._popupSettings}set checkableSettings(v){this._checkableSettings=Object.assign({},Nd,v)}get checkableSettings(){return this._checkableSettings}set data(v){this._nodes=v,this.setState()}get data(){return this._nodes}set value(v){this._value=v||[],this.setState()}get value(){return this._value}set dataItems(v){this._dataItems=(v||[]).map((d,M)=>Pu(d,["dataItem","index","level"])?d:{dataItem:d,index:null,level:this.valueDepth[M]||0}),this.setState()}get dataItems(){return this._dataItems||this.value.map((v,d)=>({dataItem:v,index:null,level:this.valueDepth[d]||0}))}get focusedTagId(){return!Bn(this.focusedTagIndex)||this.isOpen?null:`${this.tagPrefix}-${Rc({dataItem:this.tags[this.focusedTagIndex]},this.valueField)}`}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=v}get isFocused(){return this._isFocused}get isOpen(){return Bn(this.popupRef)}get width(){const v=this.wrapper.nativeElement.offsetWidth,d=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(d)?d:`${d}px`}}get height(){const v=this.popupSettings.height;return Bn(v)?`${v}px`:"auto"}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}get popupContainerClasses(){const v=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&v.push(this.popupSettings.popupClass),v}set nodes(v){this.data=v}get nodes(){return this.data}set children(v){this.fetchChildren=v}get children(){return this.fetchChildren}get expand(){return this.nodeExpand}get collapse(){return this.nodeCollapse}set isExpanded(v){this.isNodeExpanded=v}get isExpanded(){return this.isNodeExpanded}set isVisible(v){this.isNodeVisible=v}get isVisible(){return this.isNodeVisible}get isTagFocused(){return!this.isOpen&&void 0!==this.focusedTagIndex}get isTreeViewActive(){return this.treeview&&this.treeview.isActive}get isWrapperActive(){return document.activeElement===this.wrapper.nativeElement}get isFilterActive(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement}get isCheckAllActive(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.cdr.markForCheck()}))}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents()}ngOnChanges(v){(0,z.aG)(["textField","valueField","valuePrimitive"],v,!1)&&this.setState(),(0,z.aG)(["valueDepth","value","dataItems"],v,!1)&&(this.dataItems=!v.value||v.dataItems||this.valuePrimitive?this.dataItems.map((d,M)=>Object.assign({},d,{level:this.valueDepth[M]||0})):this.value)}ngAfterContentChecked(){this.verifySettings()}isEmpty(){return!(Boolean(this.placeholder)||Bn(this.value)&&0!==this.value.length)}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||this.wrapper.nativeElement.blur()}focusItemAt(v){if(this.treeview){const d=this.treeview.itemLookup(v);!Bn(d)||this.treeview.isDisabled(d.item.dataItem,d.item.index)||this.treeview.focus(v)}}reset(){this.value=[],this.dataItems=[],this.valueDepth=[]}toggle(v){Promise.resolve(null).then(()=>{const d=Bn(v)?v:!Bn(this.popupRef);this.destroyPopup(),d&&this.createPopup()})}handleFocus(){this.isFocused||(this.isFocused=!0,(0,z.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus()))}handleBlur(v){const d=v&&v.relatedTarget;this.hostElement.nativeElement.contains(d)||this.isOpen&&this.popupRef.popupElement.contains(d)||(this.isFocused=!1,this.togglePopup(!1),((0,z.g$)(this.onBlur)||is(this.hostElement.nativeElement))&&this._zone.run(()=>{this.onBlur.emit(),this.onTouchedCallback()}))}handleClick(){this.togglePopup(!this.isOpen)}handleKeydown(v){if(this.isWrapperActive&&v.keyCode===z.R8.Backspace&&this.tags.length>0)return void this.handleBackspace();if(this.disabled||this.readonly)return;const M=v;this.navigationService.process({originalEvent:M})===Ys.Open&&M.preventDefault()}handleNodeClick(v){this.isFocused||(this.lastNodeOnFocus=v.originalEvent.target.parentElement.parentElement,this.focus())}togglePopup(v){const d=this.disabled||this.readonly,M=this.isOpen===v;this._zone.run(()=>{this.focusedTagIndex=void 0}),d||M||(this.triggerPopupEvents(v)?this.removeTreeViewFromTabOrder():v?this.createPopup():this.destroyPopup())}messageFor(v){return this.localization.get(v)}handleCheckedItemsChange(v){this.valueDepth=v.map(d=>d.level),this.lastAction=v.length>this.dataItems.length?"check":"uncheck",this.dataItems=v.slice(),this.updateValue(this.dataItems)}handleRemoveTag({tag:v,index:d}){if(this.disabled||this.readonly)return;const M=new _p(v);this.removeTag.emit(M),!M.isDefaultPrevented()&&(v instanceof Array?(this.dataItems=this.dataItems.filter((Y,Fe)=>FeFeFe!==d||this.disabledIndices.has(Fe)),this.valueDepth=this.valueDepth.filter((Y,Fe)=>Fe!==d||this.disabledIndices.has(Fe))),this.updateValue(this.dataItems),this.isFocused||this.focus())}handleTagMapperChange(v){this.showAfter=rd(v),this.setTags()}clearAll(v){v.stopImmediatePropagation(),v.preventDefault(),this.focus(),this.value=this.value.filter((d,M)=>this.disabledIndices.has(M)),this.dataItems=this.dataItems.filter((d,M)=>this.disabledIndices.has(M)),this.valueDepth=this.valueDepth.filter((d,M)=>this.disabledIndices.has(M)),this.emitValueChange(this.value)}writeValue(v){this.value=v||[],this.valuePrimitive||(this.dataItems=this.value)}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v,this.cdr.markForCheck()}handleFilterInputChange(v){this.filterChange.next(v),this.allNodesHidden=this.nodes.every((d,M)=>!this.isVisible(d,String(M)))}toggleCheckAll(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()}verifySettings(){if((0,e.X6Q)()){if(!Bn(this.valueField)||!Bn(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding");if(!Ia(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection");if(this.value.length>0){if(this.valuePrimitive&&this.value.some(d=>Ad(d)))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values");const v=this.dataItems.every(d=>Ad(d.dataItem));if(this.valuePrimitive&&!Ia(this.dataItems))throw new Error(Pc_dataItems);if(this.valuePrimitive&&!v)throw new Error(Pc_dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error("Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems");if(!this.valuePrimitive&&!Od(this.value))throw new Error("Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values");if((Ia(this.valueField)||Ia(this.textField))&&!Ia(this.valueDepth))throw new Error(Pc_valueDepth);if((Ia(this.valueField)||Ia(this.textField))&&0===this.valueDepth.length)throw new Error(Pc_valueDepth);if((Ia(this.valueField)||Ia(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error("Expected valueDepth length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth")}}}emitValueChange(v){this.onChangeCallback(v),this.valueChange.emit(v)}triggerPopupEvents(v){const d=new jo;return v?this.open.emit(d):this.close.emit(d),d.isDefaultPrevented()}createPopup(){const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:v,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:v,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});const Y=this.popupRef.popupElement,{min:Fe,max:Qt}=this.width;Y.style.minWidth=Fe,Y.style.width=Qt,Y.style.height=this.height,this.renderer.setAttribute(Y,"dir",this.direction),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","true"),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})}destroyPopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","false"),""!==this.filter&&(this.filter="",this.allNodesHidden=!1,(0,z.g$)(this.filterChange)&&this._zone.run(()=>{this.filterChange.emit("")})))}subscribeEvents(){this.subscriptions.push(this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.navigationService.enter.pipe((0,Yn.b)(v=>v.originalEvent.preventDefault())).subscribe(()=>this.togglePopup(!0)),(0,g.T)(this.navigationService.close,this.navigationService.esc).subscribe(()=>{this.focus(),this.togglePopup(!1)}),this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),this.navigationService.up.subscribe(this.handleUpKey.bind(this)),this.navigationService.down.subscribe(this.handleDownKey.bind(this)),this.navigationService.left.pipe((0,Hn.h)(()=>!this.isTreeViewActive)).subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.pipe((0,Hn.h)(()=>!this.isTreeViewActive)).subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.home.pipe((0,Hn.h)(()=>!this.isOpen)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe((0,Hn.h)(()=>!this.isOpen)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe((0,Hn.h)(()=>this.isTagFocused)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe((0,Hn.h)(()=>this.isTagFocused)).subscribe(this.handleDelete.bind(this)))}handleTabKey(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())}handleUpKey(v){if(!this.treeview||(v.originalEvent.preventDefault(),this.isWrapperActive))return;const d="0"===this.treeview.navigationService.activeIndex;this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&d?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||d)&&(this.filterable?this.filterInput.nativeElement.focus():this.focus())}handleDownKey(v){!this.treeview||(v.originalEvent.preventDefault(),this.filterable&&this.isWrapperActive?this.filterInput.nativeElement.focus():this.checkAll&&(this.isWrapperActive||this.isFilterActive)?this.checkAllInput.nativeElement.focus():this.treeview.isActive||this.treeview.focus(),this.focusedTagIndex=void 0)}handleRightKey(v){v.originalEvent.preventDefault();const d=this.tags.length-1;this.focusedTagIndex===d?this.focusedTagIndex=void 0:this.focusedTagIndexv.unsubscribe())}removeTreeViewFromTabOrder(){this.treeview.element.nativeElement.querySelectorAll("li").forEach(d=>{"0"===d.getAttribute("tabindex")&&(this.lastNodeOnFocus=d,this.lastNodeOnFocus.setAttribute("tabindex","-1"))})}setState(){Bn(this.dataItems)&&Bn(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()}setTags(){const v=this.dataItems.map(d=>d.dataItem);this.tags=this.tagMapper(v),this.disabledIndices=this.disabledItemsMapper()}updateValue(v){const d=v.map(this.valuePrimitive?M=>Rc(M,this.valueField):M=>M.dataItem);this.value=d,this.emitValueChange(this.value)}disabledItemsMapper(){return new Set(this.dataItems.reduce((v,d,M)=>(this.itemDisabled(d.dataItem,d.index)&&v.push(M),v),[]))}};ks.\u0275fac=function(v){return new(v||ks)(e.Y36(Te.qL),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(Vo),e.Y36(e.R0b),e.Y36(ct.oQ),e.Y36(e.sBO),e.Y36(sl,8))},ks.\u0275cmp=e.Xpm({type:ks,selectors:[["kendo-multiselecttree"]],contentQueries:function(v,d,M){if(1&v&&(e.Suo(M,xs,5),e.Suo(M,ra,5),e.Suo(M,La,5),e.Suo(M,Jo,5),e.Suo(M,pa,5),e.Suo(M,fc,5)),2&v){let Y;e.iGM(Y=e.CRH())&&(d.headerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.footerTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.nodeTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.noDataTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.tagTemplate=Y.first),e.iGM(Y=e.CRH())&&(d.groupTagTemplate=Y.first)}},viewQuery:function(v,d){if(1&v&&(e.Gf(Er,5),e.Gf(Ro,7),e.Gf(ho,7),e.Gf(ia,7,e.s_b),e.Gf(da,5),e.Gf(vh,5)),2&v){let M;e.iGM(M=e.CRH())&&(d.treeview=M.first),e.iGM(M=e.CRH())&&(d.popupTemplate=M.first),e.iGM(M=e.CRH())&&(d.wrapper=M.first),e.iGM(M=e.CRH())&&(d.container=M.first),e.iGM(M=e.CRH())&&(d.filterInput=M.first),e.iGM(M=e.CRH())&&(d.checkAllInput=M.first)}},hostVars:5,hostBindings:function(v,d){2&v&&(e.uIk("dir",d.direction),e.ekj("k-widget",d.hostClasses)("k-dropdowntree",d.hostClasses))},inputs:{valueDepth:"valueDepth",placeholder:"placeholder",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",loadOnDemand:"loadOnDemand",focusableId:"focusableId",clearButton:"clearButton",filterable:"filterable",checkAll:"checkAll",hasChildren:"hasChildren",fetchChildren:"fetchChildren",isNodeVisible:"isNodeVisible",itemDisabled:"itemDisabled",tagMapper:"tagMapper",tabindex:"tabindex",popupSettings:"popupSettings",checkableSettings:"checkableSettings",data:"data",value:"value",dataItems:"dataItems",isNodeExpanded:"isNodeExpanded",textField:"textField",valueField:"valueField",loading:"loading"},outputs:{onFocus:"focus",onBlur:"blur",open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",valueChange:"valueChange",removeTag:"removeTag",filterChange:"filterChange"},exportAs:["kendoMultiSelectTree"],features:[e._Bn([ct.oQ,Vo,Ao,Ur,fo,{provide:ct.mM,useValue:"kendo.multiselecttree"},{multi:!0,provide:je.JU,useExisting:(0,e.Gpc)(()=>Wa)},{provide:os,useExisting:(0,e.Gpc)(()=>Wa)},{provide:ws,useExisting:(0,e.Gpc)(()=>Wa)},{provide:z.GX,useExisting:(0,e.Gpc)(()=>Wa)}]),e.TTD],decls:11,vars:28,consts:function(){let _,v,d;return _=$localize`:kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items␟1689309191709bbbb071c889072707cb3f12dc93␟5589893825114548617:NO DATA FOUND`,v=$localize`:kendo.multiselecttree.clearTitle|The title of the clear button␟f99cf5ed2ae05c7d1df8dc97f56176a4934c8db9␟7268188619735862842:clear`,d=$localize`:kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox␟7213da1304801b92c6dd35231b5305408e2734e3␟4511060501589211517:Check all`,[["kendoMultiSelectTreeLocalizedMessages","","noDataText",_,"clearTitle",v,"checkAllText",d],["role","listbox","aria-haspopup","tree",3,"ngClass","kendoEventsOutsideAngular","scope","click","keydown"],["wrapper",""],[3,"id","tags","focused","textField","valueField","valueDepth","disabled","tagPrefix","template","groupTemplate","disabledIndices","removeTag"],["class","k-input k-readonly",4,"ngIf"],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"click",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],["container",""],[1,"k-input","k-readonly"],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"click"],[1,"k-icon","k-i-loading"],["class","k-list-filter",4,"ngIf"],[4,"ngIf"],["class","k-check-all",4,"ngIf"],["kendoMultiSelectTreeCheckable","",3,"nodes","animate","checkable","checkedItems","valueField","textField","children","hasChildren","isExpanded","isDisabled","nodeTemplate","loadOnDemand","filter","isVisible","kendoEventsOutsideAngular","scope","keydown","nodeClick","expand","collapse","checkedItemsChange"],["treeview",""],["class","k-nodata",4,"ngIf"],[1,"k-list-filter"],["role","textbox","aria-haspopup","true","aria-expanded","false","tabindex","0","aria-disabled","false","aria-readonly","false",1,"k-textbox",3,"filterInput","ngModel","kendoEventsOutsideAngular","scope","input","keydown","ngModelChange"],["filterInput",""],[1,"k-icon","k-i-zoom"],[3,"templateContext"],[1,"k-check-all"],["type","checkbox","role","checkbox","tabindex","0","aria-disabled","false","aria-readonly","false",1,"k-checkbox",3,"checkAll","treeview","checkedItems","valueField","lastAction","kendoEventsOutsideAngular","scope","checkedItemsChange","keydown"],["checkAllInput",""],[1,"k-checkbox-label",3,"click","mousedown"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(v,d){1&v&&(e.GkF(0,0),e.TgZ(1,"div",1,2),e.NdJ("click",function(){return d.handleClick()})("keydown",function(Y){return d.handleKeydown(Y)}),e.TgZ(3,"kendo-taglist",3),e.NdJ("removeTag",function(Y){return d.handleRemoveTag(Y)}),e.qZA(),e.YNc(4,pl,2,1,"span",4),e.YNc(5,Bs,1,1,"span",5),e.YNc(6,_h,1,0,"span",6),e.qZA(),e.YNc(7,lp,7,25,"ng-template",null,7,e.W1O),e.GkF(9,null,8)),2&v&&(e.xp6(1),e.Q6J("ngClass",e.VKq(23,cp,d.disabled))("kendoEventsOutsideAngular",e.WLB(25,Aa,d.handleFocus,d.handleBlur))("scope",d),e.uIk("aria-describedby",d.tagListId)("aria-readonly",d.readonly)("aria-activedescendant",d.focusedTagId)("tabindex",d.tabindex)("id",d.focusableId)("dir",d.direction),e.xp6(2),e.Q6J("id",d.tagListId)("tags",d.tags)("focused",d.focusedTagIndex)("textField",d.textField)("valueField",d.valueField)("valueDepth",d.valueDepth)("disabled",d.disabled)("tagPrefix",d.tagPrefix)("template",d.tagTemplate)("groupTemplate",d.groupTagTemplate)("disabledIndices",d.disabledIndices),e.xp6(1),e.Q6J("ngIf",!d.tags||!d.tags.length),e.xp6(1),e.Q6J("ngIf",!d.disabled&&!d.loading&&!d.readonly&&d.clearButton&&(null==d.tags?null:d.tags.length)),e.xp6(1),e.Q6J("ngIf",d.loading))},directives:function(){return[ma,Ze.mk,z.nV,uu,Ze.O5,$s,Eh,je.Fj,Th,je.JJ,je.On,Ml,h1]},encapsulation:2}),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-dropdowntree"),r("design:type",Boolean)],ks.prototype,"hostClasses",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],ks.prototype,"direction",void 0),p([(0,e.aQ5)(xs,{static:!1}),r("design:type",xs)],ks.prototype,"headerTemplate",void 0),p([(0,e.aQ5)(ra,{static:!1}),r("design:type",ra)],ks.prototype,"footerTemplate",void 0),p([(0,e.aQ5)(La,{static:!1}),r("design:type",La)],ks.prototype,"nodeTemplate",void 0),p([(0,e.aQ5)(Jo,{static:!1}),r("design:type",Jo)],ks.prototype,"noDataTemplate",void 0),p([(0,e.aQ5)(pa,{static:!1}),r("design:type",pa)],ks.prototype,"tagTemplate",void 0),p([(0,e.aQ5)(fc,{static:!1}),r("design:type",fc)],ks.prototype,"groupTagTemplate",void 0),p([(0,e.i9L)("popupTemplate",{static:!0}),r("design:type",e.Rgc)],ks.prototype,"popupTemplate",void 0),p([(0,e.i9L)("wrapper",{static:!0}),r("design:type",e.SBq)],ks.prototype,"wrapper",void 0),p([(0,e.i9L)("container",{read:e.s_b,static:!0}),r("design:type",e.s_b)],ks.prototype,"container",void 0),p([(0,e.i9L)("treeview",{static:!1}),r("design:type",$s),r("design:paramtypes",[$s])],ks.prototype,"treeview",null),p([(0,e.i9L)("filterInput",{static:!1}),r("design:type",e.SBq)],ks.prototype,"filterInput",void 0),p([(0,e.i9L)("checkAllInput",{static:!1}),r("design:type",e.SBq)],ks.prototype,"checkAllInput",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],ks.prototype,"tabindex",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ks.prototype,"popupSettings",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],ks.prototype,"checkableSettings",null),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],ks.prototype,"data",null),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],ks.prototype,"value",null),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],ks.prototype,"dataItems",null),p([(0,e.IIB)(),r("design:type",Object)],ks.prototype,"textField",void 0),p([(0,e.IIB)(),r("design:type",Object)],ks.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",Array)],ks.prototype,"valueDepth",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ks.prototype,"loading",void 0),p([(0,e.IIB)(),r("design:type",String)],ks.prototype,"placeholder",void 0),p([(0,e.IIB)(),r("design:type",Number)],ks.prototype,"listHeight",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ks.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ks.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ks.prototype,"valuePrimitive",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ks.prototype,"loadOnDemand",void 0),p([(0,e.IIB)(),r("design:type",String)],ks.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ks.prototype,"clearButton",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ks.prototype,"filterable",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],ks.prototype,"checkAll",void 0),p([(0,e.IIB)(),r("design:type",Function)],ks.prototype,"hasChildren",void 0),p([(0,e.IIB)(),r("design:type",Function)],ks.prototype,"fetchChildren",void 0),p([(0,e.IIB)(),r("design:type",Function)],ks.prototype,"isNodeExpanded",void 0),p([(0,e.IIB)(),r("design:type",Function)],ks.prototype,"isNodeVisible",void 0),p([(0,e.IIB)(),r("design:type",Function)],ks.prototype,"itemDisabled",void 0),p([(0,e.IIB)(),r("design:type",Object)],ks.prototype,"tagMapper",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],ks.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],ks.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"open",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"opened",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"close",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"closed",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"nodeExpand",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"nodeCollapse",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"removeTag",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],ks.prototype,"filterChange",void 0),ks=Wa=p([K(7,(0,e.FiY)()),K(7,(0,e.tBr)(sl)),r("design:paramtypes",[Te.qL,e.Qsj,e.SBq,Vo,e.R0b,ct.oQ,e.sBO,Boolean])],ks);let uu=(()=>{let _=class{constructor(){this.disabledIndices=new Set,this.removeTag=new e.vpe}tagProp(d,M,Y){const Fe=M&&this.getPropField(d,M,Y);return ts(d,Fe)}isTagDisabled(d,M){return this.isGroupTag(d)?d.every((Y,Fe)=>this.disabledIndices.has(Fe+M)):this.disabledIndices.has(M)}deleteTag(d,M,Y){d.preventDefault(),d.stopImmediatePropagation(),!this.disabled&&1===d.which&&this.removeTag.emit({tag:M,index:Y})}itemId(d,M){if(d)return this.tagPrefix+"-"+this.tagProp(d,this.valueField,M)}isGroupTag(d){return d instanceof Array}tagAriaHidden(d){return Bn(this.focused)&&this.focused!==d}getPropField(d,M,Y){const Fe=M.length-1;if("string"==typeof M)return M;if(this.valueDepth){const Qt=this.valueDepth[Y];return FeQt in d)}};return _.\u0275fac=function(d){return new(d||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["kendo-taglist"]],inputs:{disabledIndices:"disabledIndices",tags:"tags",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",focused:"focused",template:"template",groupTemplate:"groupTemplate",disabled:"disabled",tagPrefix:"tagPrefix",id:"id"},outputs:{removeTag:"removeTag"},decls:2,vars:2,consts:[[1,"k-reset"],["role","option","aria-selected","true","class","k-button",3,"ngClass",4,"ngFor","ngForOf"],["role","option","aria-selected","true",1,"k-button",3,"ngClass"],[4,"ngIf","ngIfThen","ngIfElse"],["groupTag",""],["singleTag",""],["aria-label","delete",1,"k-select"],[1,"k-icon","k-i-close",3,"mousedown"],[4,"ngIf"],[3,"ngIf"],[3,"templateContext"]],template:function(d,M){1&d&&(e.TgZ(0,"ul",0),e.YNc(1,ru,8,11,"li",1),e.qZA()),2&d&&(e.uIk("id",M.id),e.xp6(1),e.Q6J("ngForOf",M.tags))},directives:function(){return[Ze.sg,Rd,Ze.mk,Ze.O5,Ml]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Array)],_.prototype,"tags",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"textField",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",Array)],_.prototype,"valueDepth",void 0),p([(0,e.IIB)(),r("design:type",Number)],_.prototype,"focused",void 0),p([(0,e.IIB)(),r("design:type",pa)],_.prototype,"template",void 0),p([(0,e.IIB)(),r("design:type",fc)],_.prototype,"groupTemplate",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],_.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"tagPrefix",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"id",void 0),p([(0,e.IIB)(),r("design:type",Set)],_.prototype,"disabledIndices",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"removeTag",void 0),_})(),hu=(()=>{class _ extends ct.Z1{}return _.\u0275fac=function(){let v;return function(M){return(v||(v=e.n5z(_)))(M||_)}}(),_.\u0275dir=e.lG2({type:_,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"noDataText",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"clearTitle",void 0),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"checkAllText",void 0),_})();var gc;let ma=gc=class extends hu{constructor(v){super(),this.service=v}};var Dh;ma.\u0275fac=function(v){return new(v||ma)(e.Y36(ct.oQ))},ma.\u0275dir=e.lG2({type:ma,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[e._Bn([{provide:hu,useExisting:(0,e.Gpc)(()=>gc)}]),e.qOj]}),ma=gc=p([r("design:paramtypes",[ct.oQ])],ma);let dd=Dh=class extends hu{constructor(v){super(),this.service=v}get override(){return!0}};dd.\u0275fac=function(v){return new(v||dd)(e.Y36(ct.oQ))},dd.\u0275cmp=e.Xpm({type:dd,selectors:[["kendo-dropdownlist-messages"],["kendo-combobox-messages"],["kendo-multicolumncombobox-messages"],["kendo-autocomplete-messages"],["kendo-multiselect-messages"],["kendo-dropdowntree-messages"],["kendo-multiselecttree-messages"]],features:[e._Bn([{provide:hu,useExisting:(0,e.Gpc)(()=>Dh)}]),e.qOj],decls:0,vars:0,template:function(v,d){},encapsulation:2}),dd=Dh=p([r("design:paramtypes",[ct.oQ])],dd);let Th=(()=>{let _=class{constructor(d,M){this.element=d,this.zone=M}ngOnChanges(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(d){this.zone.runOutsideAngular(()=>setTimeout(d))}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.SBq),e.Y36(e.R0b))},_.\u0275dir=e.lG2({type:_,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[e.TTD]}),p([(0,e.IIB)("filterInput"),r("design:type",Boolean)],_.prototype,"focused",void 0),_=p([r("design:paramtypes",[e.SBq,e.R0b])],_),_})(),rl=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({}),_})(),zd=(()=>{let _=class{constructor(d){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=d}get focusedClassName(){return this.selectionService.isFocused(this.index)}get selectedClassName(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}onClick(d){d.stopPropagation(),(!this.checkboxes.enabled||this.checkboxes.checkOnClick)&&(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(fo))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(d,M){1&d&&e.NdJ("click",function(Fe){return M.onClick(Fe)}),2&d&&(e.uIk("index",M.index),e.Udp("height",M.height,"px")("min-height",M.height,"px"),e.ekj("k-state-focused",M.focusedClassName)("k-state-selected",M.selectedClassName))},inputs:{checkboxes:"checkboxes",multipleSelection:"multipleSelection",index:"index",height:"height"}}),p([(0,e.pfw)("attr.index"),(0,e.IIB)(),r("design:type",Number)],_.prototype,"index",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"checkboxes",void 0),p([(0,e.pfw)("style.height.px"),(0,e.pfw)("style.minHeight.px"),(0,e.IIB)(),r("design:type",Number)],_.prototype,"height",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],_.prototype,"multipleSelection",void 0),p([(0,e.pfw)("class.k-state-focused"),r("design:type",Boolean),r("design:paramtypes",[])],_.prototype,"focusedClassName",null),p([(0,e.pfw)("class.k-state-selected"),r("design:type",Boolean),r("design:paramtypes",[])],_.prototype,"selectedClassName",null),p([(0,e.L6J)("click",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],_.prototype,"onClick",null),_=p([r("design:paramtypes",[fo])],_),_})(),Ml=(()=>{let _=class{constructor(d){this.viewContainerRef=d}set templateContext(d){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),d.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(d.templateRef,d))}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.s_b))},_.\u0275dir=e.lG2({type:_,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],_.prototype,"templateContext",null),_=p([r("design:paramtypes",[e.s_b])],_),_})(),bp=(()=>{class _{addItem(d){if(this.isItemChecked(d))return;const M=Ho(d.index),Y=Object.assign({},d,{level:M});this.checkedItems.push(Y),this.checkedKeys.add(Rc(Y,this.valueField))}removeItem(d){if(!this.isItemChecked(d))return;const M=Ho(d.index),Y=Object.assign({},d,{level:M});this.checkedItems=this.checkedItems.filter(Fe=>Rc(Fe,this.valueField)!==Rc(Y,this.valueField)),this.checkedKeys.delete(Rc(Y,this.valueField))}isItemChecked(d){return this.checkedKeys.has(Rc(d,this.valueField))}updateItems(){this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(d=>Rc(d,this.valueField)))}}return _.\u0275fac=function(d){return new(d||_)},_.\u0275dir=e.lG2({type:_,inputs:{checkedItems:"checkedItems",valueField:"valueField"}}),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",Array)],_.prototype,"checkedItems",void 0),_})(),Eh=(()=>{let _=class extends bp{constructor(d){super(),this.treeView=d,this.checkedItemsChange=new e.vpe,this.checkedKeys=new Set,this.subscriptions=new He.w0,this.subscriptions.add(this.treeView.checkedChange.subscribe(this.handleCheckedChange.bind(this))),this.treeView.isChecked=this.getCheckedState.bind(this)}ngOnChanges(d){Bn(d.checkable)&&this.toggleCheckOnClick(),Bn(d.checkedItems)&&this.updateItems()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.unsubscribeClick()}getCheckedState(d,M){return this.isItemChecked({dataItem:d,index:M})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(M))?"indeterminate":"none"}handleCheckedChange(d){this.checkNode(d),this.checkable.checkChildren&&this.checkParents(d.parent),this.checkedItemsChange.emit(this.checkedItems.slice())}toggleCheckOnClick(){this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe((0,Hn.h)(d=>"click"===d.type)).subscribe(d=>{const M=this.treeView.itemLookup(d.item.index);this.handleCheckedChange(M)}))}unsubscribeClick(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)}checkNode(d){if(this.treeView.isDisabled(d.item.dataItem,d.item.index))return;const M=d.item,Y=[M];this.checkable.checkChildren&&xh(d,gn=>this.treeView.isVisible(gn.dataItem,gn.index)&&!this.treeView.isDisabled(gn.dataItem,gn.index)).forEach(gn=>Y.push(gn.item));const Fe=!this.isItemChecked(M);Y.forEach(Qt=>{Fe?this.addItem(Qt):this.removeItem(Qt)})}checkParents(d){let M=d;for(;M;)M.children.every(Fe=>this.isItemChecked(Fe))?this.addItem(M.item):this.removeItem(M.item),M=M.parent}isItemIndeterminate(d){const M=d.children;if(!Array.isArray(M)||0===M.length)return!1;let Y=0,Fe=M[Y];for(;Bn(Fe);){if(this.isItemChecked(Fe.item)||this.isItemIndeterminate(Fe))return!0;Y+=1,Fe=M[Y]}return!1}};return _.\u0275fac=function(d){return new(d||_)(e.Y36($s))},_.\u0275dir=e.lG2({type:_,selectors:[["","kendoMultiSelectTreeCheckable",""]],inputs:{checkable:"checkable",valueField:"valueField",checkedItems:"checkedItems"},outputs:{checkedItemsChange:"checkedItemsChange"},features:[e.qOj,e.TTD]}),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"checkable",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"valueField",void 0),p([(0,e.IIB)(),r("design:type",Array)],_.prototype,"checkedItems",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"checkedItemsChange",void 0),_=p([r("design:paramtypes",[$s])],_),_})(),h1=(()=>{let _=class extends bp{constructor(d,M,Y,Fe){super(),this.element=d,this.zone=M,this.cdr=Y,this.renderer=Fe,this.checkedItemsChange=new e.vpe,this.checkedKeys=new Set}handleChange(d){this.currentCheckedState=d.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map((M,Y)=>{const Fe=String(Y),Qt=this.treeview.itemLookup(Fe);this.checkNode(Qt)}),this.checkedItemsChange.emit(this.checkedItems.slice())}get isIndeterminate(){const d=this.treeview.nodes.some((M,Y)=>{const Fe=String(Y),Qt=this.treeview.itemLookup(Fe);return this.someChecked(Qt)});return!this.isChecked&&d}get isChecked(){return this.treeview.nodes.every((M,Y)=>{const Fe=String(Y),Qt=this.treeview.itemLookup(Fe);return this.allChecked(Qt)})}ngOnChanges(d){Bn(d.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))}ngOnInit(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(d){this.zone.runOutsideAngular(()=>setTimeout(d))}checkNode(d){if(this.treeview.isDisabled(d.item.dataItem,d.item.index))return;const M=[];M.push(d.item),xh(d,Fe=>this.treeview.isVisible(Fe.dataItem,Fe.index)&&!this.treeview.isDisabled(Fe.dataItem,Fe.index)).forEach(Fe=>M.push(Fe.item)),M.forEach(Fe=>{this.currentIndeterminateState?"check"===this.lastAction?this.addItem(Fe):this.removeItem(Fe):this.currentCheckedState?this.addItem(Fe):this.removeItem(Fe)})}allChecked(d){const M=d&&d.children;return Array.isArray(M)?M.every(Fe=>Fe.children.length?this.isItemChecked(Fe.item)&&this.allChecked(Fe):this.isItemChecked(Fe.item))&&this.isItemChecked(d.item):void 0}someChecked(d){const M=d&&d.children;return Array.isArray(M)?M.some(Fe=>Fe.children.length?this.isItemChecked(Fe.item)||this.someChecked(Fe):this.isItemChecked(Fe.item))||this.isItemChecked(d.item):void 0}};return _.\u0275fac=function(d){return new(d||_)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj))},_.\u0275dir=e.lG2({type:_,selectors:[["","checkAll",""]],hostBindings:function(d,M){1&d&&e.NdJ("change",function(Fe){return M.handleChange(Fe.target)})},inputs:{lastAction:"lastAction",treeview:"treeview",checkedItems:"checkedItems",valueField:"valueField",focused:["checkAll","focused"]},outputs:{checkedItemsChange:"checkedItemsChange"},features:[e.qOj,e.TTD]}),p([(0,e.IIB)(),r("design:type",String)],_.prototype,"lastAction",void 0),p([(0,e.IIB)(),r("design:type",$s)],_.prototype,"treeview",void 0),p([(0,e.IIB)(),r("design:type",Array)],_.prototype,"checkedItems",void 0),p([(0,e.IIB)(),r("design:type",Object)],_.prototype,"valueField",void 0),p([(0,e.IIB)("checkAll"),r("design:type",Boolean)],_.prototype,"focused",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],_.prototype,"checkedItemsChange",void 0),p([(0,e.L6J)("change",["$event.target"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],_.prototype,"handleChange",null),_=p([r("design:paramtypes",[e.SBq,e.R0b,e.sBO,e.Qsj])],_),_})(),Nu=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[Ze.ez,je.u5,Te.Zj,z.uv,rl,z.OY],Ze.ez,je.u5,Te.Zj,z.uv,rl,z.OY]}),_})(),Bc=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[Nu,_r],rl]}),_})(),p1=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[Nu],rl]}),_})();const f1=it.Pt;let Cp=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({providers:[{provide:sl,useValue:f1}],imports:[[Nu],rl]}),_})(),Is=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[Nu],rl]}),_})();const H0=it.Pt;let Fh=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({providers:[{provide:sl,useValue:H0}],imports:[[Nu],rl]}),_})(),g1=(()=>{let _=class{};return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[p1,Cp,Is,Fh,Bc]}),_})()},8725:(St,oe,S)=>{"use strict";function p(n,i,t,s){var b,o=arguments.length,u=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,i,t,s);else for(var k=n.length-1;k>=0;k--)(b=n[k])&&(u=(o<3?b(u):o>3?b(i,t,u):b(i,t))||u);return o>3&&u&&Object.defineProperty(i,t,u),u}function K(n,i){return function(t,s){i(t,s,n)}}function r(n,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,i)}S.d(oe,{zE6:()=>IP});var e=S(5e3),z=S(3911),je=S(8306);S(8421);const{isArray:it}=Array;var g=S(515),qe=S(5403);S(3269);var X=S(6451),Le=S(9646),Te=S(7579),Ze=S(8996),he=S(727),Ne=S(7445),Me=S(4968),G=(S(1135),S(9352)),ot=S(3900),We=S(576);function ut(n,i){return(0,We.m)(i)?(0,ot.w)(()=>n,i):(0,ot.w)(()=>n)}var Mt=S(4482),Wt=(S(8737),S(5698)),Sn=S(4004),ye=S(9300),be=S(2722),Nt=(S(8537),S(3601),S(1884)),$t=S(8505),mt=(S(3239),S(8372)),Re=S(9808),zt=S(2382),Kt=S(3710);const hn=n=>null!=n,xn=n=>null==n,Mn=n=>Array.isArray(n),Rt=n=>n&&n.getTime,Ft=n=>hn(n.filters),F=(n,i,t)=>s=>n(s)?i(s):t(s),V=(...n)=>i=>n.reduceRight((t,s)=>s(t),i),Ii=("",{}),Zi=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;Ii.undefined=n=>n;const Ti=(n,i)=>{const t=n+i;if(Ii[t])return Ii[t];const s=[];return n.replace(Zi,(o,u,b,k)=>{s.push(hn(u)?u:b||k)}),Ii[t]=o=>{let u=o;for(let b=0;bi=>[n,i],Vs=()=>null,vs=n=>i=>hn(n(i)),mr=n=>i=>(n=>hn(n)&&Mn(n)&&n.length>0)(n(i)),vi=(n,i)=>F(n,i,Vs),Ms=(n,i)=>t=>n(t).map(i).join("~"),Ps=V(...[['"',""],[":","-"]].map(([i,t])=>s=>s.replace(new RegExp(i,"g"),t))),Sr=i=>i.slice(0,i.indexOf(".")),Ns=({field:n,dir:i="asc"})=>`${n}-${i}`,$r=Ti("take"),Ri=Ti("aggregates"),Pr=Ti("skip"),tn=Ti("group"),Zn=Ti("sort",!0),wn=Ms(Zn,Ns),On=Ms(tn,Ns),_i=Ms(Ri,({field:n,aggregate:i})=>`${n}-${i}`),qi=V(n=>`datetime'${n}'`,Sr,Ps,JSON.stringify,n=>new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))),vr=V(Nr("page"),({skip:n,take:i})=>Math.floor((n||0)/i)+1),Ss=V(Nr("pageSize"),$r),ds=V(Nr("group"),On),Yr=V(Nr("sort"),wn),Fr=V(Nr("aggregate"),_i),$i=(vi(vs(Pr),vr),vi(vs($r),Ss),vi(mr(tn),ds),vi(vs(Ri),Fr),V(vi(mr(Zn),Yr),n=>Object.assign({},n,{sort:(Zn(n)||[]).filter(({dir:i})=>(n=>!(n=>xn(n)||0===n.trim().length)(n))(i))})),({field:n,operator:i,value:t})=>`${n}~${i}~${t}`),Wr=(F(n=>Rt(n.value),V($i,({field:n,value:i,ignoreCase:t,operator:s})=>({value:qi(i),field:n,ignoreCase:t,operator:s})),$i),(n,i,t)=>(i[n]=t,i)),Ie=n=>i=>{const t=i[n];return hn(t)?t:i[(n=>n.replace(/(^[A-Z])/g,(i,t)=>t.toLowerCase()))(n)]},cn=(Ie("Member"),Ie("AggregateMethodName"),Ie("Value"),n=>i=>Object.keys(i).reduce(n.bind(null,i),{})),Be=cn((n,i,t)=>Wr(t.toLowerCase(),i,n[t])),Dt=cn((n,i,t)=>Wr(t,i,Be(n[t]))),xt=(n,i)=>hn(n)?n:i,en=V(({field:n,hasSubgroups:i,value:t,aggregates:s,items:o})=>({aggregates:Dt(s),field:n,items:i?o.map(en):o,value:t}),n=>({aggregates:n.Aggregates||n.aggregates,field:n.Member||n.member||n.field,hasSubgroups:n.HasSubgroups||n.hasSubgroups||!1,items:n.Items||n.items,value:xt(n.Key,xt(n.key,n.value))})),ii=(n,i)=>xn(n)?n===i?0:-1:xn(i)?1:n.localeCompare?n.localeCompare(i):n>i?1:nii(i,n),Ci=n=>{const i=Ti(n.field,!0);return(t,s)=>("asc"===n.dir?ii:ki)(i(t),i(s))},Yi=(n,i)=>0,$s=n=>i=>(t,s,o)=>i(t,n(s,o)),wa=($s(n=>n),$s(n=>n),(n,i,t,s)=>{if(t-i<2)return;const o=i+t>>>1;wa(n,i,o,s),wa(n,o,t,s),((n,i,t,s,o)=>{let u=t-i,b=s-t;const k=[];for(let yt=0;yt0&&u>0);for(;u;)n[Se++]=k[ae++],u--;for(;b;)n[Se++]=n[q++],b--})(n,i,o,t,s)}),_l=(n,i)=>{if(i.some(t=>hn(t.dir))){n=n.slice(0);const t=(n=>n.filter(i=>hn(i.dir)).map(i=>Ci(i)).reduce((i,t)=>(s,o)=>i(s,o)||t(s,o),Yi))(i);wa(n,0,n.length,t)}return n};var un=S(4743),ti=(S(2313),S(9912)),gi=S(3831),Fi=S(9788);function ue(n,i,t,s){var b,o=arguments.length,u=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,i,t,s);else for(var k=n.length-1;k>=0;k--)(b=n[k])&&(u=(o<3?b(u):o>3?b(i,t,u):b(i,t))||u);return o>3&&u&&Object.defineProperty(i,t,u),u}function fn(n,i){return function(t,s){i(t,s,n)}}function me(n,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,i)}const Wn=n=>n?new Date(n.getTime()):null,br=(n,i)=>{const t=Wn(n);return 0===i&&23===t.getHours()&&t.setHours(t.getHours()+2),t},_s=(n,i)=>{const t=Wn(n);return t.setDate(t.getDate()+i),br(t,n.getHours())},zr=(n,i,t,s=0,o=0,u=0,b=0)=>{const k=new Date(n,i,t,s,o,u,b);return n>-1&&n<100&&k.setFullYear(k.getFullYear()-1900),br(k,s)},Vi=n=>zr(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0),sr=(n,i)=>!n&&!i||n&&i&&n.getTime()===i.getTime(),lo=n=>{const i=zr(n.getFullYear(),n.getMonth()+1,1,n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds());return _s(i,-1)},_r=(n,i)=>{const t=Wn(n),o=(12+(t.getMonth()+i)%12)%12;return t.setMonth(t.getMonth()+i),((n,i)=>n.getMonth()!==i?lo(_r(n,-1)):n)(br(t,n.getHours()),o)},ro=(n,i)=>{const t=n.getMonth(),s=zr(i,t,n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds());return s.getMonth()===t?s:lo(_r(s,-1))},_o=(n,i)=>br(ro(n,n.getFullYear()+i),n.getHours()),yo=(n,i)=>_o(n,10*i),ic=(n,i)=>_o(n,100*i),yl=(n,i)=>ro(n,i(n.getFullYear())),rr=n=>yl(n,i=>i-i%100),ka=n=>yl(n,i=>i-i%100+90),na=n=>yl(n,i=>i-i%10),Va=n=>yl(n,i=>i-i%10+9),Aa=(n,i)=>{const t=n.getDate(),s=zr(n.getFullYear(),i,t,n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds());return s.getDate()===t?s:lo(_r(s,-1))},bl=n=>Aa(n,11),kl=(n,i)=>(rr(i).getFullYear()-rr(n).getFullYear())/100,Mc=(n,i)=>(na(i).getFullYear()-na(n).getFullYear())/10,Al=(n,i)=>_s(n,7*i),Oa=n=>zr(n.getFullYear(),n.getMonth(),1,n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds());var Xa=(()=>(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"}(Xa||(Xa={})),Xa))();const sc=(n,i,t=Xa.Forward)=>{const s=Wn(n),o=(i-s.getDay()+7*t)%7;return s.setDate(s.getDate()+o),br(s,n.getHours())},el=(n,i)=>12*(i.getFullYear()-n.getFullYear())+(i.getMonth()-n.getMonth()),To=n=>Aa(n,0),ja=(n,i)=>i.getFullYear()-n.getFullYear();var Ol=(()=>(function(n){n[n.Sunday=0]="Sunday",n[n.Monday=1]="Monday",n[n.Tuesday=2]="Tuesday",n[n.Wednesday=3]="Wednesday",n[n.Thursday=4]="Thursday",n[n.Friday=5]="Friday",n[n.Saturday=6]="Saturday"}(Ol||(Ol={})),Ol))();const Oe=(n,i)=>{const t=zr(n.getFullYear(),0,1,-6),o=((n,i)=>i!==Ol.Monday?_s(((n,i)=>sc(n,i,Xa.Backward))(n,i),4):_s(n,4-(n.getDay()||7)))(n,i).getTime()-t.getTime(),u=Math.floor(o/864e5);return 1+Math.floor(u/7)},ve=(n,i=Ol.Monday)=>{n=Vi(n);const t=_s(n,-7),s=_s(n,7),o=Oe(n,i);return 0===o?Oe(t,i)+1:53===o&&Oe(s,i)>1?1:o};var se=S(5422),Qe=S(4707),pt=S(9841),Vt=S(6406),rn=S(5026);const Kn=["*"],Wi=["list"];function fr(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw().$implicit,s=e.oxw();e.Oqu(s.service.navigationTitle(t))}}function Ai(n,i){}const Ir=function(n,i,t){return{$implicit:n,activeView:i,date:t}};function Br(n,i){if(1&n&&(e.TgZ(0,"li"),e.TgZ(1,"span"),e.YNc(2,fr,1,1,"ng-template",5),e.YNc(3,Ai,0,0,"ng-template",6),e.qZA(),e.qZA()),2&n){const t=i.$implicit,s=i.index,o=e.oxw();e.uIk("data-date-index",s),e.xp6(1),e.ekj("k-calendar-navigation-marker",o.service.isRangeStart(t)),e.xp6(1),e.Q6J("ngIf",!o.templateRef),e.xp6(1),e.Q6J("ngIf",o.templateRef)("ngTemplateOutlet",o.templateRef)("ngTemplateOutletContext",e.kEZ(7,Ir,o.service.navigationTitle(t),o.activeViewValue,t))}}const Eo=function(n){return{click:n}};function ia(n,i){if(1&n&&(e.TgZ(0,"th",11),e._uU(1),e.qZA()),2&n){const t=i.$implicit,s=e.oxw(2);e.Udp("width",s.colWidth,"%"),e.xp6(1),e.Oqu(t)}}function Ro(n,i){if(1&n&&(e.TgZ(0,"table",7),e.TgZ(1,"thead",8),e.TgZ(2,"tr",9),e.YNc(3,ia,2,3,"th",10),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngForOf",t.weekNames)}}function Fa(n,i){1&n&&e._UZ(0,"col")}function jl(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"tbody",12),e.NdJ("cellClick",function(o){return e.CHM(t),e.oxw().cellClick.emit(o)})("weekNumberCellClick",function(o){return e.CHM(t),e.oxw().weekNumberCellClick.emit(o)}),e.qZA()}if(2&n){const t=i.$implicit,s=e.oxw();e.Q6J("activeView",s.activeView)("isActive",s.isActive)("min",s.min)("max",s.max)("cellUID",s.cellUID)("focusedDate",s.focusedDate)("selectedDates",s.selectedDates)("weekNumber",s.weekNumber)("templateRef",s.cellTemplateRef)("weekNumberTemplateRef",s.weekNumberTemplateRef)("viewDate",t)}}function dl(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-calendar-navigation",5),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw(2).handleNavigation(o)})("pageChange",function(){return e.CHM(t),e.oxw(2).onPageChange()}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("activeView",t.activeViewEnum)("focusedDate",t.focusedDate)("min",t.min)("max",t.max)("templateRef",null==t.navigationItemTemplate?null:t.navigationItemTemplate.templateRef)}}function Gl(n,i){if(1&n){const t=e.EpF();e.ynx(0),e.YNc(1,dl,1,5,"kendo-calendar-navigation",2),e.TgZ(2,"kendo-calendar-viewlist",3),e.NdJ("todayButtonClick",function(o){return e.CHM(t),e.oxw().handleDateChange({selectedDates:[o],focusedDate:o})})("cellClick",function(o){return e.CHM(t),e.oxw().handleCellClick(o)})("weekNumberCellClick",function(o){return e.CHM(t),e.oxw().handleWeekNumberClick(o)})("activeDateChange",function(o){return e.CHM(t),e.oxw().handleActiveDateChange(o)})("pageChange",function(){return e.CHM(t),e.oxw().onPageChange()}),e.qZA(),e.TgZ(3,"kendo-resize-sensor",4),e.NdJ("resize",function(){return e.CHM(t),e.oxw().onResize()}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();let s;e.xp6(1),e.Q6J("ngIf",t.navigation),e.xp6(1),e.Q6J("activeView",t.activeViewEnum)("isActive",t.isActive)("cellTemplateRef",null==(s=t.activeCellTemplate())?null:s.templateRef)("headerTitleTemplateRef",null==t.headerTitleTemplate?null:t.headerTitleTemplate.templateRef)("weekNumberTemplateRef",null==t.weekNumberTemplate?null:t.weekNumberTemplate.templateRef)("cellUID",t.cellUID)("min",t.min)("max",t.max)("focusedDate",t.focusedDate)("weekNumber",t.weekNumber)("selectedDates",t.selectedDates)}}function bo(n,i){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"kendo-multiviewcalendar",6,7),e.NdJ("activeViewChange",function(o){return e.CHM(t),e.oxw().handleActiveViewChange(o)})("navigate",function(o){return e.CHM(t),e.oxw().navigate.emit(o)})("valueChange",function(o){e.CHM(t);const u=e.MAs(2);return e.oxw().handleMultiViewCalendarValueChange(o,u.focusedDate)}),e._UZ(3,"kendo-multiviewcalendar-messages",8),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("views",1)("min",t.min)("max",t.max)("isActive",t.isActive)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("weekNumber",t.weekNumber)("animateNavigation",t.animateNavigation)("cellTemplate",t.activeCellTemplate())("monthCellTemplate",t.monthCellTemplate)("yearCellTemplate",t.yearCellTemplate)("decadeCellTemplate",t.decadeCellTemplate)("centuryCellTemplate",t.centuryCellTemplate)("headerTitleTemplate",t.headerTitleTemplate)("weekNumberTemplate",t.weekNumberTemplate)("focusedDate",t.focusedDate)("selection",t.selection)("value",t.value)("disabledDates",t.disabledDates),e.xp6(2),e.Q6J("today",t.localization.get("today"))("prevButtonTitle",t.localization.get("prevButtonTitle"))("nextButtonTitle",t.localization.get("nextButtonTitle"))}}const Ul=["dateInput"],ah=["wrap"];function Xd(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"span",6),e.NdJ("mousedown",function(o){return o.preventDefault()}),e.TgZ(1,"span",7),e.NdJ("mousedown",function(){e.CHM(t);const o=e.oxw();return o.arrowDirection=o.arrow.Up})("mouseleave",function(){e.CHM(t);const o=e.oxw();return o.arrowDirection=o.arrow.None})("click",function(){return e.CHM(t),e.oxw().handleButtonClick(1)}),e._UZ(2,"span",8),e.qZA(),e.TgZ(3,"span",9),e.NdJ("click",function(){return e.CHM(t),e.oxw().handleButtonClick(-1)})("mousedown",function(){e.CHM(t);const o=e.oxw();return o.arrowDirection=o.arrow.Down})("mouseleave",function(){e.CHM(t);const o=e.oxw();return o.arrowDirection=o.arrow.None}),e._UZ(4,"span",10),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.ekj("k-state-active",t.arrowDirection===t.arrow.Up),e.Q6J("title",t.localization.get("increment")),e.uIk("aria-label",t.localization.get("increment")),e.xp6(2),e.ekj("k-state-active",t.arrowDirection===t.arrow.Down),e.Q6J("title",t.localization.get("decrement")),e.uIk("aria-label",t.localization.get("decrement"))}}const Po=function(n,i,t,s,o,u,b){return{click:n,focus:i,mousedown:t,touchstart:s,dragstart:o,drop:u,blur:b}},rc=["container"],oc=["popupTemplate"],Ua=["wrapper"];function Ou(n,i){}const ho=function(n){return{keydown:n}};function qc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-calendar",9,10),e.NdJ("valueChange",function(o){e.CHM(t);const u=e.oxw();return u.handleChange(u.mergeTime(o))}),e._UZ(2,"kendo-calendar-messages",11),e.qZA(),e.YNc(3,Ou,0,0,"ng-template")}if(2&n){const t=e.oxw();e.Q6J("type",t.calendarType)("min",t.min)("max",t.max)("navigation",t.navigation)("animateNavigation",t.animateCalendarNavigation)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("weekNumber",t.weekNumber)("cellTemplate",t.cellTemplate)("monthCellTemplate",t.monthCellTemplate)("yearCellTemplate",t.yearCellTemplate)("decadeCellTemplate",t.decadeCellTemplate)("centuryCellTemplate",t.centuryCellTemplate)("weekNumberTemplate",t.weekNumberTemplate)("headerTitleTemplate",t.headerTitleTemplate)("navigationItemTemplate",t.navigationItemTemplate)("focusedDate",t.focusedDate)("value",t.value)("kendoEventsOutsideAngular",e.VKq(25,ho,t.handleKeydown))("scope",t)("disabledDates",t.disabledDates),e.xp6(2),e.Q6J("today",t.localization.get("today"))("prevButtonTitle",t.localization.get("prevButtonTitle"))("nextButtonTitle",t.localization.get("nextButtonTitle"))}}const ca=function(n,i){return{click:n,mousedown:i}},Fl=function(n,i){return{keydown:n,mousedown:i}};function po(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-timeselector",9,10),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().handleChange(o)})("valueReject",function(){return e.CHM(t),e.oxw().handleReject()}),e._UZ(2,"kendo-timeselector-messages",11),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("cancelButton",t.cancelButton)("nowButton",t.nowButton)("format",t.format)("min",t.min)("max",t.max)("steps",t.steps)("value",t.value)("kendoEventsOutsideAngular",e.WLB(15,Fl,t.handleKeydown,t.handleMousedown))("scope",t),e.xp6(2),e.Q6J("acceptLabel",t.localization.get("acceptLabel"))("accept",t.localization.get("accept"))("cancelLabel",t.localization.get("cancelLabel"))("cancel",t.localization.get("cancel"))("nowLabel",t.localization.get("nowLabel"))("now",t.localization.get("now"))}}function eu(n,i){if(1&n&&(e.TgZ(0,"button",25),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.Q6J("kendoEventsOutsideAngular",e.VKq(5,Eo,t.handleCancel))("scope",t),e.uIk("title",t.localization.get("cancelLabel"))("aria-label",t.localization.get("cancelLabel")),e.xp6(1),e.hij(" ",t.localization.get("cancel")," ")}}const lh=function(n,i){return{mousedown:n,keydown:i}},wd=function(n,i){return{focusin:n,focusout:i}},Sl=function(n,i){return{click:n,keydown:i}},Fu=function(n){return{transitionend:n}},Ic=function(n,i,t){return{keydown:n,focusin:i,focusout:t}};function xd(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",9),e.TgZ(1,"div",10),e.TgZ(2,"div",11),e.TgZ(3,"button",12),e._uU(4),e.qZA(),e.TgZ(5,"button",13),e._uU(6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",14,15),e.TgZ(9,"div",16),e.TgZ(10,"kendo-calendar",17),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().calendarValue=o})("valueChange",function(){return e.CHM(t),e.oxw().handleCalendarValueChange()}),e._UZ(11,"kendo-calendar-messages",18),e.qZA(),e.qZA(),e.TgZ(12,"div",19),e.TgZ(13,"kendo-timeselector",20),e._UZ(14,"kendo-timeselector-messages",21),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",22),e.YNc(16,eu,2,7,"button",23),e.TgZ(17,"button",24),e._uU(18),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.MAs(8),s=e.oxw();e.Gre("k-datetime-wrap k-",s.activeTab,"-tab"),e.Q6J("kendoEventsOutsideAngular",e.WLB(62,lh,s.preventMouseDown,s.handleKeyDown))("scope",s),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.WLB(65,wd,s.handleFocus,s.handleBlur))("scope",s),e.xp6(2),e.ekj("k-state-active","date"===s.activeTab),e.Q6J("kendoEventsOutsideAngular",e.WLB(68,Sl,s.changeActiveTab.bind(s,"date"),s.handleBackTabOut))("scope",s),e.uIk("title",s.localization.get("dateTabLabel"))("aria-label",s.localization.get("dateTabLabel")),e.xp6(1),e.hij(" ",s.localization.get("dateTab")," "),e.xp6(1),e.ekj("k-state-active","time"===s.activeTab),e.Q6J("kendoEventsOutsideAngular",e.VKq(71,Eo,s.changeActiveTab.bind(s,"time"))),e.uIk("title",s.localization.get("timeTabLabel"))("aria-label",s.localization.get("timeTabLabel")),e.xp6(1),e.hij(" ",s.localization.get("timeTab")," "),e.xp6(1),e.Udp("transition",s.tabSwitchTransition),e.Q6J("kendoEventsOutsideAngular",e.VKq(73,Fu,s.handleTabChangeTransitionEnd.bind(s,t))),e.xp6(3),e.Q6J("value",s.calendarValue)("type",s.calendarType)("min",s.calendarMin)("max",s.calendarMax)("focusedDate",s.focusedDate)("weekNumber",s.weekNumber)("navigation",!1)("animateNavigation",s.animateCalendarNavigation)("cellTemplate",s.cellTemplate)("monthCellTemplate",s.monthCellTemplate)("yearCellTemplate",s.yearCellTemplate)("decadeCellTemplate",s.decadeCellTemplate)("centuryCellTemplate",s.centuryCellTemplate)("weekNumberTemplate",s.weekNumberTemplate)("headerTitleTemplate",s.headerTitleTemplate)("disabled",s.disableCalendar)("disabledDates",s.disabledDates),e.xp6(1),e.Q6J("today",s.localization.get("today"))("prevButtonTitle",s.localization.get("prevButtonTitle"))("nextButtonTitle",s.localization.get("nextButtonTitle")),e.xp6(2),e.Q6J("value",s.value)("format",s.timeSelectorFormat)("min",s.timeSelectorMin)("max",s.timeSelectorMax)("setButton",!1)("cancelButton",!1)("steps",s.steps)("disabled",s.disableTimeSelector),e.xp6(1),e.Q6J("now",s.localization.get("now"))("nowLabel",s.localization.get("nowLabel")),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.kEZ(75,Ic,s.handleTabOut,s.handleFocus,s.handleBlur))("scope",s),e.xp6(1),e.Q6J("ngIf",s.cancelButton),e.xp6(1),e.Q6J("disabled",!s.calendarValue)("kendoEventsOutsideAngular",e.VKq(79,Eo,s.handleAccept))("scope",s),e.uIk("title",s.localization.get("acceptLabel"))("aria-label",s.localization.get("acceptLabel")),e.xp6(1),e.hij(" ",s.localization.get("accept")," ")}}const ul=function(n,i){return{mousedown:n,click:i}};function Xc(n,i){if(1&n&&(e.TgZ(0,"caption",7),e._uU(1),e.qZA()),2&n){const t=e.oxw().date,s=e.oxw();e.Q6J("ngClass",s.getCaptionClass()),e.xp6(1),e.Oqu(s.getCaptionTitle(t))}}function ko(n,i){if(1&n&&(e.TgZ(0,"th",11),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function $l(n,i){if(1&n&&(e.TgZ(0,"thead",8),e.TgZ(1,"tr",9),e.YNc(2,ko,2,1,"th",10),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",t.weekNames)}}function Dc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"table",3),e.YNc(1,Xc,2,2,"caption",4),e.YNc(2,$l,3,1,"thead",5),e.TgZ(3,"tbody",6),e.NdJ("cellClick",function(o){return e.CHM(t),e.oxw().cellClick.emit(o)})("weekNumberCellClick",function(o){return e.CHM(t),e.oxw().weekNumberCellClick.emit(o)})("cellEnter",function(o){return e.CHM(t),e.oxw().cellEnter.emit(o)})("cellLeave",function(o){return e.CHM(t),e.oxw().cellLeave.emit(o)}),e.qZA(),e.qZA()}if(2&n){const t=i.date,s=i.className,o=e.oxw();e.Q6J("ngClass",s),e.xp6(1),e.Q6J("ngIf",o.showViewHeader),e.xp6(1),e.Q6J("ngIf",o.isMonthView()),e.xp6(1),e.Q6J("activeView",o.activeView)("isActive",o.isActive)("min",o.min)("max",o.max)("cellUID",o.cellUID)("focusedDate",o.focusedDate)("selectedDates",o.selectedDates)("selectionRange",o.selectionRange)("activeRangeEnd",o.activeRangeEnd)("weekNumber",o.weekNumber)("templateRef",o.cellTemplateRef)("weekNumberTemplateRef",o.weekNumberTemplateRef)("viewDate",t)}}function Rl(n,i){}const tu=function(n){return{date:n,className:"k-pointer-events-none"}};function $a(n,i){if(1&n&&e.YNc(0,Rl,0,0,"ng-template",12),2&n){const t=e.oxw(),s=e.MAs(1);e.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",e.VKq(2,tu,t.nextAnimationDate))}}function tl(n,i){}const ch=function(n){return{date:n}};function Gr(n,i){if(1&n&&e.YNc(0,tl,0,0,"ng-template",12),2&n){const t=i.$implicit;e.oxw();const s=e.MAs(1);e.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",e.VKq(2,ch,t))}}function ac(n,i){}function dh(n,i){if(1&n&&e.YNc(0,ac,0,0,"ng-template",12),2&n){const t=e.oxw(),s=e.MAs(1);e.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",e.VKq(2,tu,t.prevAnimationDate))}}function uh(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.title)}}function Ru(n,i){}function Ma(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){return e.CHM(t),e.oxw().prevButtonClick.emit()}),e._UZ(1,"span",9),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("disabled",t.isPrevDisabled)("title",t.prevButtonTitle),e.uIk("aria-disabled",t.isPrevDisabled)}}function Tc(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){return e.CHM(t),e.oxw().nextButtonClick.emit()}),e._UZ(1,"span",11),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("disabled",t.isNextDisabled)("title",t.nextButtonTitle),e.uIk("aria-disabled",t.isNextDisabled)}}const ed=["kendoCalendarView",""];function Kh(n,i){1&n&&(e.TgZ(0,"td",3),e._uU(1,"\xa0"),e.qZA())}function hh(n,i){if(1&n&&(e.TgZ(0,"tr",4),e.TgZ(1,"th",5),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("colSpan",t.colSpan),e.xp6(1),e.Oqu(t.title)}}function qh(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(3).$implicit,s=e.oxw();e.hij(" ",s.getWeekNumber(s.firstDate(t))," ")}}function Xr(n,i){}const Md=function(n,i){return{$implicit:n,cellContext:i}};function Id(n,i){if(1&n&&(e.TgZ(0,"td",9),e.YNc(1,qh,1,1,"ng-template",6),e.YNc(2,Xr,0,0,"ng-template",10),e.qZA()),2&n){const t=e.oxw(2).$implicit,s=e.oxw();e.Q6J("kendoEventsOutsideAngular",e.VKq(5,Eo,s.handleWeekNumberClick.bind(s,t))),e.xp6(1),e.Q6J("ngIf",!s.weekNumberTemplateRef),e.xp6(1),e.Q6J("ngIf",s.weekNumberTemplateRef)("ngTemplateOutlet",s.weekNumberTemplateRef)("ngTemplateOutletContext",e.WLB(7,Md,s.firstDate(t),s.getWeekNumberContext(t)))}}function Ec(n,i){if(1&n&&e.YNc(0,Id,3,10,"td",8),2&n){const t=e.oxw().$implicit,s=e.oxw(),o=e.MAs(1);e.Q6J("ngIf",s.firstDate(t))("ngIfElse",o)}}function Dd(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(2).$implicit;e.Oqu(t.formattedValue)}}function hl(n,i){}function sa(n,i){if(1&n&&e.YNc(0,hl,0,0,"ng-template",15),2&n){const t=e.oxw(2).$implicit,s=e.oxw(2);e.Q6J("ngTemplateOutlet",s.templateRef)("ngTemplateOutletContext",e.WLB(2,Md,t.value,t))}}function td(n,i){if(1&n&&(e.TgZ(0,"td",12),e.TgZ(1,"span",13),e.YNc(2,Dd,1,1,"ng-template",6),e.YNc(3,sa,1,5,void 0,14),e.qZA(),e.qZA()),2&n){const t=e.oxw(),s=t.$implicit,o=t.index,u=e.oxw().index,b=e.oxw();e.Q6J("ngClass",b.getStyles(s))("title",s.title),e.uIk("id",s.id)("data-cell-index",b.tableCellIndex(u,o))("aria-selected",s.isSelected||s.isRangeStart||s.isRangeMid||s.isRangeEnd)("aria-disabled",s.isDisabled),e.xp6(2),e.Q6J("ngIf",!b.templateRef),e.xp6(1),e.Q6J("ngIf",b.templateRef)}}function kc(n,i){if(1&n&&(e.ynx(0),e.YNc(1,td,4,8,"td",11),e.BQk()),2&n){const t=i.$implicit,s=e.oxw(2),o=e.MAs(1);e.xp6(1),e.Q6J("ngIf",s.shouldRenderCellContent(t))("ngIfElse",o)}}function Td(n,i){if(1&n&&(e.TgZ(0,"tr",4),e.YNc(1,Ec,1,2,"ng-template",6),e.YNc(2,kc,2,2,"ng-container",7),e.qZA()),2&n){const t=i.$implicit,s=e.oxw();e.xp6(1),e.Q6J("ngIf",s.weekNumber),e.xp6(1),e.Q6J("kForOf",t)}}function nu(n,i){if(1&n&&(e.TgZ(0,"li",3),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=i.$implicit;e.uIk("data-timelist-item-index",i.index),e.xp6(2),e.Oqu(t.text)}}const iu=["accept"],n1=["cancel"],ph=["now"],fh=["listWrapper"],lc=function(n,i,t){return{click:n,focus:i,blur:t}};function Yl(n,i){if(1&n&&(e.TgZ(0,"button",8,9),e._uU(2),e.qZA()),2&n){const t=e.oxw();e.Q6J("kendoEventsOutsideAngular",e.kEZ(6,lc,t.handleNow,t.handleFocus,t.handleBlur))("scope",t)("disabled",t.disabled),e.uIk("title",t.localization.get("nowLabel"))("aria-label",t.localization.get("nowLabel")),e.xp6(2),e.Oqu(t.localization.get("now"))}}const su=function(n,i){return{focus:n,blur:i}};function gh(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",12,13),e.TgZ(2,"span",2),e._uU(3),e.qZA(),e.TgZ(4,"kendo-timelist",14),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw(2).current=o}),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(),s=t.$implicit,o=t.index,u=e.oxw();e.xp6(3),e.Oqu(u.intl.dateFieldName(s)),e.xp6(1),e.Q6J("min",u.min)("max",u.max)("part",s)("step",u.partStep(s))("disabled",u.disabled)("value",u.current)("kendoEventsOutsideAngular",e.WLB(10,su,u.handleListFocus,u.handleBlur))("scope",u),e.uIk("data-timelist-index",o)}}function Zo(n,i){if(1&n&&(e.TgZ(0,"div",15),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.pattern," ")}}function Xh(n,i){if(1&n&&(e.YNc(0,gh,5,13,"div",10),e.YNc(1,Zo,2,1,"div",11)),2&n){const t=i.$implicit;e.Q6J("ngIf","literal"!==t.type),e.xp6(1),e.Q6J("ngIf","literal"===t.type)}}function ep(n,i){if(1&n&&(e.TgZ(0,"button",19,20),e._uU(2),e.qZA()),2&n){const t=e.oxw(2);e.Q6J("kendoEventsOutsideAngular",e.kEZ(6,lc,t.handleReject,t.handleFocus,t.handleBlur))("scope",t)("disabled",t.disabled),e.uIk("title",t.localization.get("cancelLabel"))("aria-label",t.localization.get("cancelLabel")),e.xp6(2),e.Oqu(t.localization.get("cancel"))}}function Ql(n,i){if(1&n&&(e.TgZ(0,"button",21,22),e._uU(2),e.qZA()),2&n){const t=e.oxw(2);e.Q6J("kendoEventsOutsideAngular",e.kEZ(6,lc,t.handleAccept,t.handleFocus,t.handleBlur))("scope",t)("disabled",t.disabled),e.uIk("title",t.localization.get("acceptLabel"))("aria-label",t.localization.get("acceptLabel")),e.xp6(2),e.Oqu(t.localization.get("accept"))}}function j(n,i){if(1&n&&(e.TgZ(0,"div",16),e.YNc(1,ep,3,10,"button",17),e.YNc(2,Ql,3,10,"button",18),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.cancelButton),e.xp6(1),e.Q6J("ngIf",t.setButton)}}const T={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635945725,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};var D=(()=>(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right",n[n.Up=2]="Up",n[n.Down=3]="Down",n[n.PrevView=4]="PrevView",n[n.NextView=5]="NextView",n[n.FirstInView=6]="FirstInView",n[n.LastInView=7]="LastInView",n[n.LowerView=8]="LowerView",n[n.UpperView=9]="UpperView"}(D||(D={})),D))();const pe={start:null,end:null},lt=new Date(1980,0,1),Lt=new Date(1900,0,1),Tn=new Date(2099,11,31),ei=new Date(1980,0,1),ri=new Date(1980,0,1,23,59,59),hi=n=>n&&(!n.touched||n.control&&"blur"===n.control.updateOn),Gs=n=>n.preventDefault(),lr=n=>n.relatedTarget||document.activeElement,Mi=n=>null!=n,nl=n=>null!=n,cc=n=>(i,t)=>{const s=Wn(i);return s[n](t),s},Wl=(n,i)=>{const t=Wn(n);return t.setHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),t},E0=(n,i,t)=>({candidateValue:Wl(lt,n),maxValue:_s(Wl(lt,t),i.getHours(){const s=[];for(let o=n;o!n||!(i&&i>n||t&&t{if(!n||!i||!t)return!0;const{candidateValue:s,minValue:o,maxValue:u}=E0(n,i,t);return o<=s&&s<=u},nd=(n,i)=>!nl(n)||!nl(i)||n<=i,dc=(n,i,t)=>n&&(i&&nt?Wn(t):n),vh=()=>new Date,pl=()=>Vi(new Date),Bs=n=>{},_h=()=>"undefined"!=typeof window,op=(n,i)=>n.slice(i).concat(n.slice(0,i)),wl=n=>(i,t="",s={})=>{const o=document.createElement(n);return o.className=t,Object.keys(s).map(u=>o.style[u]=s[u]),"string"==typeof i?o.innerHTML=i||"":(i||[]).forEach(u=>u&&o.appendChild(u)),o},Oc=(n,i)=>void 0!==n[i],uf=(n,i)=>n[i]&&null!=n[i].currentValue,sd=(n=[])=>n&&n[n.length-1],ap=(n,i)=>{const{start:t,end:s}=i||pe;return!(!t||!s)&&t(n=n||[]).length===(i=i||[]).length&&n.every((t,s)=>sr(t,i[s])),yh=(n,i)=>n&&i?new Date(n.getFullYear(),n.getMonth(),n.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()):null,pf=n=>n?new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59,999):null,r1=n=>Array(n.match(/S+(\1)/)[0].length).join("0"),bh=[[]],ru={[D.Left]:n=>yo(n,-1),[D.Up]:n=>yo(n,-5),[D.Right]:n=>yo(n,1),[D.Down]:n=>yo(n,5),[D.PrevView]:n=>ic(n,-1),[D.NextView]:n=>ic(n,1),[D.FirstInView]:n=>rr(n),[D.LastInView]:n=>ka(n)};let Ed=(()=>{let n=class{constructor(){this.dateRange=(t,s)=>{if(!Mi(t)||!Mi(s))return[];const o=[];let u=t;for(;u<=s;)o.push(u),u=yo(u,1);return o}}addToDate(t,s){return ic(t,s)}datesList(t,s){return Ya(0,s).map(o=>ic(t,o))}data(t){const{cellUID:s,focusedDate:o,isActiveView:u,max:b,min:k,selectedDates:ae,selectionRange:q=pe,viewDate:Se}=t;if(!Se)return bh;const yt=Ya(0,4),at=rr(Se),Ht=ka(Se),sn=pl();return Ya(0,3).map(jn=>{const oi=yo(at,4*jn);return yt.map(Pn=>{const Dn=this.normalize(yo(oi,Pn),k,b),fi=Dn.getFullYear()>Ht.getFullYear();if(!this.isInRange(Dn,k,b)||fi)return null;const zn=this.isEqual(Dn,q.start),Vn=this.isEqual(Dn,q.end),Xn=!zn&&!Vn&&ap(Dn,q);return{formattedValue:this.value(Dn),id:`${s}${Dn.getTime()}`,isFocused:this.isEqual(Dn,o),isSelected:u&&ae.some(Li=>this.isEqual(Dn,Li)),isWeekend:!1,isRangeStart:zn,isRangeMid:Xn,isRangeEnd:Vn,isRangeSplitEnd:Xn&&this.isEqual(Dn,Ht),isRangeSplitStart:Xn&&this.isEqual(Dn,at),isToday:this.isEqual(Dn,sn),title:this.cellTitle(Dn),value:Dn}})})}isEqual(t,s){return!(!t||!s)&&na(t).getFullYear()===na(s).getFullYear()}isInArray(t,s){if(!s.length)return!1;const o=t.getFullYear();return s[0].getFullYear()<=o&&o<=s[s.length-1].getFullYear()+99}isInRange(t,s,o){const u=na(t).getFullYear(),b=!s||na(s).getFullYear()<=u,k=!o||u<=na(o).getFullYear();return b&&k}beginningOfPeriod(t){if(!t)return t;const s=na(rr(t));return zr(s.getFullYear(),0,1)}lastDayOfPeriod(t){const s=ka(t),o=Va(s),u=bl(o);return lo(u)}isRangeStart(t){return t.getFullYear()%1e3==0}move(t,s){const o=ru[s];return o?o(t):t}cellTitle(t){return na(t).getFullYear().toString()}navigationTitle(t){return t?rr(t).getFullYear().toString():""}title(t){return t?`${rr(t).getFullYear()} - ${ka(t).getFullYear()}`:""}rowLength(){return 4}skip(t,s){return kl(s,t)}total(t,s){return kl(t,s)+1}value(t){return t?na(t).getFullYear().toString():""}viewDate(t,s,o=1){const u=this.total(t,s);return uo&&this.isEqual(t,o)?Wn(o):t}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})();const Bn=[[]],dp={[D.Left]:n=>_o(n,-1),[D.Up]:n=>_o(n,-5),[D.Right]:n=>_o(n,1),[D.Down]:n=>_o(n,5),[D.PrevView]:n=>yo(n,-1),[D.NextView]:n=>yo(n,1),[D.FirstInView]:n=>na(n),[D.LastInView]:n=>Va(n)};let Ia=(()=>{let n=class{constructor(){this.dateRange=(t,s)=>{if(!Mi(t)||!Mi(s))return[];const o=[];let u=t;for(;u<=s;)o.push(u),u=_o(u,1);return o}}addToDate(t,s){return yo(t,s)}datesList(t,s){return Ya(0,s).map(o=>yo(t,o))}data(t){const{cellUID:s,focusedDate:o,isActiveView:u,max:b,min:k,selectedDates:ae,selectionRange:q=pe,viewDate:Se}=t;if(!Se)return Bn;const yt=Ya(0,4),at=na(Se),Ht=Va(Se),sn=pl();return Ya(0,3).map(jn=>{const oi=_o(at,4*jn);return yt.map(Pn=>{const Dn=this.normalize(_o(oi,Pn),k,b),fi=Dn.getFullYear()>Ht.getFullYear();if(!this.isInRange(Dn,k,b)||fi)return null;const zn=this.isEqual(Dn,q.start),Vn=this.isEqual(Dn,q.end),Xn=!zn&&!Vn&&ap(Dn,q);return{formattedValue:this.value(Dn),id:`${s}${Dn.getTime()}`,isFocused:this.isEqual(Dn,o),isSelected:u&&ae.some(Li=>this.isEqual(Dn,Li)),isWeekend:!1,isRangeStart:zn,isRangeMid:Xn,isRangeEnd:Vn,isRangeSplitEnd:Xn&&this.isEqual(Dn,Ht),isRangeSplitStart:Xn&&this.isEqual(Dn,at),isToday:this.isEqual(Dn,sn),title:this.cellTitle(Dn),value:Dn}})})}isEqual(t,s){return!(!t||!s)&&t.getFullYear()===s.getFullYear()}isInArray(t,s){if(!s.length)return!1;const o=t.getFullYear();return s[0].getFullYear()<=o&&o<=s[s.length-1].getFullYear()+9}isInRange(t,s,o){const u=t.getFullYear(),b=!s||s.getFullYear()<=u,k=!o||u<=o.getFullYear();return b&&k}beginningOfPeriod(t){if(!t)return t;const s=na(t);return zr(s.getFullYear(),0,1)}lastDayOfPeriod(t){const s=Va(t),o=bl(s);return lo(o)}isRangeStart(t){return t.getFullYear()%100==0}move(t,s){const o=dp[s];return o?o(t):t}cellTitle(t){return t.getFullYear().toString()}navigationTitle(t){return t?na(t).getFullYear().toString():""}title(t){return t?`${na(t).getFullYear()} - ${Va(t).getFullYear()}`:""}rowLength(){return 4}skip(t,s){return Mc(s,t)}total(t,s){return Mc(t,s)+1}value(t){return t?t.getFullYear().toString():""}viewDate(t,s,o=1){const u=this.total(t,s);return uo&&this.isEqual(t,o)?Wn(o):t}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})();const Ad=[[]],Sh={[D.Left]:n=>_s(n,-1),[D.Up]:n=>Al(n,-1),[D.Right]:n=>_s(n,1),[D.Down]:n=>Al(n,1),[D.PrevView]:n=>_r(n,-1),[D.NextView]:n=>_r(n,1),[D.FirstInView]:n=>Oa(n),[D.LastInView]:n=>lo(n)};let wh=(()=>{let n=class{constructor(t){this._intlService=t,this.dateRange=(s,o)=>{if(!Mi(s)||!Mi(o))return[];const u=[];let b=s;for(;b<=o;)u.push(b),b=_s(b,1);return u}}addToDate(t,s){return _r(t,s)}datesList(t,s){return Ya(0,s).map(o=>_r(t,o))}data(t){const{cellUID:s,focusedDate:o,isActiveView:u,max:b,min:k,selectedDates:ae,selectionRange:q=pe,viewDate:Se,isDateDisabled:yt=(()=>!1)}=t;if(!Se)return Ad;const at=Oa(Se),Ht=Vi(at),sn=lo(Se),jn=Vi(sn),Pn=sc(at,this._intlService.firstDay(),-1),Dn=Ya(0,7),fi=pl();return Ya(0,6).map(zn=>{const Vn=_s(Pn,7*zn);return Dn.map(ui=>{const Xn=this.normalize(_s(Vn,ui),k,b),Li=Vi(Xn),es=Lijn;if(Xnb)return null;const Gn=this.isEqual(Xn,q.start),ji=this.isEqual(Xn,q.end),Cs=!Gn&&!ji&&ap(Xn,q);return{formattedValue:this.value(Xn),id:`${s}${Xn.getTime()}`,isFocused:this.isEqual(Xn,o),isSelected:u&&ae.some(yi=>this.isEqual(Xn,yi)),isWeekend:this.isWeekend(Xn),isRangeStart:Gn,isRangeMid:Cs,isRangeEnd:ji,isRangeSplitStart:Cs&&this.isEqual(Xn,at),isRangeSplitEnd:Cs&&this.isEqual(Xn,sn),isToday:this.isEqual(Xn,fi),title:this.cellTitle(Xn),value:Xn,isDisabled:yt(Xn),isOtherMonth:es}})})}isEqual(t,s){return!(!t||!s)&&Vi(t).getTime()===Vi(s).getTime()}isInArray(t,s){if(0===s.length)return!1;const o=this.beginningOfPeriod(s[0]),u=this.beginningOfPeriod(_r(s[s.length-1],1));return o<=t&&to&&this.isEqual(t,o)?Wn(o):t}wideMonthNames(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(se.aJ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[se.aJ])],n),n})();const Od=[[]],yf={[D.Left]:n=>_r(n,-1),[D.Up]:n=>_r(n,(n=>n>4?-5:n<2?-2:-7)(n.getMonth())),[D.Right]:n=>_r(n,1),[D.Down]:n=>_r(n,(n=>n<7?5:n<10?7:2)(n.getMonth())),[D.PrevView]:n=>_o(n,-1),[D.NextView]:n=>_o(n,1),[D.FirstInView]:n=>To(n),[D.LastInView]:n=>bl(n)};let Pu=(()=>{let n=class{constructor(t){this._intlService=t,this.dateRange=(s,o)=>{if(!Mi(s)||!Mi(o))return[];const u=[];let b=s;for(;b<=o;)u.push(b),b=_r(b,1);return u}}addToDate(t,s){return _o(t,s)}datesList(t,s){return Ya(0,s).map(o=>_o(t,o))}data(t){const{cellUID:s,focusedDate:o,isActiveView:u,max:b,min:k,selectedDates:ae,selectionRange:q=pe,viewDate:Se}=t;if(!Se)return Od;const yt=this.abbrMonthNames(),at=To(Se),Ht=bl(Se),sn=at.getFullYear(),jn=Ya(0,4),oi=pl();return Ya(0,3).map(Pn=>{const Dn=_r(at,4*Pn);return jn.map(fi=>{const zn=this.normalize(_r(Dn,fi),k,b),Vn=snthis.isEqual(zn,Oi)),isWeekend:!1,isRangeStart:ui,isRangeMid:es,isRangeEnd:Xn,isRangeSplitEnd:es&&this.isEqual(zn,Ht),isRangeSplitStart:es&&this.isEqual(zn,at),isToday:this.isEqual(zn,oi),title:this.cellTitle(zn),value:zn}})})}isEqual(t,s){return!(!t||!s)&&t.getFullYear()===s.getFullYear()&&t.getMonth()===s.getMonth()}isInArray(t,s){if(!s.length)return!1;const o=t.getFullYear();return s[0].getFullYear()<=o&&o<=s[s.length-1].getFullYear()}isInRange(t,s,o){const u=zr(t.getFullYear(),t.getMonth(),1),b=!s||zr(s.getFullYear(),s.getMonth(),1)<=u,k=!o||u<=zr(o.getFullYear(),o.getMonth(),1);return b&&k}beginningOfPeriod(t){return t&&zr(t.getFullYear(),0,1)}lastDayOfPeriod(t){const s=bl(t);return lo(s)}isRangeStart(t){return t.getFullYear()%10==0}move(t,s){const o=yf[s];return o?o(t):t}cellTitle(t){return`${t.getFullYear()} ${this.value(t)}`}navigationTitle(t){return this.title(t)}title(t){return t?t.getFullYear().toString():""}rowLength(){return 4}skip(t,s){return ja(s,t)}total(t,s){return ja(t,s)+1}value(t){return t?this.abbrMonthNames()[t.getMonth()]:""}viewDate(t,s,o=1){const u=this.total(t,s);return uo&&this.isEqual(t,o)?Wn(o):t}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(se.aJ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[se.aJ])],n),n})();var is=(()=>(function(n){n[n.month=0]="month",n[n.year=1]="year",n[n.decade=2]="decade",n[n.century=3]="century"}(is||(is={})),is))();const Fc={[is.month]:wh,[is.year]:Pu,[is.decade]:Ia,[is.century]:Ed};let qo=(()=>{let n=class{constructor(t){this.injector=t,this.viewChanged=new e.vpe,this.bottom=is.month,this.top=is.century}configure(t,s){this.bottom=t,this.top=s}service(t){const s=Fc[t];return s?this.injector.get(s):null}moveDown(t){this.move(t,-1)}moveUp(t){this.move(t,1)}moveToBottom(t){t!==this.bottom&&this.viewChanged.emit({view:this.bottom})}canMoveDown(t){return this.bottomthis.top?this.top:t}move(t,s){const o=this.clamp(((n,i)=>{const t=is[is[n+i]];return void 0!==t?t:n})(t,s));o!==t&&this.viewChanged.emit({view:o})}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[e.zs3])],n),n})();const rd=wl("div"),Lu=wl("ul"),Ho=wl("li"),xh=wl("td"),Rc=wl("th"),ua=wl("tr"),ha=wl("tbody"),xs=wl("thead"),ra=wl("table"),fo=(n,i)=>new Array(n).fill("1").map(i),Ao=n=>rd(n,"k-flex k-content k-calendar-content k-scrollable"),Fd=(()=>{let n;return()=>z.X_?(n||(n=rd([Ao([Lu([Ho("FEB")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null})(),Vo=({cells:n,rows:i},t,s)=>{let o;return()=>z.X_?(o||(o=((n,i,t)=>rd([rd('\n March 2017\n \n \n TODAY\n \n ',"k-calendar-header k-hstack"),t?ra([xs([ua([Rc("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Ao([n,n])],i,{left:"-10000px",position:"absolute"}))(((n,i=1)=>ra([ha([ua([Rc("1","k-calendar-th")],"k-calendar-tr")].concat(fo(n,()=>ua(fo(i,t=>xh(`${t}`,"k-calendar-td")),"k-calendar-tr"))),"k-calendar-tbody")],"k-calendar-table"))(i,n),t,s)),o):null},Jo=n=>n.querySelector(".k-scrollable"),jo=n=>(Jo(n).classList.add("k-scrollable-horizontal"),n),Zl=Vo({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Rd=Vo({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Jl=Vo({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Kl=n=>parseFloat(window.getComputedStyle(n).height)||n.offsetHeight,Pd=n=>{const i=window.getComputedStyle(n);return parseFloat(i.width)+parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)||n.offsetWidth},ou=n=>n.querySelector("tbody");let zs=(()=>{let n=class{ensureHeights(){void 0===this.calendarHeight&&this.calculateHeights()}calculateHeights(t){!(0,z.X_)()||(this.hostContainer=t,this.batch(Zl(),s=>{const o=ou(s);this.calendarHeight=Kl(s),this.monthViewHeight=Kl(o),this.headerHeight=Kl(o.children[0]),this.scrollableContentHeight=Kl(Jo(s))}),this.batch(jo(Zl()),s=>{const o=ou(s);this.calendarWidth=Pd(s),this.monthViewWidth=Pd(o),this.scrollableContentWidth=Pd(Jo(s))}),this.batch(Rd(),s=>{this.yearViewHeight=Kl(ou(s)),this.scrollableYearContentHeight=Kl(Jo(s))}),this.batch(jo(Rd()),s=>{this.yearViewWidth=Pd(ou(s))}),this.batch(Jl(),s=>{this.decadeViewHeight=Kl(ou(s)),this.centuryViewHeight=this.decadeViewHeight}),this.batch(jo(Jl()),s=>{this.decadeViewWidth=Pd(ou(s)),this.centuryViewWidth=this.decadeViewWidth}),this.batch(Fd(),s=>{this.navigationItemHeight=Kl(s.querySelector("li"))}))}viewHeight(t){return this.viewDimension(t,"height")}viewWidth(t){return this.viewDimension(t,"width")}viewDimension(t,s){const o="height"===s?"ViewHeight":"ViewWidth";switch(t){case is.month:return this[`month${o}`];case is.year:return this[`year${o}`];case is.decade:return this[`decade${o}`];case is.century:return this[`century${o}`];default:return 1}}batch(t,s){if(!Mi(this.hostContainer))return;const o=this.hostContainer.cloneNode();document.body.appendChild(o);try{s(o.appendChild(t))}catch(u){throw u}finally{document.body.removeChild(o)}}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})();class Pc{constructor(i=0,t,s){this.total=i,this.rowHeight=t,this.detailRowHeight=s,this.offsets=[],this.heights=[];let o=0;for(let u=0;uthis.rowHeight&&this.updateRowHeight(i,-1*this.detailRowHeight)}index(i){if(i<0)return;const t=this.offsets.reduce((s,o,u)=>void 0!==s?s:o===i?u:o>i?u-1:void 0,void 0);return void 0===t?this.total-1:t}offset(i){return this.offsets[i]}totalHeight(){return this.heights.reduce((i,t)=>i+t,0)}updateRowHeight(i,t){this.heights[i]+=t,this.offsets=((n,i,t)=>[...n.slice(0,i+1),...n.slice(i+1).map(s=>s+t)])(this.offsets,i,t)}}const od=n=>Math.max(n,0);class fp{constructor(i){this.offset=i}}class au{constructor(i){this.skip=i}}class gp{constructor(i){this.scrollObservable=i,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}create(i,t,s,o,u=0,b=0,k="vertical"){this.rowHeightService=i,this.firstLoaded=t,this.lastLoaded=t+s,this.take=s,this.total=o,this.lastScroll=0,this.topOffset=u,this.bottomOffset=b,this.direction=k;const ae=new Qe.t(2),q=this.rowsForHeight(u),Se=od(t-q);return ae.next(new fp(this.rowOffset(Se))),q&&ae.next(new au(Se)),this.subscription=new je.y(yt=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(at=>this.onScroll(at,yt))}).subscribe(yt=>ae.next(yt)),ae}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollLeft:i,scrollTop:t,offsetHeight:s,offsetWidth:o},u){const b="vertical"===this.direction?t:i,k="vertical"===this.direction?s:o;if(this.lastScroll===b)return;const ae=this.lastScroll>=b;this.lastScroll=b;const q=this.rowHeightService.index(od(b-this.topOffset)),Se=this.rowHeightService.index(od(b+k-this.bottomOffset));if(!ae&&Se>=this.lastLoaded&&this.lastLoaded(function(n){n[n.Backward=0]="Backward",n[n.Forward=1]="Forward"}(ys||(ys={})),ys))();const mp={[ys.Forward]:n=>i=>i+n,[ys.Backward]:n=>i=>i-n},O0={[ys.Forward]:n=>i=>Math.min(i,n),[ys.Backward]:n=>i=>Math.max(i,n)},tr={[ys.Forward]:n=>i=>ii=>i>n};let pa=(()=>{let n=class{constructor(t,s,o,u){this.container=s,this.renderer=o,this.zone=u,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new e.vpe,this.pageChange=new e.vpe,this.scrollChange=new e.vpe,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Te.x,this.scroller=t(this.dispatcher)}get horizontalClass(){return"horizontal"===this.direction}get totalVertexLength(){const t=`${this.totalSize}px`;return"vertical"===this.direction?{height:t}:{width:t}}get containerOffsetSize(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}get containerScrollSize(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}get containerScrollPosition(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}ngOnChanges(t){(t.direction||t.take||t.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}ngOnInit(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.containerScrollSubscription=this.scroll$().pipe((0,Sn.U)(t=>t.target)).subscribe(t=>{this.dispatcher.next(t),this.emitActiveIndex()})})}ngOnDestroy(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}getContainerProperty(t){return this.container.nativeElement[t]}activeIndex(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}itemIndex(t){return this.rowHeightService.index(t)}itemOffset(t){return this.rowHeightService.offset(t)}isIndexVisible(t){if(!this.rowHeightService)return!1;const s=this.containerScrollPosition,o=s+this.containerOffsetSize,u=this.rowHeightService.offset(t),b=u+this.rowHeightService.height(t);return u>=s&&b<=o}isListScrolled(t){return this.containerScrollPosition!==this.rowHeightService.offset(t)}scrollTo(t){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",t)}scrollToIndex(t){this.zone.runOutsideAngular(()=>{this.resolvedPromise.then(()=>{this.scrollTo(this.rowHeightService.offset(t))})})}scrollToBottom(){this.scrollTo(this.totalSize)}animateToIndex(t){this.animationSubscription&&this.animationSubscription.unsubscribe();const s=this.rowHeightService.offset(t),o=this.getContainerScrollDirection(s),{start:u,end:b}=this.scrollRange(s,o);if(u===b)return;const k=this.scrollStep(u,b),ae=mp[o](k),q=O0[o](b),Se=tr[o](ae(b));this.zone.runOutsideAngular(()=>{this.animationSubscription=(0,pt.a)((0,Le.of)(u),(0,Ne.F)(0,Vt.Z)).pipe((0,Sn.U)(yt=>yt[0]),(0,rn.R)(ae),function(n,i=!1){return(0,Mt.e)((t,s)=>{let o=0;t.subscribe(new qe.Q(s,u=>{const b=n(u,o++);(b||i)&&s.next(u),!b&&s.complete()}))})}(Se),(0,Sn.U)(q)).subscribe(yt=>this.scrollTo(yt))})}scrollRange(t,s){const o=this.containerScrollPosition;if(parseInt(t,10)===parseInt(o,10))return{start:t,end:t};const u=this.containerMaxScroll(),b=s===ys.Backward?1:-1,k=((n,i,t)=>Math.min(Math.abs(i-n),t))(o,t,this.maxScrollDifference),ae=Math.min(t,u);return{start:Math.min(Math.max(ae+b*k,0),u),end:ae}}scrollStep(t,s){return Math.abs(s-t)/(this.scrollDuration/17)}scroll$(){return(0,z.X_)()?(0,Me.R)(this.container.nativeElement,"scroll"):g.E}initServices(){this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(t=>{t instanceof au?this.pageChange.emit(t):this.scrollChange.emit(t)})}createRowHeightService(){return new Pc(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}emitActiveIndex(){const t=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==t&&(this.lastActiveIndex=t,this.activeIndexChange.emit(t))}containerMaxScroll(){return this.containerScrollSize-this.containerOffsetSize}getContainerScrollDirection(t){return t{for(;n&&n!==t&&!i(n);)n=n.parentNode;if(n!==t)return n},_p=(n,i)=>{for(;n&&!i(n);)n=n.parentNode;return n};let lu=(()=>{let n=class{constructor(t,s,o,u,b){this.bus=t,this.dom=s,this.intl=o,this.cdr=u,this.renderer=b,this.min=new Date(Lt),this.max=new Date(Tn),this.focusedDate=new Date,this.valueChange=new e.vpe,this.pageChange=new e.vpe,this.dates=[],this.take=30,this.indexToScroll=-1}get getComponentClass(){return!0}ngOnInit(){this.dom.ensureHeights();const t=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(t-this.itemHeight)/2,this.bottomOffset=t-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(t){if(this.service=this.bus.service(this.activeView),!this.service)return;this.activeViewValue=is[this.activeView];const s=dc(this.focusedDate,this.min,this.max),o=this.service.total(this.min,this.max),u=this.total&&this.total!==o;this.skip=this.service.skip(s,this.min),this.total=o,(u||!this.service.isInArray(s,this.dates))&&(this.dates=this.service.datesList(s,this.getTake(this.skip))),(t.focusedDate||u)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}onPageChange({skip:t}){this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()}scrollChange({offset:t}){const s=this.list.nativeElement,o=`translateY(${t}px)`;this.renderer.setStyle(s,"transform",o),this.renderer.setStyle(s,"-ms-transform",o)}handleDateChange(t){const s=fc(t.target,o=>o.hasAttribute("data-date-index"),this.list.nativeElement);if(s){const o=parseInt(s.getAttribute("data-date-index"),10);this.valueChange.emit(Wn(this.dates[o]))}}getTake(t){return Math.min(this.total-t,this.take)}intlChange(){this.activeView===is.month&&this.cdr.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(qo),e.Y36(zs),e.Y36(se.aJ),e.Y36(e.sBO),e.Y36(e.Qsj))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-calendar-navigation"]],viewQuery:function(t,s){if(1&t&&(e.Gf(pa,5),e.Gf(Wi,7)),2&t){let o;e.iGM(o=e.CRH())&&(s.virtualization=o.first),e.iGM(o=e.CRH())&&(s.list=o.first)}},hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-calendar-navigation",s.getComponentClass)},inputs:{min:"min",max:"max",focusedDate:"focusedDate",activeView:"activeView",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[e.TTD],decls:5,vars:12,consts:[[1,"k-calendar-navigation-highlight"],[3,"skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference","pageChange","scrollChange"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],["list",""],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,s){1&t&&(e._UZ(0,"span",0),e.TgZ(1,"kendo-virtualization",1),e.NdJ("pageChange",function(u){return s.onPageChange(u)})("scrollChange",function(u){return s.scrollChange(u)}),e.TgZ(2,"ul",2,3),e.YNc(4,Br,4,11,"li",4),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("skip",s.skip)("take",s.take)("total",s.total)("itemHeight",s.itemHeight)("topOffset",s.topOffset)("bottomOffset",s.bottomOffset)("maxScrollDifference",s.maxViewHeight),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.VKq(10,Eo,s.handleDateChange))("scope",s),e.xp6(2),e.Q6J("kForOf",s.dates))},directives:function(){return[pa,z.nV,Rh,Re.O5,Re.tP]},encapsulation:2,changeDetection:0}),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"activeView",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"min",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"max",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"focusedDate",void 0),ue([(0,e.IIB)(),me("design:type",e.Rgc)],n.prototype,"templateRef",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"valueChange",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"pageChange",void 0),ue([(0,e.i9L)(pa,{static:!1}),me("design:type",pa)],n.prototype,"virtualization",void 0),ue([(0,e.i9L)("list",{static:!0}),me("design:type",e.SBq)],n.prototype,"list",void 0),ue([(0,e.pfw)("class.k-calendar-navigation"),me("design:type",Boolean),me("design:paramtypes",[])],n.prototype,"getComponentClass",null),n=ue([me("design:paramtypes",[qo,zs,se.aJ,e.sBO,e.Qsj])],n),n})(),Bd=(()=>{let n=class{constructor(t,s,o,u,b){this.bus=t,this.cdr=s,this.intl=o,this.dom=u,this.renderer=b,this.isActive=!0,this.min=new Date(Lt),this.max=new Date(Tn),this.selectedDates=[],this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.activeDateChange=new e.vpe,this.todayButtonClick=new e.vpe,this.pageChange=new e.vpe,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(t){this.showWeekNumbers=t}get getComponentMonthClass(){return this.activeView===is.month}get getComponentYearClass(){return this.activeView===is.year}get getComponentDecadeClass(){return this.activeView===is.decade}get getComponentCenturyClass(){return this.activeView===is.century}ngOnInit(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(t){if(this.service=this.bus.service(this.activeView),!this.service)return;this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=Oc(t,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;const s=Oc(t,"activeView"),o=this.focusedDate,u=dc(this.service.viewDate(o,this.max,this.minViewsToRender),this.min,this.max),b=this.service.total(this.min,this.max),ae=this.total&&this.total!==b||!this.service.isInArray(o,this.dates);this.skip=this.service.skip(u,this.min),this.total=b,this.animateToIndex=!s,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),ae&&(this.dates=this.service.datesList(u,this.getTake(this.skip))),((n,i)=>n&&i&&n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth())(this.activeDate,o)||(this.activeDate=Wn(o));const q=Oc(t,"focusedDate")||s;(ae||q||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(o,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}onPageChange({skip:t}){this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()}scrollChange({offset:t}){const s=this.list.nativeElement,o=`translateY(${t}px)`;this.renderer.setStyle(s,"transform",o),this.renderer.setStyle(s,"-ms-transform",o)}setActiveDate(t){const s=this.service.addToDate(this.min,t);this.activeDate=s,this.activeDateChange.emit(s),this.cdr.detectChanges()}isMonthView(){return this.activeView===is.month}isScrolled(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}getBottomOffset(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}getScrollableHeight(){return this.activeView===is.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}getTake(t){return Math.min(this.total-t,this.take)}getWeekNames(){const t=op(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(t):t}intlChange(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(qo),e.Y36(e.sBO),e.Y36(se.aJ),e.Y36(zs),e.Y36(e.Qsj))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(t,s){if(1&t&&(e.Gf(pa,5),e.Gf(Wi,7)),2&t){let o;e.iGM(o=e.CRH())&&(s.virtualization=o.first),e.iGM(o=e.CRH())&&(s.list=o.first)}},hostVars:12,hostBindings:function(t,s){2&t&&e.ekj("k-vstack",s.getComponentClass)("k-calendar-view",s.getComponentClass)("k-calendar-monthview",s.getComponentMonthClass)("k-calendar-yearview",s.getComponentYearClass)("k-calendar-decadeview",s.getComponentDecadeClass)("k-calendar-centuryview",s.getComponentCenturyClass)},inputs:{isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},features:[e.TTD],decls:8,vars:17,consts:[[3,"currentDate","min","max","activeView","templateRef","todayButtonClick"],["class","k-calendar-weekdays k-calendar-table","style","table-layout: auto;",4,"ngIf"],[3,"tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference","pageChange","scrollChange","activeIndexChange"],[1,"k-calendar-table"],["list",""],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick",4,"kFor","kForOf"],[1,"k-calendar-weekdays","k-calendar-table",2,"table-layout","auto"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th",3,"width",4,"ngFor","ngForOf"],[1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-calendar-header",0),e.NdJ("todayButtonClick",function(u){return s.todayButtonClick.emit(u)}),e.qZA(),e.YNc(1,Ro,4,1,"table",1),e.TgZ(2,"kendo-virtualization",2),e.NdJ("pageChange",function(u){return s.onPageChange(u)})("scrollChange",function(u){return s.scrollChange(u)})("activeIndexChange",function(u){return s.setActiveDate(u)}),e.TgZ(3,"table",3,4),e.TgZ(5,"colgroup"),e.YNc(6,Fa,1,0,"col",5),e.qZA(),e.YNc(7,jl,1,11,"tbody",6),e.qZA(),e.qZA()),2&t&&(e.Q6J("currentDate",s.activeDate)("min",s.min)("max",s.max)("activeView",s.activeView)("templateRef",s.headerTitleTemplateRef),e.xp6(1),e.Q6J("ngIf",s.isMonthView()),e.xp6(1),e.Q6J("tabindex",-1)("skip",s.skip)("take",s.take)("total",s.total)("itemHeight",s.viewHeight)("topOffset",s.viewOffset)("bottomOffset",s.bottomOffset)("scrollOffsetSize",s.viewOffset)("maxScrollDifference",s.viewHeight),e.xp6(4),e.Q6J("ngForOf",s.cols),e.xp6(1),e.Q6J("kForOf",s.dates))},directives:function(){return[v1,Re.O5,pa,Re.sg,Rh,kf]},encapsulation:2,changeDetection:0}),ue([(0,e.IIB)(),me("design:type",e.Rgc)],n.prototype,"cellTemplateRef",void 0),ue([(0,e.IIB)(),me("design:type",e.Rgc)],n.prototype,"weekNumberTemplateRef",void 0),ue([(0,e.IIB)(),me("design:type",e.Rgc)],n.prototype,"headerTitleTemplateRef",void 0),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"activeView",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"cellUID",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"focusedDate",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"isActive",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"min",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"max",void 0),ue([(0,e.IIB)(),me("design:type",Array)],n.prototype,"selectedDates",void 0),ue([(0,e.IIB)(),me("design:type",Boolean),me("design:paramtypes",[Boolean])],n.prototype,"weekNumber",null),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"cellClick",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"weekNumberCellClick",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"activeDateChange",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"todayButtonClick",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"pageChange",void 0),ue([(0,e.i9L)(pa,{static:!1}),me("design:type",pa)],n.prototype,"virtualization",void 0),ue([(0,e.i9L)("list",{static:!0}),me("design:type",e.SBq)],n.prototype,"list",void 0),ue([(0,e.pfw)("class.k-vstack"),(0,e.pfw)("class.k-calendar-view"),me("design:type",Boolean)],n.prototype,"getComponentClass",void 0),ue([(0,e.pfw)("class.k-calendar-monthview"),me("design:type",Boolean),me("design:paramtypes",[])],n.prototype,"getComponentMonthClass",null),ue([(0,e.pfw)("class.k-calendar-yearview"),me("design:type",Boolean),me("design:paramtypes",[])],n.prototype,"getComponentYearClass",null),ue([(0,e.pfw)("class.k-calendar-decadeview"),me("design:type",Boolean),me("design:paramtypes",[])],n.prototype,"getComponentDecadeClass",null),ue([(0,e.pfw)("class.k-calendar-centuryview"),me("design:type",Boolean),me("design:paramtypes",[])],n.prototype,"getComponentCenturyClass",null),n=ue([me("design:paramtypes",[qo,e.sBO,se.aJ,zs,e.Qsj])],n),n})();const Mh={33:D.PrevView,34:D.NextView,35:D.LastInView,36:D.FirstInView,37:D.Left,38:D.Up,39:D.Right,40:D.Down,"meta+38":D.UpperView,"meta+40":D.LowerView};let ad=(()=>{let n=class{constructor(t){this.bus=t}action(t){return Mh[`${t.ctrlKey||t.metaKey?"meta+":""}${t.keyCode}`]}move(t,s,o){const u=this.bus.service(o);return u?s===D.UpperView&&this.bus.canMoveUp(o)?(this.bus.moveUp(o),t):s===D.LowerView&&this.bus.canMoveDown(o)?(this.bus.moveDown(o),t):u.move(t,s):t}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(qo))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[qo])],n),n})();const ld=()=>!1;let fl=(()=>{let n=class{constructor(){this.changes=new Te.x,this.isDateDisabled=ld}initialize(t){if("function"==typeof t)this.isDateDisabled=s=>t(Vi(s));else if((n=>Array.isArray(n)&&n.length>0&&n.every(i=>"number"==typeof i))(t)){const s=new Set(t);this.isDateDisabled=o=>s.has(o.getDay())}else if((n=>Array.isArray(n)&&n.length>0&&n.every(i=>i instanceof Date))(t)){const s=new Set(t.map(o=>Vi(o).getTime()));this.isDateDisabled=o=>s.has(Vi(o).getTime())}else this.isDateDisabled=ld,this.notifyInvalidInput(t);this.notifyServiceChange()}notifyInvalidInput(t){if(Mi(t)&&(0,e.X6Q)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")}notifyServiceChange(){this.changes.next()}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})(),Lc=(()=>{let n=class{constructor(t){this.bus=t}performSelection(t){let{date:s,modifiers:o,selectionMode:u,activeViewEnum:b,rangePivot:k}=t,ae=t.selectedDates.slice();if("multiple"===u)if(o.ctrlKey||o.metaKey)this.isDateSelected(ae,s)?ae=ae.filter(q=>!sr(q,s)):ae.push(s),k=s;else if(o.shiftKey){const[q,Se]=(n=>n.filter(i=>Mi(i)).sort((i,t)=>i.getTime()-t.getTime()))([k||s,s]);ae=this.bus.service(b).dateRange(q,Se),k=s>ae[0]?ae[0]:sd(ae)}else ae=[s],k=s;else ae=[s],k=s;return{selectedDates:ae,rangePivot:k}}isDateSelected(t,s){return t.some(o=>sr(o,s))}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(qo))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[qo])],n),n})(),La=(()=>{let n=class{constructor(t,s){this.dom=t,this.zone=s}configure(t){const s=Math.max(this.dom.viewHeight(t)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=>i=>Math.floor(i/n))(s),this.powerByMagnitude=(n=>i=>i*n)(s)}sync(t,s){this.unsubscribe(),t&&s&&(this.navigator=t,this.view=s,this.zone.runOutsideAngular(()=>{let o,u;this.navSubscription=t.scroll$().subscribe(b=>{u?u=!1:(o=!0,this.scrollSiblingOf(b.target))}),this.viewSubscription=s.scroll$().subscribe(b=>{o?o=!1:(u=!0,this.scrollSiblingOf(b.target))})}))}scrollSiblingOf(t){const s=this.siblingComponent(t),o=this.calculateScroll(s,t.scrollTop);s.scrollTo(o)}siblingComponent(t){return this.navigator.container.nativeElement===t?this.view:this.navigator}calculateScroll(t,s){return(t===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(s)}destroy(){this.unsubscribe()}unsubscribe(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(zs),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[zs,e.R0b])],n),n})(),Lo=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoCalendarCellTemplate",""]]}),n=ue([me("design:paramtypes",[e.Rgc])],n),n})(),oa=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),n=ue([me("design:paramtypes",[e.Rgc])],n),n})(),Ba=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoCalendarYearCellTemplate",""]]}),n=ue([me("design:paramtypes",[e.Rgc])],n),n})(),Da=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),n=ue([me("design:paramtypes",[e.Rgc])],n),n})(),Ko=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),n=ue([me("design:paramtypes",[e.Rgc])],n),n})(),fa=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),n=ue([me("design:paramtypes",[e.Rgc])],n),n})(),ss=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),n=ue([me("design:paramtypes",[e.Rgc])],n),n})(),Wa=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),n=ue([me("design:paramtypes",[e.Rgc])],n),n})(),ga=(()=>{class n{constructor(){this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.sameDateSelected=new e.vpe,this.dateCompletenessChange=new e.vpe}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n})();const Nd=n=>i=>n&&i.value&&i.valuei=>n&&i.value&&i.value>n?{maxError:{maxValue:n,value:i.value}}:null,yp="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",bf=n=>n?n.virtualization:null,d1={multi:!0,provide:zt.JU,useExisting:(0,e.Gpc)(()=>uu)},P0={multi:!0,provide:zt.Cf,useExisting:(0,e.Gpc)(()=>uu)},L0={provide:z.GX,useExisting:(0,e.Gpc)(()=>uu)};let uu=(()=>{let n=class{constructor(t,s,o,u,b,k,ae,q,Se,yt,at,Ht,sn){this.bus=t,this.dom=s,this.element=o,this.navigator=u,this.renderer=b,this.cdr=k,this.ngZone=ae,this.injector=q,this.scrollSyncService=Se,this.disabledDatesService=yt,this.localization=at,this.selectionService=Ht,this.pickerService=sn,this.id=(0,z.M8)(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=is[is.month],this.bottomView=is[is.month],this.topView=is[is.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new e.vpe,this.navigate=new e.vpe,this.activeViewDateChange=new e.vpe,this.valueChange=new e.vpe,this.isActive=!1,this.cellUID=(0,z.M8)(),this.selectedDates=[],this._min=new Date(Lt),this._max=new Date(Tn),this._focusedDate=pl(),this.onControlChange=Bs,this.onControlTouched=Bs,this.onValidatorChange=Bs,this.minValidateFn=Bs,this.maxValidateFn=Bs,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,(0,Kt.s)(T),this.setClasses(o.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}set focusedDate(t){if(this.activeViewDate&&!sr(this._focusedDate,t)){const s=this.bus.service(this.activeViewEnum),o=s.lastDayOfPeriod(this.activeViewDate);s.isInRange(t,this.activeViewDate,o)||this.emitNavigate(t)}this._focusedDate=t||pl(),this.setAriaActivedescendant()}get focusedDate(){return this._focusedDate}set min(t){this._min=t||new Date(Lt)}get min(){return this._min}set max(t){this._max=t||new Date(Tn)}get max(){return this._max}get value(){return this._value}set value(t){this.verifyValue(t),this._value=Array.isArray(t)?t.filter(o=>Mi(o)).map(o=>Wn(o)):Wn(t);const s=[].concat(t).filter(o=>Mi(o)).map(o=>Wn(o));if(!cp(s,this.selectedDates)){const o=sd(s);this.rangePivot=Wn(o),this.focusedDate=Wn(o)||this.focusedDate,this.selectedDates=s}}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set disabledDates(t){this.disabledDatesService.initialize(t),this._disabledDates=t}get disabledDates(){return this._disabledDates}set type(t){this.renderer.removeClass(this.element.nativeElement,`k-calendar-${this.type}`),this.renderer.addClass(this.element.nativeElement,`k-calendar-${t}`),this._type=t}get type(){return this._type}set cellTemplateRef(t){this.cellTemplate=t}set monthCellTemplateRef(t){this.monthCellTemplate=t}set yearCellTemplateRef(t){this.yearCellTemplate=t}set decadeCellTemplateRef(t){this.decadeCellTemplate=t}set centuryCellTemplateRef(t){this.centuryCellTemplate=t}set weekNumberTemplateRef(t){this.weekNumberTemplate=t}set headerTitleTemplateRef(t){this.headerTitleTemplate=t}set navigationItemTemplateRef(t){this.navigationItemTemplate=t}get activeViewEnum(){const t=is[this.activeView];return tthis.cdr.markForCheck()),this.viewChangeSubscription=this.bus.viewChanged.subscribe(({view:t})=>this.handleActiveViewChange(is[t])),this.control=this.injector.get(zt.a5,null),this.element&&this.ngZone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(t){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),uf(t,"focusedDate")&&(this.focusedDate=dc(t.focusedDate.currentValue,this.min,this.max)),t.navigation&&(this.syncNavigation=!0),(t.min||t.max||t.rangeValidation)&&(this.minValidateFn=this.rangeValidation?Nd(this.min):Bs,this.maxValidateFn=this.rangeValidation?Ih(this.max):Bs,this.onValidatorChange())}ngAfterViewInit(){this.setAriaActivedescendant()}ngAfterViewChecked(){!this.syncNavigation||(this.syncNavigation=!1,this.scrollSyncService.sync(bf(this.navigationView),bf(this.monthView)))}ngOnDestroy(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach(t=>t()),this.pickerService&&(this.pickerService.calendar=null),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0}onResize(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}containsElement(t){return Boolean(_p(t,s=>s===this.element.nativeElement))}handleNavigation(t){if(this.disabled)return;const s=t?new Date(Wn(t).setDate(1)):this.focusedDate;this.focusedDate=dc(s,this.min,this.max),this.detectChanges()}onPageChange(){e.R0b.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=(0,Ze.D)(this.resolvedPromise).subscribe(()=>{this.detectChanges()}))}handleMultiViewCalendarValueChange(t,s){const o=Array.isArray(t)?t:[t];this.handleDateChange({selectedDates:o,focusedDate:s})}handleDateChange(t){const s=Array.isArray(t.selectedDates)?t.selectedDates:[t.selectedDates],o=this.bus.canMoveDown(this.activeViewEnum),u=s.filter(b=>!this.disabledDatesService.isDateDisabled(b));if(this.focusedDate=t.focusedDate||this.focusedDate,!this.disabled){if(!o&&cp(u,this.selectedDates))return void this.emitSameDate();if(o)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(()=>{this.selectedDates=u.map(b=>Wn(b)),this.value=this.parseSelectionToValue(u),this.onControlChange(this.parseSelectionToValue(u)),this.valueChange.emit(this.parseSelectionToValue(u)),this.cdr.markForCheck()})}}writeValue(t){this.verifyValue(t),this.value=t,this.cdr.markForCheck()}registerOnChange(t){this.onControlChange=t}registerOnTouched(t){this.onControlTouched=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}validate(t){return this.minValidateFn(t)||this.maxValidateFn(t)}registerOnValidatorChange(t){this.onValidatorChange=t}activeCellTemplate(){switch(this.activeViewEnum){case is.month:return this.monthCellTemplate||this.cellTemplate;case is.year:return this.yearCellTemplate;case is.decade:return this.decadeCellTemplate;case is.century:return this.centuryCellTemplate;default:return null}}emitNavigate(t){this.navigate.emit({activeView:is[this.activeViewEnum],focusedDate:t})}emitEvent(t,s){(0,z.g$)(t)&&this.ngZone.run(()=>{t.emit(s)})}handleActiveDateChange(t){this.activeViewDate=t,this.emitEvent(this.activeViewDateChange,t)}handleActiveViewChange(t){this.activeView=t,this.emitEvent(this.activeViewChange,t),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()}handleCellClick({date:t,modifiers:s}){this.performSelection(t,s)}handleWeekNumberClick(t){"single"!==this.selection&&this.ngZone.run(()=>{this.handleDateChange({selectedDates:t,focusedDate:sd(t)})})}setClasses(t){this.renderer.addClass(t,"k-widget"),this.renderer.addClass(t,"k-calendar"),this.renderer.addClass(t,`k-calendar-${this.type}`)}verifyChanges(){if((0,e.X6Q)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(t){if((0,e.X6Q)()){if("single"===this.selection&&t&&!(t instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${yp} for possible resolution.`);if("multiple"===this.selection&&t&&Array.isArray(t)&&!t.every(o=>o instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${yp} for possible resolution.`)}}bindEvents(){const t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"blur",this.handleBlur.bind(this)),this.renderer.listen(t,"focus",this.handleFocus.bind(this)),this.renderer.listen(t,"mousedown",Gs),this.renderer.listen(t,"click",this.handleComponentClick.bind(this)),this.renderer.listen(t,"keydown",this.handleKeydown.bind(this)))}emitBlur(t){this.pickerService&&this.pickerService.onBlur.emit(t)}emitFocus(){this.pickerService&&this.pickerService.onFocus.emit()}handleBlur(t){this.isActive=!1,!this.pickerService&&hi(this.control)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(t),this.cdr.markForCheck()}):(this.emitBlur(t),this.detectChanges())}handleFocus(){this.isActive=!0,e.R0b.isInAngularZone()||this.detectChanges(),this.emitFocus()}handleComponentClick(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Wn(this.focusedDate),this.detectChanges()),this.focus())}handleKeydown(t){const s=-1!==[z.R8.ArrowUp,z.R8.ArrowRight,z.R8.ArrowDown,z.R8.ArrowLeft].indexOf(t.keyCode);if(Mi(this.pickerService)&&s&&t.altKey)return;const o=dc(this.navigator.move(this.focusedDate,this.navigator.action(t),this.activeViewEnum),this.min,this.max);sr(this.focusedDate,o)||(this.focusedDate=o,this.detectChanges(),t.preventDefault()),t.keyCode===z.R8.Enter&&this.performSelection(this.focusedDate,t)}detectChanges(){this.destroyed||this.cdr.detectChanges()}emitSameDate(){this.pickerService&&this.pickerService.sameDateSelected.emit()}setAriaActivedescendant(){if(!Mi(this.element))return;const t=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",t)}parseSelectionToValue(t){return t=t||[],"single"===this.selection?Wn(sd(t)):t.map(s=>Wn(s))}performSelection(t,s){const o=this.selectionService.performSelection({date:t,modifiers:s,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=o.rangePivot,this.handleDateChange({selectedDates:o.selectedDates,focusedDate:t})}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(qo),e.Y36(zs),e.Y36(e.SBq),e.Y36(ad),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.zs3),e.Y36(La),e.Y36(fl),e.Y36(G.oQ),e.Y36(Lc),e.Y36(ga,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-calendar"]],contentQueries:function(t,s,o){if(1&t&&(e.Suo(o,Lo,7),e.Suo(o,oa,7),e.Suo(o,Ba,7),e.Suo(o,Da,7),e.Suo(o,Ko,7),e.Suo(o,fa,7),e.Suo(o,ss,7),e.Suo(o,Wa,7)),2&t){let u;e.iGM(u=e.CRH())&&(s.cellTemplate=u.first),e.iGM(u=e.CRH())&&(s.monthCellTemplate=u.first),e.iGM(u=e.CRH())&&(s.yearCellTemplate=u.first),e.iGM(u=e.CRH())&&(s.decadeCellTemplate=u.first),e.iGM(u=e.CRH())&&(s.centuryCellTemplate=u.first),e.iGM(u=e.CRH())&&(s.weekNumberTemplate=u.first),e.iGM(u=e.CRH())&&(s.headerTitleTemplate=u.first),e.iGM(u=e.CRH())&&(s.navigationItemTemplate=u.first)}},viewQuery:function(t,s){if(1&t&&(e.Gf(lu,5),e.Gf(Bd,5)),2&t){let o;e.iGM(o=e.CRH())&&(s.navigationView=o.first),e.iGM(o=e.CRH())&&(s.monthView=o.first)}},hostVars:8,hostBindings:function(t,s){2&t&&(e.uIk("id",s.widgetId)("role",s.widgetRole)("tabindex",s.calendarTabIndex)("aria-disabled",s.ariaDisabled),e.ekj("k-week-number",s.weekNumber)("k-state-disabled",s.ariaDisabled))},inputs:{id:"id",rangeValidation:"rangeValidation",selection:"selection",disabled:"disabled",tabindex:"tabindex",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",animateNavigation:"animateNavigation",weekNumber:"weekNumber",focusedDate:"focusedDate",min:"min",max:"max",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",type:"type",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[e._Bn([qo,d1,P0,L0,G.oQ,fl,{provide:G.mM,useValue:"kendo.calendar"},ad,La,Lc]),e.TTD],decls:3,vars:2,consts:function(){let i,t,s;return i=$localize`:kendo.calendar.today|The label for the today button in the calendar header␟7a8b7961a5c754397897f39a824bdec621719040␟4715594042078324085:Today`,t=$localize`:kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar␟031715cd6a995d5dd1f62365cfe1b9e6226ca185␟9114031309296786030:Navigate to previous view`,s=$localize`:kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar␟cd8c0952c72306cccf0973c8fd1957ef9da1f569␟7248948899360601102:Navigate to next view`,[["kendoCalendarLocalizedMessages","","today",i,"prevButtonTitle",t,"nextButtonTitle",s],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"activeView","isActive","cellTemplateRef","headerTitleTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange"],[3,"resize"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange"],[3,"views","min","max","isActive","activeView","bottomView","topView","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","weekNumberTemplate","focusedDate","selection","value","disabledDates","activeViewChange","navigate","valueChange"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(t,s){1&t&&(e.GkF(0,0),e.YNc(1,Gl,4,12,"ng-container",1),e.YNc(2,bo,4,23,"ng-container",1)),2&t&&(e.xp6(1),e.Q6J("ngIf","infinite"===s.type),e.xp6(1),e.Q6J("ngIf","classic"===s.type))},directives:function(){return[Hu,Re.O5,Bd,z.NG,lu,za,wp]},encapsulation:2,changeDetection:0}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"id",void 0),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],n.prototype,"focusedDate",null),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],n.prototype,"min",null),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],n.prototype,"max",null),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"rangeValidation",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"selection",void 0),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],n.prototype,"value",null),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"disabled",void 0),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"tabindex",void 0),ue([(0,e.IIB)(),me("design:type",Number),me("design:paramtypes",[Number])],n.prototype,"tabIndex",null),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],n.prototype,"disabledDates",null),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"navigation",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"activeView",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"bottomView",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"topView",void 0),ue([(0,e.IIB)(),me("design:type",String),me("design:paramtypes",[String])],n.prototype,"type",null),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"animateNavigation",void 0),ue([(0,e.IIB)(),(0,e.pfw)("class.k-week-number"),me("design:type",Boolean)],n.prototype,"weekNumber",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"activeViewChange",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"navigate",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"activeViewDateChange",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"valueChange",void 0),ue([(0,e.aQ5)(Lo,{static:!0}),me("design:type",Lo)],n.prototype,"cellTemplate",void 0),ue([(0,e.IIB)("cellTemplate"),me("design:type",Lo),me("design:paramtypes",[Lo])],n.prototype,"cellTemplateRef",null),ue([(0,e.aQ5)(oa,{static:!0}),me("design:type",oa)],n.prototype,"monthCellTemplate",void 0),ue([(0,e.IIB)("monthCellTemplate"),me("design:type",oa),me("design:paramtypes",[oa])],n.prototype,"monthCellTemplateRef",null),ue([(0,e.aQ5)(Ba,{static:!0}),me("design:type",Ba)],n.prototype,"yearCellTemplate",void 0),ue([(0,e.IIB)("yearCellTemplate"),me("design:type",Ba),me("design:paramtypes",[Ba])],n.prototype,"yearCellTemplateRef",null),ue([(0,e.aQ5)(Da,{static:!0}),me("design:type",Da)],n.prototype,"decadeCellTemplate",void 0),ue([(0,e.IIB)("decadeCellTemplate"),me("design:type",Da),me("design:paramtypes",[Da])],n.prototype,"decadeCellTemplateRef",null),ue([(0,e.aQ5)(Ko,{static:!0}),me("design:type",Ko)],n.prototype,"centuryCellTemplate",void 0),ue([(0,e.IIB)("centuryCellTemplate"),me("design:type",Ko),me("design:paramtypes",[Ko])],n.prototype,"centuryCellTemplateRef",null),ue([(0,e.aQ5)(fa,{static:!0}),me("design:type",fa)],n.prototype,"weekNumberTemplate",void 0),ue([(0,e.IIB)("weekNumberTemplate"),me("design:type",fa),me("design:paramtypes",[fa])],n.prototype,"weekNumberTemplateRef",null),ue([(0,e.aQ5)(ss,{static:!0}),me("design:type",ss)],n.prototype,"headerTitleTemplate",void 0),ue([(0,e.IIB)("headerTitleTemplate"),me("design:type",ss),me("design:paramtypes",[ss])],n.prototype,"headerTitleTemplateRef",null),ue([(0,e.aQ5)(Wa,{static:!0}),me("design:type",Wa)],n.prototype,"navigationItemTemplate",void 0),ue([(0,e.IIB)("navigationItemTemplate"),me("design:type",Wa),me("design:paramtypes",[Wa])],n.prototype,"navigationItemTemplateRef",null),ue([(0,e.i9L)(lu,{static:!1}),me("design:type",lu)],n.prototype,"navigationView",void 0),ue([(0,e.i9L)(Bd,{static:!1}),me("design:type",Bd)],n.prototype,"monthView",void 0),ue([(0,e.pfw)("attr.id"),me("design:type",String),me("design:paramtypes",[])],n.prototype,"widgetId",null),ue([(0,e.pfw)("attr.role"),me("design:type",String),me("design:paramtypes",[])],n.prototype,"widgetRole",null),ue([(0,e.pfw)("attr.tabindex"),me("design:type",Number),me("design:paramtypes",[])],n.prototype,"calendarTabIndex",null),ue([(0,e.pfw)("attr.aria-disabled"),(0,e.pfw)("class.k-state-disabled"),me("design:type",Boolean),me("design:paramtypes",[])],n.prototype,"ariaDisabled",null),n=ue([fn(12,(0,e.FiY)()),me("design:paramtypes",[qo,zs,e.SBq,ad,e.Qsj,e.sBO,e.R0b,e.zs3,La,fl,G.oQ,Lc,ga])],n),n})();const hu=()=>(n,i)=>!Mi(n.value)&&i?{incompleteDate:!0}:null;var ma,gc=(()=>(function(n){n[n.Up=0]="Up",n[n.Down=1]="Down",n[n.None=2]="None"}(gc||(gc={})),gc))();const N0=/year|month|/,Th=/hour|minute|second|millisecond/,u1=/d|M|H|h|m|s/,h1=n=>n.replace(/^0*/,"");class z0{constructor(){this.symbols=""}}class Nu{constructor(i,t,s,o,u=68){if(this.intl=i,this.formatPlaceholder=t,this.format=s,this.twoDigitYearMax=u,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Vi(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},(0,Kt.s)(T),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),o)this.value=Wn(o);else{this.value=Vi(new Date);const b=this.dateFormatString(this.value,this.format).symbols;for(let k=0;kt||"literal"!==s.type&&"dayperiod"!==s.type&&this.getExisting(s.pattern[0]),!1)}shouldNormalizeCentury(){return this.intl.splitDateFormat(this.format).some(i=>"yy"===i.pattern)}getDateObject(){for(let i=0;i0&&(this.setExisting(i,!0),this.value=s)}parsePart(i,t,s){if(!t)return this.resetLeadingZero(),this.setExisting(i,!1),{value:null,switchToNext:!1};let o=this.intl.formatDate(this.value,this.format),u=this.dateFormatString(this.value,this.format),b=u.symbols,k=!1,ae="",q="",Se="";for(let Pn=0;Pn-1&&zn<12&&(at=Wn(this.value),at.setMonth(zn),at.getMonth()!==zn&&(at=lo(_r(at,-1))))}"y"===i&&(at=zr(parseInt(Dn,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&at.getDate()!==this.value.getDate()&&(at=lo(_r(at,-1))))}if(at){const zn=this.partPattern(u.partMap,i).pattern,Vn=this.intl.parseDate(`${ae}${this.peek(Dn,zn)}${Se}`,this.format),ui=this.patternLength(zn)||zn.length,Xn=oi+(h1(Dn)||t).length>=ui,Li=null===Vn||Xn;return this.shouldNormalizeCentury()&&(at=this.normalizeCentury(at)),this.value=at,this.setExisting(i,!0),{value:this.value,switchToNext:Li}}}return Ht&&(at=this.intl.parseDate(ae+Ht+Se,this.format),at)?(this.value=at,this.setExisting(i,!0),{value:this.value,switchToNext:!1}):sn&&(at=this.intl.parseDate(ae+sn+Se,this.format),at)?(this.value=at,{value:this.value,switchToNext:!0}):(jn&&this.setExisting(i,!1),{value:null,switchToNext:!1})}resetLeadingZero(){const i=null!==this.leadingZero;return this.setLeadingZero(null),i}setLeadingZero(i){this.leadingZero=i}normalizeCentury(i){if(!Mi(i))return i;const t=(n=>!Mi(n)||isNaN(n.getTime())?0:Number(n.getFullYear().toString().slice(-2)))(i),s=this.getNormalizedCenturyBase(t);return mh(i,s+t)}incrementLeadingZero(i){const t=this.leadingZero||{};t[i]=(t[i]||0)+1,this.leadingZero=t}isAbbrMonth(i,t){const s=this.partPattern(i,t);return"month"===s.type&&s.names}partPattern(i,t){return i.filter(s=>-1!==s.pattern.indexOf(t))[0]}peek(i,t){const s=h1(i)+"0";return(n=>new Array(Math.max(n,0)).fill("0").join(""))(t.length-s.length)+s}matchMonth(i){if(this.typedMonthPart+=i.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(let s=0;s=1&&t<=12&&t.toString()===this.typedMonthPart)return this.monthNames[t-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}matchDayPeriod(i,t){const s=String(i).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(s))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(s))return this.dayPeriods.pm}return""}allFormatedMonths(){const i=this.intl.splitDateFormat(this.format);for(let t=0;t0;)o.push(this.symbols[s[k].pattern[0]]||"_"),u.push(s[k]),ae--}const b=new z0;return b.symbols=o.join(""),b.partMap=u,b}merge(i,t){let s="",o="",u=t.symbols;for(let b=u.length-1;b>=0;b--)if(-1===this.knownParts.indexOf(u[b])||this.getExisting(u[b]))s=i[b]+s,o=u[b]+o;else{const k=u[b];for(;b>=0&&k===u[b];)b--;for(b++,s=this.leadingZero&&this.leadingZero[k]?"0"+s:this.dateFieldName(t.partMap[b])+s;o.lengththis.twoDigitYearMax?1900:2e3}}let xr=ma=class{constructor(i,t,s,o,u,b,k,ae){this.cdr=i,this.intl=t,this.renderer=s,this.element=o,this.ngZone=u,this.injector=b,this.localization=k,this.pickerService=ae,this.focusableId=`k-${(0,z.M8)()}`,this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new e.vpe,this.valueUpdate=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.arrow=gc,this.arrowDirection=gc.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=Bs,this.maxValidator=Bs,this.incompleteValidator=Bs,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Bs,this.onControlTouched=Bs,this.onValidatorChange=Bs,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}set tabIndex(i){this.tabindex=i}get tabIndex(){return this.tabindex}set value(i){this.verifyValue(i),(!this.autoCorrect||Ac(i,this.min,this.max))&&(this._value=Wn(i),this.valueUpdate.emit(Wn(i)))}get value(){return this._value}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get inputElement(){return this.dateInput?this.dateInput.nativeElement:null}get inputValue(){return(this.inputElement||{}).value||""}get isActive(){return this._active}set isActive(i){if(this._active=i,this.wrap&&!Mi(this.pickerService)){const t=this.wrap.nativeElement;i?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}}get inputFormat(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}get displayFormat(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}isEmpty(){return!this.currentValue||!String(this.currentValue).trim()}containsElement(i){return Boolean(_p(i,t=>t===this.element.nativeElement))}ngOnChanges(i){this.verifyRange(),(i.min||i.max||i.rangeValidation||i.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?Nd(this.min):Bs,this.maxValidator=this.rangeValidation?Ih(this.max):Bs,this.incompleteValidator=this.incompleteDateValidation?hu():Bs,this.onValidatorChange()),i.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());const t=this.kendoDate&&sr(this.value,this.kendoDate.getDateObject());(i.format||!t||i.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(i=>i())}validate(i){return this.minValidator(i)||this.maxValidator(i)||this.incompleteValidator(i,this.isDateIncomplete)}registerOnValidatorChange(i){this.onValidatorChange=i}ngOnInit(){this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(zt.a5,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(()=>{this.bindEvents()}))}setDisabledState(i){this.disabled=i,this.cdr.markForCheck()}writeValue(i){this.verifyValue(i),this.kendoDate=this.getKendoDate(i),this.value=Wn(i),this.updateElementValue(this.isActive)}triggerChange(){const i=this.kendoDate.getDateObject();+i!=+this.value&&(this.value=Wn(i),this.notify())}notify(){this.ngZone.run(()=>{this.onControlChange(Wn(this.value)),this.valueChange.emit(Wn(this.value))})}registerOnChange(i){this.onControlChange=i}registerOnTouched(i){this.onControlTouched=i}focus(){const i=this.inputElement;i&&(i.focus(),this.selectDateSegment(this.currentFormat[0]))}blur(){const i=this.inputElement;i&&i.blur()}handleButtonClick(i){this.arrowDirection=gc.None,this.modifyDateSegmentValue(i)}modifyDateSegmentValue(i){const t=this.caret(),s=this.currentFormat[t[0]];let o=(this.steps||{})[this.symbolsMap[s]]||1;if("S"===s&&!this.steps.millisecond){const u=(n=>{const i=n&&n.match(/S+(\1)/);return i?i[0].length:0})(this.inputFormat);o=(n=>Math.pow(10,3-n))(u)}this.kendoDate.modifyPart(s,i*o),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(s),this.updateIncompleteValidationStatus()}switchDateSegment(i){const t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]0?t[0]:t[1]-1),this.resetSegmentValue=!0,!0;const s=this.currentFormat[t[0]];let o=t[0]+i;for(;o>0&&o=0&&uu&&(u+1!==t[0]||o+1!==t[1])?(this.caret(u+1,o+1),this.resetSegmentValue=!0,!0):o{this.emitFocus(i)}):this.emitFocus(i)}handleBlur(i){this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),(0,z.g$)(this.onBlur)||hi(this.ngControl)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(i),this.cdr.markForCheck()}):this.emitBlur(i)}getKendoDate(i){const{leadingZero:t}=this.kendoDate||{},s=new Nu(this.intl,this.formatPlaceholder,this.inputFormat,i,this.twoDigitYearMax);return s.setLeadingZero(this.isActive?t:null),s}dateSymbolMap(){return this.intl.splitDateFormat(this.inputFormat).reduce((t,s)=>(t[s.pattern[0]]=s.type,t),{})}updateElementValue(i){const t=this.caret()[0],o=this.kendoDate.getTextAndFormat(this.isActive?this.inputFormat:this.displayFormat),u=!this.isActive&&Mi(this.placeholder)&&!this.kendoDate.hasValue(),b=this.inputElement;this.currentFormat=o[1],this.currentValue=u?"":o[0],this.renderer.setProperty(b,"value",this.currentValue),b.placeholder!==this.placeholder&&this.renderer.setProperty(b,"placeholder",this.placeholder),i&&this.selectNearestSegment(t)}caret(i,t=i){const s=void 0!==i;let o=[i,i];const u=this.inputElement;if(!s||!this.disabled&&!this.readonly){try{void 0!==u.selectionStart&&(s&&((0,z.X_)()&&document.activeElement!==u&&u.focus(),u.setSelectionRange(i,t)),o=[u.selectionStart,u.selectionEnd])}catch(b){o=[]}return o}}selectNearestSegment(i){for(let t=i,s=i-1;t=0;t++,s--){if(t=0&&"_"!==this.currentFormat[s])return void this.selectDateSegment(this.currentFormat[s])}}verifyRange(){if((0,e.X6Q)()&&!nd(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")}verifyValue(i){if((0,e.X6Q)()&&i&&!(i instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")}putDateInRange(){const i=this.kendoDate.getDateObject(),t=dc(i,this.min,this.max);this.autoCorrect&&!sr(i,t)&&(this.kendoDate=this.getKendoDate(t))}updateFormatSections(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(({date:i,time:t},s)=>({date:i||N0.test(s.type),time:t||Th.test(s.type)}),{date:!1,time:!1})}intlChange(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}updateOnPaste(){let i=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;Mi(i)&&this.kendoDate.shouldNormalizeCentury()&&(i=this.kendoDate.normalizeCentury(i));const t=+i!=+this.value;this.writeValue(i),t&&this.notify()}bindEvents(){const i=this.element.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(i,"DOMMouseScroll",t),this.renderer.listen(i,"mousewheel",t),this.renderer.listen(i,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(i,"paste",this.handlePaste.bind(this)),this.renderer.listen(i,"input",this.handleInput.bind(this)))}handleMouseWheel(i){this.disabled||this.readonly||!this.isActive||((i=window.event||i).shiftKey?this.switchDateSegment((i.wheelDelta||-i.detail)>0?-1:1):this.modifyDateSegmentValue((i.wheelDelta||-i.detail)>0?1:-1),i.returnValue=!1,i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation())}handlePaste(){this.paste=!0}handleKeydown(i){if(!(this.disabled||this.readonly||i.altKey||i.ctrlKey||i.metaKey)){if(i.keyCode===z.R8.Tab)return void(this.switchDateSegment(i.shiftKey?-1:1)&&i.preventDefault());if(i.keyCode===z.R8.Backspace)return void(this.backspace=!0);switch(i.keyCode){case z.R8.ArrowDown:this.modifyDateSegmentValue(-1);break;case z.R8.ArrowUp:this.modifyDateSegmentValue(1);break;case z.R8.ArrowRight:this.switchDateSegment(1);break;case z.R8.ArrowLeft:this.switchDateSegment(-1);break;case z.R8.Home:this.selectNearestSegment(0);break;case z.R8.End:this.selectNearestSegment(this.inputValue.length);break;default:return}i.preventDefault()}}handleInput(){if(this.disabled||this.readonly)return;if(this.paste)return this.updateOnPaste(),void(this.paste=!1);const i=((n,i,t,s)=>{const o=s+n.length-t.length,u=n[o],b=n.substring(0,s+n.length-t.length),k=t.substring(0,s),ae=[];if(b===k&&s>0)return ae.push([i[s-1],k[s-1]]),ae;if(0===b.indexOf(k)&&(0===k.length||i[k.length-1]!==i[k.length])){let q="";1===k.length&&ae.push([i[0],k[0]]);for(let Se=k.length;Sethis.onValidatorChange())):Mi(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())}};xr.\u0275fac=function(i){return new(i||xr)(e.Y36(e.sBO),e.Y36(se.aJ),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.zs3),e.Y36(G.oQ),e.Y36(ga,8))},xr.\u0275cmp=e.Xpm({type:xr,selectors:[["kendo-dateinput"]],viewQuery:function(i,t){if(1&i&&(e.Gf(Ul,7),e.Gf(ah,5)),2&i){let s;e.iGM(s=e.CRH())&&(t.dateInput=s.first),e.iGM(s=e.CRH())&&(t.wrap=s.first)}},hostVars:6,hostBindings:function(i,t){2&i&&e.ekj("k-widget",t.wrapperClass)("k-dateinput",t.wrapperClass)("k-state-disabled",t.disabledClass)},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",format:"format",placeholder:"placeholder",steps:"steps",rangeValidation:"rangeValidation",autoCorrect:"autoCorrect",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",tabIndex:"tabIndex",value:"value",formatPlaceholder:"formatPlaceholder",max:"max",min:"min"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-dateinput"],features:[e._Bn([{provide:zt.JU,useExisting:(0,e.Gpc)(()=>ma),multi:!0},{provide:zt.Cf,useExisting:(0,e.Gpc)(()=>ma),multi:!0},{provide:G.mM,useValue:"kendo.dateinput"},{provide:z.GX,useExisting:(0,e.Gpc)(()=>ma)},G.oQ]),e.TTD],decls:6,vars:21,consts:function(){let n,i;return n=$localize`:kendo.dateinput.increment|The label for the **Increment** button in the DateInput␟a55944f9de69e7cc86b91200fe96f980a947d704␟589112377451589685:Increase value`,i=$localize`:kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput␟0eded761107e6dad120997006a7f915bade9b15c␟6980524091606682769:Decrease value`,[["kendoDateInputLocalizedMessages","","increment",n,"decrement",i],[1,"k-dateinput-wrap"],["wrap",""],["autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-input",3,"id","title","tabindex","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope"],["dateInput",""],["class","k-select",3,"mousedown",4,"ngIf"],[1,"k-select",3,"mousedown"],[1,"k-link","k-link-increase",3,"title","mousedown","mouseleave","click"],[1,"k-icon","k-i-arrow-n"],[1,"k-link","k-link-decrease",3,"title","click","mousedown","mouseleave"],[1,"k-icon","k-i-arrow-s"]]},template:function(i,t){1&i&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e._UZ(3,"input",3,4),e.YNc(5,Xd,5,8,"span",5),e.qZA()),2&i&&(e.xp6(3),e.Q6J("id",t.focusableId)("title",t.title)("tabindex",t.tabindex)("disabled",t.disabled)("readonly",t.readonly)("placeholder",t.placeholder)("kendoEventsOutsideAngular",e.Hh0(13,Po,t.handleClick,t.handleFocus,t.handleMousedown,t.handleMousedown,t.handleDragAndDrop,t.handleDragAndDrop,t.handleBlur))("scope",t),e.uIk("role",t.role)("aria-readonly",t.ariaReadOnly)("aria-expanded",t.isPopupOpen)("aria-haspopup",t.hasPopup),e.xp6(2),e.Q6J("ngIf",t.spinners))},directives:function(){return[Lh,z.nV,Re.O5]},encapsulation:2,changeDetection:0}),ue([(0,e.IIB)(),me("design:type",String)],xr.prototype,"focusableId",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"disabled",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"readonly",void 0),ue([(0,e.IIB)(),me("design:type",String)],xr.prototype,"title",void 0),ue([(0,e.IIB)(),me("design:type",Number)],xr.prototype,"tabindex",void 0),ue([(0,e.IIB)(),me("design:type",String)],xr.prototype,"role",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"ariaReadOnly",void 0),ue([(0,e.IIB)(),me("design:type",Number),me("design:paramtypes",[Number])],xr.prototype,"tabIndex",null),ue([(0,e.IIB)(),me("design:type",Object)],xr.prototype,"format",void 0),ue([(0,e.IIB)(),me("design:type",Object)],xr.prototype,"formatPlaceholder",void 0),ue([(0,e.IIB)(),me("design:type",String)],xr.prototype,"placeholder",void 0),ue([(0,e.IIB)(),me("design:type",Object)],xr.prototype,"steps",void 0),ue([(0,e.IIB)(),me("design:type",Date)],xr.prototype,"max",void 0),ue([(0,e.IIB)(),me("design:type",Date)],xr.prototype,"min",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"rangeValidation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"autoCorrect",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"incompleteDateValidation",void 0),ue([(0,e.IIB)(),me("design:type",Number)],xr.prototype,"twoDigitYearMax",void 0),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],xr.prototype,"value",null),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"spinners",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"isPopupOpen",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],xr.prototype,"hasPopup",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],xr.prototype,"valueChange",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],xr.prototype,"valueUpdate",void 0),ue([(0,e.r_U)("focus"),me("design:type",e.vpe)],xr.prototype,"onFocus",void 0),ue([(0,e.r_U)("blur"),me("design:type",e.vpe)],xr.prototype,"onBlur",void 0),ue([(0,e.i9L)("dateInput",{static:!0}),me("design:type",e.SBq)],xr.prototype,"dateInput",void 0),ue([(0,e.i9L)("wrap",{static:!1}),me("design:type",e.SBq)],xr.prototype,"wrap",void 0),ue([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-dateinput"),me("design:type",Boolean),me("design:paramtypes",[])],xr.prototype,"wrapperClass",null),ue([(0,e.pfw)("class.k-state-disabled"),me("design:type",Boolean),me("design:paramtypes",[])],xr.prototype,"disabledClass",null),xr=ma=ue([fn(7,(0,e.FiY)()),me("design:paramtypes",[e.sBO,se.aJ,e.Qsj,e.SBq,e.R0b,e.zs3,G.oQ,ga])],xr);class kh{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const Bc=new e.OlP("dateinputs-touch-enabled"),Ah=n=>i=>n&&i.value&&n(i.value)?{disabledDate:!0}:null;var pu;let Is=pu=class{constructor(i,t,s,o,u,b,k,ae,q,Se){this.zone=i,this.localization=t,this.cdr=s,this.popupService=o,this.element=u,this.renderer=b,this.injector=k,this.pickerService=ae,this.disabledDatesService=q,this.touchEnabled=Se,this.focusableId=`k-${(0,z.M8)()}`,this.activeView=is[is.month],this.bottomView=is[is.month],this.topView=is[is.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=Wn(Lt),this.max=Wn(Tn),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.wrapperClasses=!0,this.popupUID=(0,z.M8)(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=Bs,this.onControlTouched=Bs,this.onValidatorChange=Bs,this.minValidateFn=Bs,this.maxValidateFn=Bs,this.disabledDatesValidateFn=Bs,this.incompleteValidator=Bs,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],(0,Kt.s)(T),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set cellTemplateRef(i){this.cellTemplate=i}set monthCellTemplateRef(i){this.monthCellTemplate=i}set yearCellTemplateRef(i){this.yearCellTemplate=i}set decadeCellTemplateRef(i){this.decadeCellTemplate=i}set centuryCellTemplateRef(i){this.centuryCellTemplate=i}set weekNumberTemplateRef(i){this.weekNumberTemplate=i}set headerTitleTemplateRef(i){this.headerTitleTemplate=i}set navigationItemTemplateRef(i){this.navigationItemTemplate=i}set popupSettings(i){this._popupSettings=Object.assign({},{animate:!0},i)}get popupSettings(){return this._popupSettings}set value(i){this.verifyValue(i),this._value=Wn(i)}get value(){return this._value}set tabIndex(i){this.tabindex=i}get tabIndex(){return this.tabindex}set disabledDates(i){this._disabledDates=i,this.disabledDatesService.initialize(i)}get disabledDates(){return this._disabledDates}get disabledClass(){return this.disabled}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get isActive(){return this._active}set isActive(i){if(this._active=i,!this.wrapper)return;const t=this.wrapper.nativeElement;i?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}get show(){return this._show}set show(i){i&&(this.disabled||this.readonly)||(i||this._show&&(0,z.g$)(this.close)?this.zone.run(()=>{this.togglePopup(i)}):this.togglePopup(i))}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(zt.a5,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(i){this.verifySettings(),(i.min||i.max||i.rangeValidation||i.disabledDatesValidation||i.disabledDates||i.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?Nd(this.min):Bs,this.maxValidateFn=this.rangeValidation?Ih(this.max):Bs,this.disabledDatesValidateFn=this.disabledDatesValidation?Ah(this.disabledDatesService.isDateDisabled):Bs,this.incompleteValidator=this.incompleteDateValidation?hu():Bs,this.onValidatorChange())}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(i=>i()),this.pickerSubscriptions.unsubscribe()}get isOpen(){return this.show}writeValue(i){this.verifyValue(i),this.value=Wn(i),this.cdr.markForCheck(),!i&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(i))}registerOnChange(i){this.onControlChange=i}registerOnTouched(i){this.onControlTouched=i}setDisabledState(i){this.disabled=i,this.cdr.markForCheck()}validate(i){return this.minValidateFn(i)||this.maxValidateFn(i)||this.disabledDatesValidateFn(i)||this.incompleteValidator(i,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(i){this.onValidatorChange=i}focus(){this.input.focus()}blur(){(this.calendar||this.input).blur()}toggle(i){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this._toggle(void 0===i?!this.show:i)})}handleIconClick(i){this.disabled||this.readonly||(i.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())}handleMousedown(i){i.preventDefault()}handleChange(i){this.cdr.markForCheck(),this.focusInput(),this.value=i,this.show=!1,this.onControlChange(Wn(i)),this.valueChange.emit(Wn(i))}handleInputChange(i){this.handleChange(this.input.formatSections.time?i:this.mergeTime(i))}get popupClasses(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])}get appendTo(){const{appendTo:i}=this.popupSettings;if(i&&"root"!==i)return"component"===i?this.container:i}get input(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}mergeTime(i){return this.value&&i?Wl(i,this.value):i}handleKeydown(i){const{altKey:t,keyCode:s}=i;s===z.R8.Escape&&(this.show=!1),t&&(s===z.R8.ArrowDown&&!this.show&&(this.show=!0),s===z.R8.ArrowUp&&(this.show=!1)),s===z.R8.Tab&&this.show&&this.calendar.isActive&&(this.input.focus(),this.show=!1)}togglePopup(i){const t=new kh;!this._show&&i?this.open.emit(t):this._show&&!i&&this.close.emit(t),!t.isDefaultPrevented()&&(this._toggle(i),this.toggleFocus())}_toggle(i){if(i!==this._show)if(this._show=i,i){const t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:t},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:t},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){!this.isActive||(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}verifySettings(){if((0,e.X6Q)()&&!nd(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")}verifyValue(i){if((0,e.X6Q)()&&i&&!(i instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")}bindEvents(){this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this))),_h()&&(this.windowBlurSubscription=(0,Me.R)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleFocus(){this.isActive||(this.isActive=!0,(0,z.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleWindowBlur(){!this.isOpen||(this.show=!1)}handleBlur(i){const t=i&&lr(i);t&&(this.input.containsElement(t)||this.calendar&&this.calendar.containsElement(t))||((0,z.g$)(this.onBlur)||this.show&&(0,z.g$)(this.close)||hi(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()}handleSameSelection(){this.show&&(this.focusInput(),this.show=!1)}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}};Is.\u0275fac=function(i){return new(i||Is)(e.Y36(e.R0b),e.Y36(G.oQ),e.Y36(e.sBO),e.Y36(un.qL),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(ga),e.Y36(fl),e.Y36(Bc,8))},Is.\u0275cmp=e.Xpm({type:Is,selectors:[["kendo-datepicker"]],contentQueries:function(i,t,s){if(1&i&&(e.Suo(s,Lo,5),e.Suo(s,oa,5),e.Suo(s,Ba,5),e.Suo(s,Da,5),e.Suo(s,Ko,5),e.Suo(s,fa,5),e.Suo(s,ss,5),e.Suo(s,Wa,5)),2&i){let o;e.iGM(o=e.CRH())&&(t.cellTemplate=o.first),e.iGM(o=e.CRH())&&(t.monthCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.yearCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.decadeCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.centuryCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.weekNumberTemplate=o.first),e.iGM(o=e.CRH())&&(t.headerTitleTemplate=o.first),e.iGM(o=e.CRH())&&(t.navigationItemTemplate=o.first)}},viewQuery:function(i,t){if(1&i&&(e.Gf(rc,7,e.s_b),e.Gf(oc,7),e.Gf(Ua,5)),2&i){let s;e.iGM(s=e.CRH())&&(t.container=s.first),e.iGM(s=e.CRH())&&(t.popupTemplate=s.first),e.iGM(s=e.CRH())&&(t.wrapper=s.first)}},hostVars:6,hostBindings:function(i,t){2&i&&e.ekj("k-widget",t.wrapperClasses)("k-datepicker",t.wrapperClasses)("k-state-disabled",t.disabledClass)},inputs:{focusableId:"focusableId",activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",focusedDate:"focusedDate",format:"format",twoDigitYearMax:"twoDigitYearMax",placeholder:"placeholder",tabindex:"tabindex",title:"title",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],popupSettings:"popupSettings",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",formatPlaceholder:"formatPlaceholder"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-datepicker"],features:[e._Bn([{provide:zt.JU,useExisting:(0,e.Gpc)(()=>pu),multi:!0},{provide:zt.Cf,useExisting:(0,e.Gpc)(()=>pu),multi:!0},{provide:z.GX,useExisting:(0,e.Gpc)(()=>pu)},G.oQ,ga,fl,{provide:G.mM,useValue:"kendo.datepicker"}]),e.TTD],decls:11,vars:26,consts:function(){let n,i,t,s;return n=$localize`:kendo.datepicker.today|The label for the today button in the calendar header␟c8af34428eb25c8f689f0c19a9300394b07b5be3␟5799873230514803381:Today`,i=$localize`:kendo.datepicker.toggle|The title of the toggle button in the datepicker component␟f6c28c2d80dbe993c4b33f4dc4010364f41cc2ae␟4817467473728423164:Toggle calendar`,t=$localize`:kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar␟b24bedd31916ff8439cd7e3c46cbdabea3409dd1␟1741914107549506055:Navigate to previous view`,s=$localize`:kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar␟2f0e2a91beb7149035e42bd0d6663e8903dc3852␟3363484587807059211:Navigate to next view`,[["kendoDatePickerLocalizedMessages","","today",n,"toggle",i,"prevButtonTitle",t,"nextButtonTitle",s],[1,"k-picker-wrap"],["wrapper",""],[3,"role","focusableId","hasPopup","isPopupOpen","disabled","readonly","ariaReadOnly","tabindex","title","format","twoDigitYearMax","formatPlaceholder","placeholder","min","max","incompleteDateValidation","value","valueChange"],["input",""],["role","button",1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-icon","k-i-calendar"],["container",""],["popupTemplate",""],[3,"type","min","max","navigation","animateNavigation","activeView","bottomView","topView","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate","focusedDate","value","kendoEventsOutsideAngular","scope","disabledDates","valueChange"],["calendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(i,t){1&i&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e.TgZ(3,"kendo-dateinput",3,4),e.NdJ("valueChange",function(o){return t.handleInputChange(o)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e.qZA(),e.GkF(7,null,7),e.YNc(9,qc,4,27,"ng-template",null,8,e.W1O)),2&i&&(e.xp6(1),e.ekj("k-state-disabled",t.disabled),e.xp6(2),e.Q6J("role",t.inputRole)("focusableId",t.focusableId)("hasPopup",!0)("isPopupOpen",t.show)("disabled",t.disabled)("readonly",t.readonly||t.readOnlyInput)("ariaReadOnly",t.readonly)("tabindex",t.tabindex)("title",t.title)("format",t.format)("twoDigitYearMax",t.twoDigitYearMax)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.min)("max",t.max)("incompleteDateValidation",t.incompleteDateValidation)("value",t.value),e.xp6(2),e.Q6J("kendoEventsOutsideAngular",e.WLB(23,ca,t.handleIconClick,t.handleMousedown))("scope",t),e.uIk("title",t.localization.get("toggle"))("aria-label",t.localization.get("toggle")))},directives:function(){return[Vu,xr,z.nV,uu,Hd]},encapsulation:2,changeDetection:0}),ue([(0,e.i9L)("container",{read:e.s_b,static:!0}),me("design:type",e.s_b)],Is.prototype,"container",void 0),ue([(0,e.i9L)("popupTemplate",{static:!0}),me("design:type",e.Rgc)],Is.prototype,"popupTemplate",void 0),ue([(0,e.i9L)("wrapper",{static:!1}),me("design:type",e.SBq)],Is.prototype,"wrapper",void 0),ue([(0,e.aQ5)(Lo,{static:!1}),me("design:type",Lo)],Is.prototype,"cellTemplate",void 0),ue([(0,e.IIB)("cellTemplate"),me("design:type",Lo),me("design:paramtypes",[Lo])],Is.prototype,"cellTemplateRef",null),ue([(0,e.aQ5)(oa,{static:!1}),me("design:type",oa)],Is.prototype,"monthCellTemplate",void 0),ue([(0,e.IIB)("monthCellTemplate"),me("design:type",oa),me("design:paramtypes",[oa])],Is.prototype,"monthCellTemplateRef",null),ue([(0,e.aQ5)(Ba,{static:!1}),me("design:type",Ba)],Is.prototype,"yearCellTemplate",void 0),ue([(0,e.IIB)("yearCellTemplate"),me("design:type",Ba),me("design:paramtypes",[Ba])],Is.prototype,"yearCellTemplateRef",null),ue([(0,e.aQ5)(Da,{static:!1}),me("design:type",Da)],Is.prototype,"decadeCellTemplate",void 0),ue([(0,e.IIB)("decadeCellTemplate"),me("design:type",Da),me("design:paramtypes",[Da])],Is.prototype,"decadeCellTemplateRef",null),ue([(0,e.aQ5)(Ko,{static:!1}),me("design:type",Ko)],Is.prototype,"centuryCellTemplate",void 0),ue([(0,e.IIB)("centuryCellTemplate"),me("design:type",Ko),me("design:paramtypes",[Ko])],Is.prototype,"centuryCellTemplateRef",null),ue([(0,e.aQ5)(fa,{static:!1}),me("design:type",fa)],Is.prototype,"weekNumberTemplate",void 0),ue([(0,e.IIB)("weekNumberTemplate"),me("design:type",fa),me("design:paramtypes",[fa])],Is.prototype,"weekNumberTemplateRef",null),ue([(0,e.aQ5)(ss,{static:!1}),me("design:type",ss)],Is.prototype,"headerTitleTemplate",void 0),ue([(0,e.IIB)("headerTitleTemplate"),me("design:type",ss),me("design:paramtypes",[ss])],Is.prototype,"headerTitleTemplateRef",null),ue([(0,e.aQ5)(Wa,{static:!1}),me("design:type",Wa)],Is.prototype,"navigationItemTemplate",void 0),ue([(0,e.IIB)("navigationItemTemplate"),me("design:type",Wa),me("design:paramtypes",[Wa])],Is.prototype,"navigationItemTemplateRef",null),ue([(0,e.IIB)(),me("design:type",String)],Is.prototype,"focusableId",void 0),ue([(0,e.IIB)(),me("design:type",String)],Is.prototype,"activeView",void 0),ue([(0,e.IIB)(),me("design:type",String)],Is.prototype,"bottomView",void 0),ue([(0,e.IIB)(),me("design:type",String)],Is.prototype,"topView",void 0),ue([(0,e.IIB)(),me("design:type",String)],Is.prototype,"calendarType",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"animateCalendarNavigation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"disabled",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"readonly",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"readOnlyInput",void 0),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],Is.prototype,"popupSettings",null),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"navigation",void 0),ue([(0,e.IIB)(),me("design:type",Date)],Is.prototype,"min",void 0),ue([(0,e.IIB)(),me("design:type",Date)],Is.prototype,"max",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"incompleteDateValidation",void 0),ue([(0,e.IIB)(),me("design:type",Date)],Is.prototype,"focusedDate",void 0),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],Is.prototype,"value",null),ue([(0,e.IIB)(),me("design:type",Object)],Is.prototype,"format",void 0),ue([(0,e.IIB)(),me("design:type",Number)],Is.prototype,"twoDigitYearMax",void 0),ue([(0,e.IIB)(),me("design:type",Object)],Is.prototype,"formatPlaceholder",void 0),ue([(0,e.IIB)(),me("design:type",String)],Is.prototype,"placeholder",void 0),ue([(0,e.IIB)(),me("design:type",Number)],Is.prototype,"tabindex",void 0),ue([(0,e.IIB)(),me("design:type",Number),me("design:paramtypes",[Number])],Is.prototype,"tabIndex",null),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],Is.prototype,"disabledDates",null),ue([(0,e.IIB)(),me("design:type",String)],Is.prototype,"title",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"rangeValidation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"disabledDatesValidation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Is.prototype,"weekNumber",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],Is.prototype,"valueChange",void 0),ue([(0,e.r_U)("focus"),me("design:type",e.vpe)],Is.prototype,"onFocus",void 0),ue([(0,e.r_U)("blur"),me("design:type",e.vpe)],Is.prototype,"onBlur",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],Is.prototype,"open",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],Is.prototype,"close",void 0),ue([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-datepicker"),me("design:type",Boolean)],Is.prototype,"wrapperClasses",void 0),ue([(0,e.pfw)("class.k-state-disabled"),me("design:type",Boolean),me("design:paramtypes",[])],Is.prototype,"disabledClass",null),Is=pu=ue([fn(9,(0,e.FiY)()),fn(9,(0,e.tBr)(Bc)),me("design:paramtypes",[e.R0b,G.oQ,e.sBO,un.qL,e.SBq,e.Qsj,e.zs3,ga,fl,Boolean])],Is);var Fh;const v=new RegExp("hour|minute|second|millisecond|dayperiod|literal");let d=Fh=class{constructor(i,t,s,o,u,b,k,ae,q,Se){this.zone=i,this.localization=t,this.cdr=s,this.popupService=o,this.element=u,this.renderer=b,this.injector=k,this.pickerService=ae,this.intl=q,this.touchEnabled=Se,this.focusableId=`k-${(0,z.M8)()}`,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.wrapperClasses=!0,this.popupUID=(0,z.M8)(),this.onControlChange=Bs,this.onControlTouched=Bs,this.onValidatorChange=Bs,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=Bs,this.incompleteValidator=Bs,this._min=Wn(ei),this._max=Wn(ri),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],(0,Kt.s)(T),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set min(i){this._min=Wn(i||ei)}get min(){return this._min}set max(i){this._max=Wn(i||ri)}get max(){return this._max}set steps(i){this._steps=i||{}}get steps(){return this._steps}set popupSettings(i){this._popupSettings=Object.assign({},{animate:!0},i)}get popupSettings(){return this._popupSettings}set tabIndex(i){this.tabindex=i}get tabIndex(){return this.tabindex}set value(i){this.verifyValue(i),this._value=Wn(i)}get value(){return this._value}get disabledClass(){return this.disabled}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get isActive(){return this._active}set isActive(i){if(this._active=i,!this.wrapper)return;const t=this.wrapper.nativeElement;i?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}get show(){return this._show}set show(i){i&&(this.disabled||this.readonly)||(i||this._show&&(0,z.g$)(this.close)?this.zone.run(()=>{this.togglePopup(i)}):this.togglePopup(i))}get input(){return this.pickerService.input}get timeSelector(){return this.pickerService.timeSelector}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(zt.a5,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(i){(i.min||i.max||i.rangeValidation||i.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?((n,i)=>t=>{if(!n||!i||!t.value)return null;const s={timeRangeError:{maxValue:i,minValue:n,value:t.value}};return rp(t.value,n,i)?null:s})(this.min,this.max):Bs,this.incompleteValidator=this.incompleteDateValidation?hu():Bs,this.onValidatorChange()),i.format&&this.verifyFormat()}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(i=>i()),this.pickerSubscriptions.unsubscribe()}handleKeydown(i){const{altKey:t,keyCode:s}=i;s!==z.R8.Escape?t&&(s===z.R8.ArrowUp&&(this.show=!1),s===z.R8.ArrowDown&&!this.show&&(this.show=!0)):this.show=!1}writeValue(i){this.verifyValue(i),this.value=Wn(i),this.cdr.markForCheck(),!i&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(i))}registerOnChange(i){this.onControlChange=i}registerOnTouched(i){this.onControlTouched=i}setDisabledState(i){this.disabled=i,this.cdr.markForCheck()}validate(i){return this.timeRangeValidateFn(i)||this.incompleteValidator(i,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(i){this.onValidatorChange=i}focus(){this.input.focus()}blur(){(this.timeSelector||this.input).blur()}toggle(i){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this._toggle(void 0===i?!this.show:i)})}get isOpen(){return this.show}get appendTo(){const{appendTo:i}=this.popupSettings;if(i&&"root"!==i)return"component"===i?this.container:i}handleChange(i){if(sr(this.value,i))return this.focusInput(),void(this.show=!1);this.value=Wn(i),this.zone.run(()=>{this.focusInput(),this.show=!1,this.onControlChange(Wn(i)),this.valueChange.emit(Wn(i))})}handleReject(){this.show=!1}handleInputChange(i){const t=this.input.formatSections.date?i:this.mergeTime(i);this.handleChange(t)}handleMousedown(i){i.preventDefault()}handleIconClick(i){this.disabled||this.readonly||(i.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)}get popupClasses(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])}normalizeTime(i){return Wl(lt,i)}mergeTime(i){return this.value&&i?Wl(this.value,i):i}togglePopup(i){const t=new kh;!this._show&&i?this.open.emit(t):this._show&&!i&&this.close.emit(t),!t.isDefaultPrevented()&&(this._toggle(i),this.toggleFocus())}_toggle(i){if(i!==this.isOpen)if(this._show=i,this.cdr.markForCheck(),i){const t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:t},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:t},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){!this.isActive||(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}verifyValue(i){if((0,e.X6Q)()&&i&&!(i instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")}verifyFormat(){if((0,e.X6Q)()&&this.intl.splitDateFormat(this.format).some(t=>!v.test(t.type)))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")}bindEvents(){this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this))),_h()&&(this.windowBlurSubscription=(0,Me.R)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleWindowBlur(){!this.isOpen||(this.show=!1)}handleFocus(){this.isActive||(this.isActive=!0,(0,z.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleBlur(i){const t=i&&lr(i);t&&(this.input.containsElement(t)||this.timeSelector&&this.timeSelector.containsElement(t))||((0,z.g$)(this.onBlur)||this.show&&(0,z.g$)(this.close)||hi(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}};var M;d.\u0275fac=function(i){return new(i||d)(e.Y36(e.R0b),e.Y36(G.oQ),e.Y36(e.sBO),e.Y36(un.qL),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(ga),e.Y36(se.aJ),e.Y36(Bc,8))},d.\u0275cmp=e.Xpm({type:d,selectors:[["kendo-timepicker"]],viewQuery:function(i,t){if(1&i&&(e.Gf(rc,5,e.s_b),e.Gf(oc,5),e.Gf(Ua,5)),2&i){let s;e.iGM(s=e.CRH())&&(t.container=s.first),e.iGM(s=e.CRH())&&(t.popupTemplate=s.first),e.iGM(s=e.CRH())&&(t.wrapper=s.first)}},hostVars:6,hostBindings:function(i,t){2&i&&e.ekj("k-widget",t.wrapperClasses)("k-timepicker",t.wrapperClasses)("k-state-disabled",t.disabledClass)},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",format:"format",placeholder:"placeholder",incompleteDateValidation:"incompleteDateValidation",cancelButton:"cancelButton",nowButton:"nowButton",tabindex:"tabindex",title:"title",rangeValidation:"rangeValidation",min:"min",max:"max",steps:"steps",popupSettings:"popupSettings",tabIndex:"tabIndex",value:"value",formatPlaceholder:"formatPlaceholder"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-timepicker"],features:[e._Bn([{provide:zt.JU,useExisting:(0,e.Gpc)(()=>Fh),multi:!0},{provide:zt.Cf,useExisting:(0,e.Gpc)(()=>Fh),multi:!0},{provide:z.GX,useExisting:(0,e.Gpc)(()=>Fh)},G.oQ,{provide:G.mM,useValue:"kendo.timepicker"},ga]),e.TTD],decls:11,vars:26,consts:function(){let n,i,t,s,o,u,b;return n=$localize`:kendo.timepicker.accept|The Accept button text in the timepicker component␟4c3bf42192220c7611c09ece1c5de14855139dd0␟7519663530416240229:Set`,i=$localize`:kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component␟93c2a9c3aa49f56e452c0aecbaabe3bb33fa4222␟4355879331538595758:Set time`,t=$localize`:kendo.timepicker.cancel|The Cancel button text in the timepicker component␟132eefca16bd41d489b4647724b91e93793603aa␟1086687567255473060:Cancel`,s=$localize`:kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component␟2cf6f4ca4470810944b4016c9b6f87943d3390ab␟83621966901491941:Cancel changes`,o=$localize`:kendo.timepicker.now|The Now button text in the timepicker component␟bbc99bb74ae75a503bd813aad0c7253d3553e923␟5912507758515138116:Now`,u=$localize`:kendo.timepicker.nowLabel|The label for the Now button in the timepicker component␟df1a696f318275aa934e27850920889d494c2740␟371982627910576599:Select now`,b=$localize`:kendo.timepicker.toggle|The label for the toggle button in the timepicker component␟f2c196786ed2d3ecb2369750c36aac9a4053fb30␟6938407659294495526:Toggle time list`,[["kendoTimePickerLocalizedMessages","","accept",n,"acceptLabel",i,"cancel",t,"cancelLabel",s,"now",o,"nowLabel",u,"toggle",b],[1,"k-picker-wrap"],["wrapper",""],[3,"focusableId","hasPopup","isPopupOpen","disabled","readonly","role","ariaReadOnly","format","formatPlaceholder","placeholder","min","max","incompleteDateValidation","steps","tabindex","title","value","valueChange"],["input",""],["role","button",1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-icon","k-i-clock"],["popupTemplate",""],["container",""],[3,"cancelButton","nowButton","format","min","max","steps","value","kendoEventsOutsideAngular","scope","valueChange","valueReject"],["timeSelector",""],[3,"acceptLabel","accept","cancelLabel","cancel","nowLabel","now"]]},template:function(i,t){1&i&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e.TgZ(3,"kendo-dateinput",3,4),e.NdJ("valueChange",function(o){return t.handleInputChange(o)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e.YNc(7,po,3,18,"ng-template",null,7,e.W1O),e.qZA(),e.GkF(9,null,8)),2&i&&(e.xp6(1),e.ekj("k-state-disabled",t.disabled),e.xp6(2),e.Q6J("focusableId",t.focusableId)("hasPopup",!0)("isPopupOpen",t.show)("disabled",t.disabled)("readonly",t.readonly||t.readOnlyInput)("role",t.inputRole)("ariaReadOnly",t.readonly)("format",t.format)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.normalizeTime(t.min))("max",t.normalizeTime(t.max))("incompleteDateValidation",t.incompleteDateValidation)("steps",t.steps)("tabindex",t.show?-1:t.tabindex)("title",t.title)("value",t.value),e.xp6(2),e.Q6J("kendoEventsOutsideAngular",e.WLB(23,ca,t.handleIconClick,t.handleMousedown))("scope",t),e.uIk("title",t.localization.get("toggle"))("aria-label",t.localization.get("toggle")))},directives:function(){return[zc,xr,z.nV,Ep,yu]},encapsulation:2,changeDetection:0}),ue([(0,e.i9L)("container",{read:e.s_b,static:!1}),me("design:type",e.s_b)],d.prototype,"container",void 0),ue([(0,e.i9L)("popupTemplate",{static:!1}),me("design:type",e.Rgc)],d.prototype,"popupTemplate",void 0),ue([(0,e.i9L)("wrapper",{static:!1}),me("design:type",e.SBq)],d.prototype,"wrapper",void 0),ue([(0,e.IIB)(),me("design:type",String)],d.prototype,"focusableId",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],d.prototype,"disabled",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],d.prototype,"readonly",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],d.prototype,"readOnlyInput",void 0),ue([(0,e.IIB)(),me("design:type",String)],d.prototype,"format",void 0),ue([(0,e.IIB)(),me("design:type",Object)],d.prototype,"formatPlaceholder",void 0),ue([(0,e.IIB)(),me("design:type",String)],d.prototype,"placeholder",void 0),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],d.prototype,"min",null),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],d.prototype,"max",null),ue([(0,e.IIB)(),me("design:type",Boolean)],d.prototype,"incompleteDateValidation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],d.prototype,"cancelButton",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],d.prototype,"nowButton",void 0),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],d.prototype,"steps",null),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],d.prototype,"popupSettings",null),ue([(0,e.IIB)(),me("design:type",Number)],d.prototype,"tabindex",void 0),ue([(0,e.IIB)(),me("design:type",Number),me("design:paramtypes",[Number])],d.prototype,"tabIndex",null),ue([(0,e.IIB)(),me("design:type",String)],d.prototype,"title",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],d.prototype,"rangeValidation",void 0),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],d.prototype,"value",null),ue([(0,e.r_U)(),me("design:type",e.vpe)],d.prototype,"valueChange",void 0),ue([(0,e.r_U)("focus"),me("design:type",e.vpe)],d.prototype,"onFocus",void 0),ue([(0,e.r_U)("blur"),me("design:type",e.vpe)],d.prototype,"onBlur",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],d.prototype,"open",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],d.prototype,"close",void 0),ue([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-timepicker"),me("design:type",Boolean)],d.prototype,"wrapperClasses",void 0),ue([(0,e.pfw)("class.k-state-disabled"),me("design:type",Boolean),me("design:paramtypes",[])],d.prototype,"disabledClass",null),d=Fh=ue([fn(9,(0,e.FiY)()),fn(9,(0,e.tBr)(Bc)),me("design:paramtypes",[e.R0b,G.oQ,e.sBO,un.qL,e.SBq,e.Qsj,e.zs3,ga,se.aJ,Boolean])],d);const Y=new RegExp("hour|minute|second|dayperiod|literal"),gn="date";let Pi=M=class{constructor(i,t,s,o,u,b,k,ae,q,Se){this.popupService=i,this.intl=t,this.cdr=s,this.pickerService=o,this.ngZone=u,this.host=b,this.touchEnabled=k,this.localization=ae,this.disabledDatesService=q,this.renderer=Se,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId=`k-${(0,z.M8)()}`,this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.activeTab=gn,this.timeSelectorFormat="t",this.timeSelectorMin=Wn(ei),this.timeSelectorMax=Wn(ri),this.calendarValue=null,this.calendarMin=Wn(Lt),this.calendarMax=pf(Tn),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=gn,this._min=yh(Lt,ei),this._max=yh(Tn,ri),this._isActive=!1,this.onControlTouched=Bs,this.onControlChange=Bs,this.onValidatorChange=Bs,this.minValidateFn=Bs,this.maxValidateFn=Bs,this.disabledDatesValidateFn=Bs,this.incompleteValidator=Bs,this.subscriptions=new he.w0,(0,Kt.s)(T)}get input(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}get timeSelector(){return this.pickerService.timeSelector}set value(i){this.verifyValue(i),this._value=Wn(i),this.setCalendarValue(i),this.cdr.markForCheck()}get value(){return this._value}set format(i){this._format=i;const t=this.getDisplayFormat(i);this.timeSelectorFormat=this.getTimeSelectorFormat(t)}get format(){return this._format}set tabindex(i){const t=Number(i);this._tabindex=isNaN(t)?0:t}get tabindex(){return this.disabled?-1:this._tabindex}set disabledDates(i){this._disabledDates=i,this.disabledDatesService.initialize(i)}get disabledDates(){return this._disabledDates}set popupSettings(i){this._popupSettings=Object.assign({},{animate:!0},i)}get popupSettings(){return this._popupSettings}set min(i){!Mi(i)||(this._min=Wn(i),this.calendarMin=Vi(i))}get min(){return this._min}set max(i){!Mi(i)||(this._max=Wn(i),this.calendarMax=pf(i))}get max(){return this._max}get isOpen(){return Mi(this.popupRef)}get isActive(){return this._isActive}set isActive(i){i?this.renderer.addClass(this.wrapper.nativeElement,"k-state-focused"):this.renderer.removeClass(this.wrapper.nativeElement,"k-state-focused"),this._isActive=i}set defaultTab(i){this._defaultTab=i||gn,this.activeTab=this.defaultTab}get defaultTab(){return this._defaultTab}get tabSwitchTransition(){return this.isOpen?null:"none"}get disableCalendar(){return"date"!==this.activeTab&&!this.calendar.isActive}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get disableTimeSelector(){return"time"!==this.activeTab&&!this.timeSelector.isActive}get activeTabComponent(){if(this.isOpen)return Mi(this.calendar)||Mi(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector}get appendTo(){const{appendTo:i}=this.popupSettings;if(Mi(i)&&"root"!==i)return"component"===i?this.container:i}ngOnInit(){this.subscriptions.add(this.pickerService.onFocus.pipe((0,$t.b)(this.detectPopupChanges.bind(this))).subscribe(this.handleFocus.bind(this))),this.subscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.subscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleCalendarValueChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.subscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this))),_h()&&this.subscriptions.add(this.ngZone.runOutsideAngular(()=>(0,Me.R)(window,"blur").subscribe(this.handleCancel.bind(this))))}ngOnChanges(i){(Mi(i.min)||Mi(i.max))&&this.verifyMinMaxRange(),(i.min||i.max||i.rangeValidation||i.disabledDatesValidation||i.disabledDates||i.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?Nd(this.min):Bs,this.maxValidateFn=this.rangeValidation?Ih(this.max):Bs,this.disabledDatesValidateFn=this.disabledDatesValidation?Ah(this.disabledDatesService.isDateDisabled):Bs,this.incompleteValidator=this.incompleteDateValidation?hu():Bs,this.onValidatorChange())}ngOnDestroy(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()}focus(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.input.focus())}blur(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.input.blur()}toggle(i){this.disabled||this.readonly||i===this.isOpen||((Mi(i)?i:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))}writeValue(i){this.value=i}registerOnChange(i){this.onControlChange=i}registerOnTouched(i){this.onControlTouched=i}setDisabledState(i){this.disabled=i,this.cdr.markForCheck()}validate(i){return this.minValidateFn(i)||this.maxValidateFn(i)||this.disabledDatesValidateFn(i)||this.incompleteValidator(i,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(i){this.onValidatorChange=i}isEmpty(){return!Mi(this.value)&&this.input.isEmpty()}handleIconClick(i){if(this.disabled||this.readonly)return;i.preventDefault();const t=!this.isOpen||(0,z.g$)(this.close);this.run(t,()=>{const s=!this.isOpen;this.handleFocus(),this.togglePopup(s),this.switchFocus()})}handleFocus(){this.isActive||(this.isActive=!0,(0,z.g$)(this.onFocus)&&this.ngZone.run(()=>this.onFocus.emit()))}handleBlur(i){if(!this.isActive||this.focusTargetInComponent(i))return;this.isActive=!1;const s=this.host.nativeElement.classList.contains("ng-untouched")||(0,z.g$)(this.onBlur)||this.isOpen&&(0,z.g$)(this.close);this.run(s,()=>{this.onBlur.emit(),this.onControlTouched(),this.togglePopup(!1),this.cdr.markForCheck()})}changeActiveTab(i){!this.isOpen||this.activeTab===i||(sr(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=i,this.cdr.detectChanges(),this.detectPopupChanges())}handleTabChangeTransitionEnd(i,t){t.target===i&&this.activeTabComponent.focus()}handleAccept(){if(!this.isOpen)return;const i=yh(this.calendar.value,this.timeSelector.current),s=!sr(this.value,i)||(0,z.g$)(this.close);this.run(s,()=>{this.handleValueChange(i),this.togglePopup(!1)})}handleCancel(){if(!this.isOpen)return;const i=(0,z.g$)(this.close);this.run(i,()=>this.togglePopup(!1))}handleInputValueChange(i){this.handleValueChange(i),this.isOpen&&this.togglePopup(!1)}handleCalendarValueChange(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")}handleKeyDown(i){if(this.disabled||this.readonly)return;const{keyCode:t,altKey:s}=i;switch(t){case s&&z.R8.ArrowUp:case z.R8.Escape:this.handleCancel();break;case!this.isOpen&&s&&z.R8.ArrowDown:this.ngZone.run(()=>this.togglePopup(!0));break;case s&&z.R8.ArrowRight:this.changeActiveTab("time");break;case s&&z.R8.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&Mi(this.calendarValue)&&z.R8.Enter:this.handleAccept();break;default:return}i.preventDefault()}handleTabOut(i){const{keyCode:t,shiftKey:s,target:o}=i,u=Mi(o.nextElementSibling)&&!o.nextElementSibling.disabled;t===z.R8.Tab&&!s&&!u&&(this.input.focus(),this.handleCancel())}handleBackTabOut(i){const{keyCode:t,shiftKey:s}=i;t===z.R8.Tab&&s&&this.input.focus()}preventMouseDown(i){i.preventDefault()}verifyValue(i){if((0,e.X6Q)()&&Mi(i)&&!(i instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")}verifyMinMaxRange(){if((0,e.X6Q)()&&!nd(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")}getTimeSelectorFormat(i){return this.intl.splitDateFormat(i).filter(this.timeFormatPartFilter).reduce((s,o)=>s+o.pattern,"")||"t"}getDisplayFormat(i){return i?"string"==typeof i?i:i.displayFormat:"g"}timeFormatPartFilter(i,t,s){const o=t>=1&&s[t-1];return Y.test(o&&"literal"===i.type?o.type:i.type)}togglePopup(i){if(i===this.isOpen)return;const t=new kh;i?this.open.emit(t):this.close.emit(t),!t.isDefaultPrevented()&&(this.toggle(i),this.switchFocus())}switchFocus(){!this.isActive||(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}openPopup(){this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);const i=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:`k-datetime-container ${this.popupSettings.popupClass||""}`,anchorAlign:{vertical:"bottom",horizontal:i},popupAlign:{vertical:"top",horizontal:i}}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.handleCancel())}closePopup(){!this.isOpen||(this.popupRef.close(),this.popupRef=null)}handleValueChange(i){sr(this.value,i)||(this.value=Wn(i),this.onControlChange(Wn(i)),this.valueChange.emit(Wn(i)))}focusTargetInComponent(i){if(!Mi(i))return!1;const t=i.relatedTarget||document.activeElement,s=Mi(this.popupRef)&&this.popupRef.popupElement.contains(t),o=this.wrapper.nativeElement.contains(t);return s||o}setTimeSelectorMinMax(i){const t=Mi(i)&&sr(Vi(i),Vi(this.min));this.timeSelectorMin=Wn(t?this.min:ei);const s=Mi(i)&&sr(Vi(i),Vi(this.max));this.timeSelectorMax=Wn(s?this.max:ri)}setCalendarValue(i){const t=Mi(i)&&Ac(i,this.calendarMin,this.calendarMax);this.calendarValue=t?Vi(i):null}detectPopupChanges(){!this.isOpen||this.popupRef.popup.changeDetectorRef.detectChanges()}run(i,t){i?this.ngZone.run(()=>t()):t()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.ngZone.run(()=>this.onValidatorChange())}};Pi.\u0275fac=function(i){return new(i||Pi)(e.Y36(un.qL),e.Y36(se.aJ),e.Y36(e.sBO),e.Y36(ga),e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(Bc),e.Y36(G.oQ),e.Y36(fl),e.Y36(e.Qsj))},Pi.\u0275cmp=e.Xpm({type:Pi,selectors:[["kendo-datetimepicker"]],contentQueries:function(i,t,s){if(1&i&&(e.Suo(s,Lo,5),e.Suo(s,oa,5),e.Suo(s,Ba,5),e.Suo(s,Da,5),e.Suo(s,Ko,5),e.Suo(s,fa,5),e.Suo(s,ss,5)),2&i){let o;e.iGM(o=e.CRH())&&(t.cellTemplate=o.first),e.iGM(o=e.CRH())&&(t.monthCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.yearCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.decadeCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.centuryCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.weekNumberTemplate=o.first),e.iGM(o=e.CRH())&&(t.headerTitleTemplate=o.first)}},viewQuery:function(i,t){if(1&i&&(e.Gf(Ua,7),e.Gf(rc,7,e.s_b),e.Gf(oc,7,e.Rgc)),2&i){let s;e.iGM(s=e.CRH())&&(t.wrapper=s.first),e.iGM(s=e.CRH())&&(t.container=s.first),e.iGM(s=e.CRH())&&(t.popupTemplate=s.first)}},hostVars:4,hostBindings:function(i,t){2&i&&e.ekj("k-widget",t.hostClasses)("k-datetimepicker",t.hostClasses)},inputs:{twoDigitYearMax:"twoDigitYearMax",focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",cancelButton:"cancelButton",steps:"steps",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",weekNumber:"weekNumber",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",incompleteDateValidation:"incompleteDateValidation",value:"value",format:"format",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",min:"min",max:"max",defaultTab:"defaultTab",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",focusedDate:"focusedDate"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-datetimepicker"],features:[e._Bn([ga,G.oQ,fl,{provide:G.mM,useValue:"kendo.datetimepicker"},{provide:zt.JU,useExisting:(0,e.Gpc)(()=>M),multi:!0},{provide:zt.Cf,useExisting:(0,e.Gpc)(()=>M),multi:!0},{provide:z.GX,useExisting:(0,e.Gpc)(()=>M)}]),e.TTD],decls:11,vars:35,consts:function(){let n,i,t,s,o,u,b,k,ae,q,Se,yt,at,Ht;return n=$localize`:kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header␟5bb17f81ae8dbc109499ce3792afffa6b7cef855␟3360129034450596425:Date`,i=$localize`:kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header␟2a400c9e364a4c6d83ac39b5513c962805db54b2␟1810540079817643910:Date tab`,t=$localize`:kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header␟e9b2b760a6916040e7520a9a2926d65de175944d␟3807284594201983607:Time`,s=$localize`:kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header␟13bf7e3a1036140119732c6d5952f7a20c22999e␟2577682127494513393:Time tab`,o=$localize`:kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component␟60296a83f0d3e3d07aaba87c4f8e91b0aca3c22a␟3159207801887264026:Toggle popup`,u=$localize`:kendo.datetimepicker.accept|The Accept button text in the datetimepicker component␟4359b59db7ded88e106ada877e744c71b188f8f9␟3915774704336012538:Set`,b=$localize`:kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component␟cbea4571cca81ad9767a6b29f0287d1f3f6372dc␟4770689705864890748:Set`,k=$localize`:kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component␟17ab795d6f7527dd962a309759ca58cb4edd7e52␟5100781969600382158:Cancel`,ae=$localize`:kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component␟ba26795ab9f4c21d66b17549ba854a96fcdac1f9␟3535986227615756275:Cancel`,q=$localize`:kendo.datetimepicker.now|The Now button text in the timepicker component␟7172e7e9a1741f6b63439ec89e498c995cb23b0d␟5497093725885127701:NOW`,Se=$localize`:kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component␟52d90641b26b1ce4c011cadf0437ce36c1dac1d5␟5046379108717037514:Select now`,yt=$localize`:kendo.datetimepicker.today|The label for the today button in the calendar header␟9ef9db9ac4951523d519b989d223f507878c612d␟2570147067439993260:Today`,at=$localize`:kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar␟447d09c4ecfc2ab2b84d708f4c07fa0fcda85167␟6176055232586065404:Navigate to previous view`,Ht=$localize`:kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar␟80fd3325bfe94a180fd27391f2245c024472ec58␟6424339255333594510:Navigate to next view`,[["kendoDateTimePickerLocalizedMessages","","dateTab",n,"dateTabLabel",i,"timeTab",t,"timeTabLabel",s,"toggle",o,"accept",u,"acceptLabel",b,"cancel",k,"cancelLabel",ae,"now",q,"nowLabel",Se,"today",yt,"prevButtonTitle",at,"nextButtonTitle",Ht],[1,"k-picker-wrap"],["wrapper",""],[3,"value","format","twoDigitYearMax","min","max","incompleteDateValidation","formatPlaceholder","placeholder","disabled","readonly","role","ariaReadOnly","steps","tabindex","title","focusableId","hasPopup","isPopupOpen","kendoEventsOutsideAngular","scope","valueChange"],[1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-link","k-link-date"],[1,"k-icon"],["container",""],["popupTemplate",""],[3,"kendoEventsOutsideAngular","scope"],[1,"k-datetime-buttongroup",3,"kendoEventsOutsideAngular","scope"],[1,"k-button-group","k-button-group-stretched"],["type","button",1,"k-button","k-date-tab",3,"kendoEventsOutsideAngular","scope"],["type","button",1,"k-button","k-time-tab",3,"kendoEventsOutsideAngular"],[1,"k-datetime-selector",3,"kendoEventsOutsideAngular"],["dateTimeSelector",""],[1,"k-datetime-calendar-wrap"],[3,"value","type","min","max","focusedDate","weekNumber","navigation","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","disabled","disabledDates","valueChange"],[3,"today","prevButtonTitle","nextButtonTitle"],[1,"k-datetime-time-wrap"],[3,"value","format","min","max","setButton","cancelButton","steps","disabled"],[3,"now","nowLabel"],[1,"k-datetime-footer","k-action-buttons","k-actions","k-hstack","k-justify-content-stretch",3,"kendoEventsOutsideAngular","scope"],["type","button","class","k-button k-time-cancel",3,"kendoEventsOutsideAngular","scope",4,"ngIf"],["type","button",1,"k-time-accept","k-button","k-primary",3,"disabled","kendoEventsOutsideAngular","scope"],["type","button",1,"k-button","k-time-cancel",3,"kendoEventsOutsideAngular","scope"]]},template:function(i,t){1&i&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e.TgZ(3,"kendo-dateinput",3),e.NdJ("valueChange",function(o){return t.handleInputValueChange(o)}),e.qZA(),e.TgZ(4,"span",4),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e.qZA(),e.qZA(),e.GkF(7,null,7),e.YNc(9,xd,19,81,"ng-template",null,8,e.W1O)),2&i&&(e.xp6(1),e.ekj("k-state-disabled",t.disabled),e.xp6(2),e.Q6J("value",t.value)("format",t.format)("twoDigitYearMax",t.twoDigitYearMax)("min",t.min)("max",t.max)("incompleteDateValidation",t.incompleteDateValidation)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("disabled",t.disabled)("readonly",t.readonly||t.readOnlyInput)("role",t.inputRole)("ariaReadOnly",t.readonly)("steps",t.steps)("tabindex",t.tabindex)("title",t.title)("focusableId",t.focusableId)("hasPopup",!0)("isPopupOpen",t.isOpen)("kendoEventsOutsideAngular",e.VKq(30,ho,t.handleKeyDown))("scope",t),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.WLB(32,ul,t.preventMouseDown,t.handleIconClick))("scope",t),e.uIk("title",t.localization.get("toggle"))("aria-label",t.localization.get("toggle")),e.xp6(2),e.ekj("k-i-calendar","date"===t.activeTab)("k-i-clock","time"===t.activeTab))},directives:function(){return[bu,xr,z.nV,uu,Hd,Ep,yu,Re.O5]},encapsulation:2,changeDetection:0}),ue([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-datetimepicker"),me("design:type",Boolean)],Pi.prototype,"hostClasses",void 0),ue([(0,e.i9L)("wrapper",{static:!0}),me("design:type",e.SBq)],Pi.prototype,"wrapper",void 0),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],Pi.prototype,"value",null),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],Pi.prototype,"format",null),ue([(0,e.IIB)(),me("design:type",Number)],Pi.prototype,"twoDigitYearMax",void 0),ue([(0,e.IIB)(),me("design:type",Number),me("design:paramtypes",[Number])],Pi.prototype,"tabindex",null),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],Pi.prototype,"disabledDates",null),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],Pi.prototype,"popupSettings",null),ue([(0,e.IIB)(),me("design:type",String)],Pi.prototype,"focusableId",void 0),ue([(0,e.IIB)(),me("design:type",String)],Pi.prototype,"title",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"disabled",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"readonly",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"readOnlyInput",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"cancelButton",void 0),ue([(0,e.IIB)(),me("design:type",Object)],Pi.prototype,"formatPlaceholder",void 0),ue([(0,e.IIB)(),me("design:type",String)],Pi.prototype,"placeholder",void 0),ue([(0,e.IIB)(),me("design:type",Object)],Pi.prototype,"steps",void 0),ue([(0,e.IIB)(),me("design:type",Date)],Pi.prototype,"focusedDate",void 0),ue([(0,e.IIB)(),me("design:type",String)],Pi.prototype,"calendarType",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"animateCalendarNavigation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"weekNumber",void 0),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],Pi.prototype,"min",null),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],Pi.prototype,"max",null),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"rangeValidation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"disabledDatesValidation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],Pi.prototype,"incompleteDateValidation",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],Pi.prototype,"valueChange",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],Pi.prototype,"open",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],Pi.prototype,"close",void 0),ue([(0,e.r_U)("focus"),me("design:type",e.vpe)],Pi.prototype,"onFocus",void 0),ue([(0,e.r_U)("blur"),me("design:type",e.vpe)],Pi.prototype,"onBlur",void 0),ue([(0,e.IIB)(),me("design:type",String),me("design:paramtypes",[String])],Pi.prototype,"defaultTab",null),ue([(0,e.aQ5)(Lo,{static:!1}),me("design:type",Lo)],Pi.prototype,"cellTemplate",void 0),ue([(0,e.aQ5)(oa,{static:!1}),me("design:type",oa)],Pi.prototype,"monthCellTemplate",void 0),ue([(0,e.aQ5)(Ba,{static:!1}),me("design:type",Ba)],Pi.prototype,"yearCellTemplate",void 0),ue([(0,e.aQ5)(Da,{static:!1}),me("design:type",Da)],Pi.prototype,"decadeCellTemplate",void 0),ue([(0,e.aQ5)(Ko,{static:!1}),me("design:type",Ko)],Pi.prototype,"centuryCellTemplate",void 0),ue([(0,e.aQ5)(fa,{static:!1}),me("design:type",fa)],Pi.prototype,"weekNumberTemplate",void 0),ue([(0,e.aQ5)(ss,{static:!1}),me("design:type",ss)],Pi.prototype,"headerTitleTemplate",void 0),ue([(0,e.i9L)("container",{read:e.s_b,static:!0}),me("design:type",e.s_b)],Pi.prototype,"container",void 0),ue([(0,e.i9L)("popupTemplate",{read:e.Rgc,static:!0}),me("design:type",e.Rgc)],Pi.prototype,"popupTemplate",void 0),Pi=M=ue([fn(6,(0,e.tBr)(Bc)),me("design:paramtypes",[un.qL,se.aJ,e.sBO,ga,e.R0b,e.SBq,Boolean,G.oQ,fl,e.Qsj])],Pi);let Hs=(()=>{let n=class{constructor(t){this.intl=t}getWeekNames(t=!1){const s=op(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return t?[""].concat(s):s}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(se.aJ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[se.aJ])],n),n})(),Pl=(()=>{let n=class{constructor(t,s,o,u,b,k){this.bus=t,this.intl=s,this.weekService=o,this.cdr=u,this.element=b,this.renderer=k,this.activeView=is.month,this.isActive=!0,this.min=new Date(Lt),this.max=new Date(Tn),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.activeDateChange=new e.vpe,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(t){this.showWeekNumbers=t}get getComponentMonthClass(){return this.activeView===is.month}get getComponentYearClass(){return this.activeView===is.year}get getComponentDecadeClass(){return this.activeView===is.decade}get getComponentCenturyClass(){return this.activeView===is.century}ngOnChanges(t){if(this.initService(),(0===this.weekNames.length||t.weekNumber)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),!this.service)return;this.views=this.views||2;const s=this.focusedDate,o=this.clampDate(this.service.viewDate(s,this.max,this.views));this.skip=this.service.skip(o,this.min),this.total=this.service.total(this.min,this.max);const u=Oc(t,"activeView"),b=this.views>0&&Oc(t,"views");(u||!this.isInDates(s)||b||!this.activeDate)&&(this.dates=this.service.datesList(o,this.getTake(this.skip)),this.activeDate=Wn(this.dates[0]),this.activeDateChange.emit(this.activeDate))}ngAfterViewInit(){1===this.views&&this.setTableMinWidth()}ngOnDestroy(){this.intlSubscription.unsubscribe()}initService(){this.service=this.bus.service(this.activeView)}isMonthView(){return this.activeView===is.month}getCaptionTitle(t){return this.service.title(t)}getCaptionClass(){return this.isMonthView()?"k-month-header":"k-meta-header"}animateView(t){const s=this.element.nativeElement,o=s.querySelector("table"),u=parseFloat(getComputedStyle(s).width),b=parseFloat(getComputedStyle(o).width);this.renderer.setStyle(s,"width",`${u}px`),this.renderer.setStyle(s,"overflow","visible"),t===D.NextView?this.nextAnimationDate=Wn(this.dates[0]):this.prevAnimationDate=Wn(this.dates[this.dates.length-1]),this.cdr.detectChanges(),s.querySelectorAll("table").forEach(yt=>{this.renderer.setStyle(yt,"width",`${b}px`),1===this.views&&this.renderer.setStyle(yt,"min-width",`${u}px`)});const k=o.getBoundingClientRect(),ae=parseFloat(getComputedStyle(s).columnGap),q=t===D.NextView?"translateX(0)":`translateX(-${k.width+ae}px)`,Se=t===D.NextView?`translateX(-${k.width+ae}px)`:"translateX(0)";this.animation?this.animation.cancel():(this.animation=s.animate([{transform:q},{transform:Se}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=()=>{this.renderer.removeStyle(s,"width"),this.renderer.removeStyle(s,"overflow"),s.querySelectorAll("table").forEach(yt=>{this.renderer.removeStyle(yt,"width")}),this.animation=null,this.nextAnimationDate=null,this.prevAnimationDate=null,this.cdr.detectChanges()})}navigate(t){this.animateNavigation&&(0,z.X_)()&&Mi(this.element.nativeElement.animate)&&this.animateView(t);const s=this.move(t),o=this.service.datesList(s,this.getTake(this.skip));return this.isListInRange(o)&&(this.dates=o),this.activeDate=Wn(this.dates[0]),this.focusedDate=Wn(s),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Wn(s)}canNavigate(t){return!!this.service&&this.isListInRange(this.service.datesList(this.move(t),this.getTake(this.skip)))}setTableMinWidth(){const t=this.element.nativeElement,s=t.querySelector("table");if(s){const o=parseFloat(getComputedStyle(t).width);this.renderer.setStyle(s,"min-width",`${o}px`)}}intlChange(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()}clampDate(t){return dc(t,this.min,this.max)}move(t){return this.service.move(this.dates[0]||this.focusedDate,t)}isListInRange(t){const s=this.service.beginningOfPeriod(this.min),o=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return s<=t[0]&&t[t.length-1]null,V0="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",wg={multi:!0,provide:zt.JU,useExisting:(0,e.Gpc)(()=>za)},Mf={multi:!0,provide:zt.Cf,useExisting:(0,e.Gpc)(()=>za)};let za=(()=>{let n=class{constructor(t,s,o,u,b,k,ae,q){this.bus=t,this.element=s,this.navigator=o,this.renderer=u,this.cdr=b,this.zone=k,this.disabledDatesService=ae,this.selectionService=q,this.id=(0,z.M8)(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=is[is.month],this.bottomView=is[is.month],this.topView=is[is.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new e.vpe,this.navigate=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.valueChange=new e.vpe,this.cellUID=(0,z.M8)(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=D.PrevView,this.nextView=D.NextView,this.selectedDates=[],this._min=new Date(Lt),this._max=new Date(Tn),this._focusedDate=pl(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Bs,this.onControlTouched=Bs,this.onValidatorChange=Bs,this.minValidateFn=Bs,this.maxValidateFn=Bs,this.disabledDatesRangeValidateFn=Bs,this.subscriptions=new he.w0,this.setClasses(s.nativeElement)}set focusedDate(t){this._focusedDate=t||pl()}get focusedDate(){return this._focusedDate}set min(t){this._min=t||new Date(Lt)}get min(){return this._min}set max(t){this._max=t||new Date(Tn)}get max(){return this._max}get value(){return this._value}set value(t){this.verifyValue(t),this._value=Array.isArray(t)?t.filter(o=>Mi(o)).map(o=>Wn(o)):Wn(t);const s=[].concat(t).filter(o=>Mi(o)).map(o=>Wn(o));if(!cp(s,this.selectedDates)){const o=sd(s);this.rangePivot=Wn(o),this.focusedDate=Wn(o)||this.focusedDate,this.selectedDates=s}}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set disabledDates(t){this.disabledDatesService.initialize(t)}set selectionRange(t){this._selectionRange=t,this.disabledDatesRangeValidation&&this.onValidatorChange()}get selectionRange(){return this._selectionRange}set cellTemplateRef(t){this.cellTemplate=t}set monthCellTemplateRef(t){this.monthCellTemplate=t}set yearCellTemplateRef(t){this.yearCellTemplate=t}set decadeCellTemplateRef(t){this.decadeCellTemplate=t}set centuryCellTemplateRef(t){this.centuryCellTemplate=t}set weekNumberTemplateRef(t){this.weekNumberTemplate=t}set headerTitleTemplateRef(t){this.headerTitleTemplate=t}get activeViewEnum(){const t=is[this.activeView];return t{this.activeView=is[t],this.activeViewChange.emit(this.activeView),this.cdr.detectChanges(),this.updateButtonState()}))}ngOnChanges(t){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),uf(t,"focusedDate")&&(this.focusedDate=dc(t.focusedDate.currentValue,this.min,this.max)),(t.min||t.max||t.rangeValidation||t.disabledDates||t.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?Nd(this.min):Bs,this.maxValidateFn=this.rangeValidation?Ih(this.max):Bs,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?(n=>Mi(n)?i=>{if(!(Mi(i)&&Mi(i.start)&&Mi(i.end))||i.start>i.end)return null;const s=((n,i,t)=>{if(!(n&&i&&t)||n>i)return[];const s=[];let o=n;for(;o<=i;)t(o)&&s.push(o),o=_s(o,1);return s})(i.start,i.end,n);return s.length?{disabledDatesInRange:s}:null}:fu)(this.disabledDatesService.isDateDisabled):Bs,this.onValidatorChange()),(t.min||t.max||t.focusedDate||t.activeView)&&this.updateButtonState()}ngOnDestroy(){this.subscriptions.unsubscribe()}ngAfterViewInit(){this.updateButtonState()}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}handleDateChange(t){const s=this.bus.canMoveDown(this.activeViewEnum),o=t.selectedDates.filter(b=>!this.disabledDatesService.isDateDisabled(b));this.focusedDate=t.focusedDate||this.focusedDate;const u=!s&&cp(o,this.selectedDates);if(!this.disabled&&!u){if(s)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=o.map(b=>Wn(b)),this.value=this.parseSelectionToValue(o),this.onControlChange(this.parseSelectionToValue(o)),this.valueChange.emit(this.parseSelectionToValue(o)))}}handleTodayButtonClick(t){const s=t.focusedDate,o=this.bus.service(this.activeViewEnum).isInArray(s,this.viewList.dates),u=!this.bus.canMoveDown(this.activeViewEnum);!o&&u&&this.emitNavigate(s),this.handleDateChange(t)}setActiveDate(t){this.activeDate=Wn(t),this.cdr.detectChanges()}writeValue(t){this.verifyValue(t),this.value=t,this.cdr.markForCheck()}registerOnChange(t){this.onControlChange=t}registerOnTouched(t){this.onControlTouched=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}validate(t){return this.minValidateFn(t)||this.maxValidateFn(t)||this.disabledDatesRangeValidateFn(this.selectionRange)}registerOnValidatorChange(t){this.onValidatorChange=t}activeCellTemplate(){switch(this.activeViewEnum){case is.month:return this.monthCellTemplate||this.cellTemplate;case is.year:return this.yearCellTemplate;case is.decade:return this.decadeCellTemplate;case is.century:return this.centuryCellTemplate;default:return null}}navigateView(t){this.focusedDate=this.viewList.navigate(t),this.updateButtonState(),this.emitNavigate(this.focusedDate)}emitNavigate(t){this.navigate.emit({activeView:is[this.activeViewEnum],focusedDate:t})}emitCellEvent(t,s){(0,z.g$)(t)&&this.zone.run(()=>{t.emit(s)})}handleCellClick({date:t,modifiers:s}){this.performSelection(t,s),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}handleWeekNumberClick(t){"single"!==this.selection&&this.zone.run(()=>{this.handleDateChange({selectedDates:t,focusedDate:sd(t)})})}setClasses(t){this.renderer.addClass(t,"k-widget"),this.renderer.addClass(t,"k-calendar"),this.renderer.addClass(t,"k-calendar-range")}verifyChanges(){if((0,e.X6Q)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(t){if((0,e.X6Q)()){if("single"===this.selection&&t&&!(t instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${V0} for possible resolution.`);if("multiple"===this.selection&&t&&Array.isArray(t)&&!t.every(o=>o instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${V0} for possible resolution.`)}}updateButtonState(){this.resolvedPromise.then(()=>{this.isPrevDisabled=!this.viewList.canNavigate(this.prevView),this.isNextDisabled=!this.viewList.canNavigate(this.nextView),this.cdr.markForCheck()})}parseSelectionToValue(t){return t=t||[],"single"===this.selection?Wn(sd(t)):t.map(s=>Wn(s))}performSelection(t,s){const o=this.selectionService.performSelection({date:t,modifiers:s,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=o.rangePivot,this.handleDateChange({selectedDates:o.selectedDates,focusedDate:t})}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(qo),e.Y36(e.SBq),e.Y36(ad),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(fl),e.Y36(Lc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(t,s,o){if(1&t&&(e.Suo(o,Lo,7),e.Suo(o,oa,7),e.Suo(o,Ba,7),e.Suo(o,Da,7),e.Suo(o,Ko,7),e.Suo(o,fa,7),e.Suo(o,ss,7)),2&t){let u;e.iGM(u=e.CRH())&&(s.cellTemplate=u.first),e.iGM(u=e.CRH())&&(s.monthCellTemplate=u.first),e.iGM(u=e.CRH())&&(s.yearCellTemplate=u.first),e.iGM(u=e.CRH())&&(s.decadeCellTemplate=u.first),e.iGM(u=e.CRH())&&(s.centuryCellTemplate=u.first),e.iGM(u=e.CRH())&&(s.weekNumberTemplate=u.first),e.iGM(u=e.CRH())&&(s.headerTitleTemplate=u.first)}},viewQuery:function(t,s){if(1&t&&e.Gf(Pl,5),2&t){let o;e.iGM(o=e.CRH())&&(s.viewList=o.first)}},hostVars:7,hostBindings:function(t,s){1&t&&e.NdJ("blur",function(){return s.handleBlur()})("focus",function(){return s.handleFocus()})("mouseenter",function(){return s.handleMouseEnter()})("mouseleave",function(){return s.handleMouseLeave()})("mousedown",function(u){return s.handleMousedown(u)})("click",function(){return s.handleClick()})("keydown",function(u){return s.keydown(u)}),2&t&&(e.uIk("id",s.widgetId)("role",s.widgetRole)("tabindex",s.calendarTabIndex)("aria-disabled",s.ariaDisabled)("aria-activedescendant",s.ariaActivedescendant),e.ekj("k-state-disabled",s.ariaDisabled))},inputs:{id:"id",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",disabled:"disabled",tabindex:"tabindex",isActive:"isActive",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",views:"views",focusedDate:"focusedDate",min:"min",max:"max",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",selectionRange:"selectionRange",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],activeRangeEnd:"activeRangeEnd"},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange"},exportAs:["kendo-multiviewcalendar"],features:[e._Bn([qo,wg,Mf,G.oQ,fl,{provide:G.mM,useValue:"kendo.multiviewcalendar"},ad,Lc]),e.TTD],decls:3,vars:24,consts:function(){let i,t,s;return i=$localize`:kendo.multiviewcalendar.today|The label for the today button in the calendar header␟c237cef31a55d762ecfdcac701d283313f30bbfc␟7780927771207785084:Today`,t=$localize`:kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar␟e783e2af4828224b846fa92148ea1cc52b21bb13␟9101635325676663492:Navigate to previous view`,s=$localize`:kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar␟3e3a529a242f39d22f841c3bd8045ec75b696b7a␟3994336778698343633:Navigate to next view`,[["kendoMultiViewCalendarLocalizedMessages","","today",i,"prevButtonTitle",t,"nextButtonTitle",s],[3,"activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"activeView","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","valueChange","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]]},template:function(t,s){if(1&t&&(e.GkF(0,0),e.TgZ(1,"kendo-calendar-header",1),e.NdJ("todayButtonClick",function(u){return s.handleTodayButtonClick({selectedDates:[u],focusedDate:u})})("prevButtonClick",function(){return s.navigateView(s.prevView)})("nextButtonClick",function(){return s.navigateView(s.nextView)}),e.qZA(),e.TgZ(2,"kendo-calendar-horizontal",2),e.NdJ("valueChange",function(u){return s.handleDateChange(u)})("cellClick",function(u){return s.handleCellClick(u)})("weekNumberCellClick",function(u){return s.handleWeekNumberClick(u)})("cellEnter",function(u){return s.emitCellEvent(s.cellEnter,u)})("cellLeave",function(u){return s.emitCellEvent(s.cellLeave,u)})("activeDateChange",function(u){return s.setActiveDate(u)}),e.qZA()),2&t){let o;e.xp6(1),e.Q6J("activeView",s.activeViewEnum)("currentDate",s.activeDate)("min",s.min)("max",s.max)("rangeLength",s.views)("templateRef",null==s.headerTitleTemplate?null:s.headerTitleTemplate.templateRef)("isPrevDisabled",s.isPrevDisabled)("isNextDisabled",s.isNextDisabled)("showNavigationButtons",!0),e.xp6(1),e.Q6J("activeView",s.activeViewEnum)("isActive",s.isActive||s.isHovered)("cellTemplateRef",null==(o=s.activeCellTemplate())?null:o.templateRef)("weekNumberTemplateRef",null==s.weekNumberTemplate?null:s.weekNumberTemplate.templateRef)("cellUID",s.cellUID)("views",s.views)("min",s.min)("max",s.max)("focusedDate",s.focusedDate)("animateNavigation",s.animateNavigation)("showViewHeader",s.showViewHeader)("weekNumber",s.weekNumber)("activeRangeEnd",s.activeRangeEnd)("selectionRange",s.selectionRange)("selectedDates",s.selectedDates)}},directives:function(){return[Ph,v1,Pl]},encapsulation:2,changeDetection:0}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"id",void 0),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],n.prototype,"focusedDate",null),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],n.prototype,"min",null),ue([(0,e.IIB)(),me("design:type",Date),me("design:paramtypes",[Date])],n.prototype,"max",null),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"rangeValidation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"disabledDatesRangeValidation",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"selection",void 0),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],n.prototype,"value",null),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"disabled",void 0),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"tabindex",void 0),ue([(0,e.IIB)(),me("design:type",Number),me("design:paramtypes",[Number])],n.prototype,"tabIndex",null),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"isActive",void 0),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],n.prototype,"disabledDates",null),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"activeView",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"bottomView",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"topView",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"showViewHeader",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"animateNavigation",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"weekNumber",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"activeRangeEnd",void 0),ue([(0,e.IIB)(),me("design:type",Object),me("design:paramtypes",[Object])],n.prototype,"selectionRange",null),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"views",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"activeViewChange",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"navigate",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"cellEnter",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"cellLeave",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"valueChange",void 0),ue([(0,e.aQ5)(Lo,{static:!0}),me("design:type",Lo)],n.prototype,"cellTemplate",void 0),ue([(0,e.IIB)("cellTemplate"),me("design:type",Lo),me("design:paramtypes",[Lo])],n.prototype,"cellTemplateRef",null),ue([(0,e.aQ5)(oa,{static:!0}),me("design:type",oa)],n.prototype,"monthCellTemplate",void 0),ue([(0,e.IIB)("monthCellTemplate"),me("design:type",oa),me("design:paramtypes",[oa])],n.prototype,"monthCellTemplateRef",null),ue([(0,e.aQ5)(Ba,{static:!0}),me("design:type",Ba)],n.prototype,"yearCellTemplate",void 0),ue([(0,e.IIB)("yearCellTemplate"),me("design:type",Ba),me("design:paramtypes",[Ba])],n.prototype,"yearCellTemplateRef",null),ue([(0,e.aQ5)(Da,{static:!0}),me("design:type",Da)],n.prototype,"decadeCellTemplate",void 0),ue([(0,e.IIB)("decadeCellTemplate"),me("design:type",Da),me("design:paramtypes",[Da])],n.prototype,"decadeCellTemplateRef",null),ue([(0,e.aQ5)(Ko,{static:!0}),me("design:type",Ko)],n.prototype,"centuryCellTemplate",void 0),ue([(0,e.IIB)("centuryCellTemplate"),me("design:type",Ko),me("design:paramtypes",[Ko])],n.prototype,"centuryCellTemplateRef",null),ue([(0,e.aQ5)(fa,{static:!0}),me("design:type",fa)],n.prototype,"weekNumberTemplate",void 0),ue([(0,e.IIB)("weekNumberTemplate"),me("design:type",fa),me("design:paramtypes",[fa])],n.prototype,"weekNumberTemplateRef",null),ue([(0,e.aQ5)(ss,{static:!0}),me("design:type",ss)],n.prototype,"headerTitleTemplate",void 0),ue([(0,e.IIB)("headerTitleTemplate"),me("design:type",ss),me("design:paramtypes",[ss])],n.prototype,"headerTitleTemplateRef",null),ue([(0,e.i9L)(Pl,{static:!1}),me("design:type",Pl)],n.prototype,"viewList",void 0),ue([(0,e.pfw)("attr.id"),me("design:type",String),me("design:paramtypes",[])],n.prototype,"widgetId",null),ue([(0,e.pfw)("attr.role"),me("design:type",String),me("design:paramtypes",[])],n.prototype,"widgetRole",null),ue([(0,e.pfw)("attr.tabindex"),me("design:type",Number),me("design:paramtypes",[])],n.prototype,"calendarTabIndex",null),ue([(0,e.pfw)("attr.aria-disabled"),(0,e.pfw)("class.k-state-disabled"),me("design:type",Boolean),me("design:paramtypes",[])],n.prototype,"ariaDisabled",null),ue([(0,e.pfw)("attr.aria-activedescendant"),me("design:type",String),me("design:paramtypes",[])],n.prototype,"ariaActivedescendant",null),ue([(0,e.L6J)("blur"),me("design:type",Function),me("design:paramtypes",[]),me("design:returntype",void 0)],n.prototype,"handleBlur",null),ue([(0,e.L6J)("focus"),me("design:type",Function),me("design:paramtypes",[]),me("design:returntype",void 0)],n.prototype,"handleFocus",null),ue([(0,e.L6J)("mouseenter"),me("design:type",Function),me("design:paramtypes",[]),me("design:returntype",void 0)],n.prototype,"handleMouseEnter",null),ue([(0,e.L6J)("mouseleave"),me("design:type",Function),me("design:paramtypes",[]),me("design:returntype",void 0)],n.prototype,"handleMouseLeave",null),ue([(0,e.L6J)("mousedown",["$event"]),me("design:type",Function),me("design:paramtypes",[Object]),me("design:returntype",void 0)],n.prototype,"handleMousedown",null),ue([(0,e.L6J)("click"),me("design:type",Function),me("design:paramtypes",[]),me("design:returntype",void 0)],n.prototype,"handleClick",null),ue([(0,e.L6J)("keydown",["$event"]),me("design:type",Function),me("design:paramtypes",[Object]),me("design:returntype",void 0)],n.prototype,"keydown",null),n=ue([me("design:paramtypes",[qo,e.SBq,ad,e.Qsj,e.sBO,e.R0b,fl,Lc])],n),n})();class Tf{constructor(i,t,s,o){this.$implicit=i,this.kForOf=t,this.index=s,this.count=o}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 Rh=(()=>{let n=class{constructor(t,s,o){this._viewContainer=t,this._template=s,this._differs=o,this._differ=null}set kForTemplate(t){t&&(this._template=t)}ngOnChanges(t){if("kForOf"in t){const s=t.kForOf.currentValue;if(this._differ||!s)return;try{this._differ=this._differs.find(s).create(this.kForTrackBy)}catch(o){throw new Error(`Cannot find a differ supporting object '${s}' of type '${function(n){return n.name||typeof n}(s)}'.`)}}}ngDoCheck(){if(this._differ){const t=this._differ.diff(this.kForOf);t&&this._applyChanges(t)}}_applyChanges(t){if(!(0,z.X_)())return;const s=this._viewContainer.length,o=this.kForOf.length,u={};t.forEachOperation((b,k,ae)=>{null!==ae&&(u[ae]=b.item)});for(let b=s;bo;b--)this._viewContainer.remove(b-1);for(let b=0;b{let n=class{constructor(t,s,o,u,b){this.bus=t,this.cdr=s,this.localization=o,this.intl=u,this.disabledDatesService=b,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(Lt),this.max=new Date(Tn),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new e.vpe,this.prevButtonClick=new e.vpe,this.nextButtonClick=new e.vpe,this.getComponentClass=!0,this.subscriptions=new he.w0}ngOnInit(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))}ngOnChanges(t){!this.bus.service(this.activeView)||(this.activeViewValue=is[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())}ngOnDestroy(){this.subscriptions.unsubscribe()}handleTodayClick(){!this.todayAvailable||(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(dc(pl(),this.min,this.max)))}handleNavigation(){!this.navigate||this.bus.moveUp(this.activeView)}intlChange(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())}l10nChange(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()}getTitle(){if(!this.currentDate)return"";const t=this.bus.service(this.activeView),s=this.rangeLength-1,o=t.title(this.currentDate),u=t.addToDate(this.currentDate,s);return s<1||!t.isInRange(u,this.min,this.max)?o:`${o} - ${t.title(u)}`}setTodayAvailability(){const t=pl(),s=Ac(t,Vi(this.min),Vi(this.max)),o=this.disabledDatesService.isDateDisabled(t);this.todayAvailable=s&&!o,this.cdr.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(qo),e.Y36(e.sBO),e.Y36(G.oQ),e.Y36(se.aJ),e.Y36(fl))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-calendar-header"]],hostVars:4,hostBindings:function(t,s){2&t&&e.ekj("k-calendar-header",s.getComponentClass)("k-hstack",s.getComponentClass)},inputs:{min:"min",max:"max",rangeLength:"rangeLength",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",activeView:"activeView",currentDate:"currentDate",templateRef:"templateRef"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},features:[e.TTD],decls:9,vars:23,consts:[[1,"k-button","k-flat","k-title","k-calendar-title",3,"kendoEventsOutsideAngular","scope"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-spacer"],[1,"k-calendar-nav","k-hstack"],["class","k-button k-flat k-icon-button k-prev-view","type","button",3,"disabled","title","click",4,"ngIf"],[1,"k-today","k-nav-today",3,"kendoEventsOutsideAngular","scope"],["class","k-button k-flat k-icon-button k-next-view","type","button",3,"disabled","title","click",4,"ngIf"],["type","button",1,"k-button","k-flat","k-icon-button","k-prev-view",3,"disabled","title","click"],[1,"k-icon","k-i-arrow-60-left"],["type","button",1,"k-button","k-flat","k-icon-button","k-next-view",3,"disabled","title","click"],[1,"k-icon","k-i-arrow-60-right"]],template:function(t,s){1&t&&(e.TgZ(0,"span",0),e.YNc(1,uh,1,1,"ng-template",1),e.YNc(2,Ru,0,0,"ng-template",2),e.qZA(),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.YNc(5,Ma,2,3,"button",5),e.TgZ(6,"span",6),e._uU(7),e.qZA(),e.YNc(8,Tc,2,3,"button",7),e.qZA()),2&t&&(e.ekj("k-state-disabled",!s.navigate),e.Q6J("kendoEventsOutsideAngular",e.VKq(15,Eo,s.handleNavigation))("scope",s),e.xp6(1),e.Q6J("ngIf",!s.templateRef),e.xp6(1),e.Q6J("ngIf",s.templateRef)("ngTemplateOutlet",s.templateRef)("ngTemplateOutletContext",e.kEZ(17,Ir,s.title,s.activeViewValue,s.currentDate)),e.xp6(3),e.Q6J("ngIf",s.showNavigationButtons),e.xp6(1),e.ekj("k-state-disabled",!s.todayAvailable),e.Q6J("kendoEventsOutsideAngular",e.VKq(21,Eo,s.handleTodayClick))("scope",s),e.xp6(1),e.hij(" ",s.todayMessage," "),e.xp6(1),e.Q6J("ngIf",s.showNavigationButtons))},directives:[z.nV,Re.O5,Re.tP],encapsulation:2}),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"activeView",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"currentDate",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"min",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"max",void 0),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"rangeLength",void 0),ue([(0,e.IIB)(),me("design:type",e.Rgc)],n.prototype,"templateRef",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"isPrevDisabled",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"isNextDisabled",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"showNavigationButtons",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"todayButtonClick",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"prevButtonClick",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"nextButtonClick",void 0),ue([(0,e.pfw)("class.k-calendar-header"),(0,e.pfw)("class.k-hstack"),me("design:type",Boolean)],n.prototype,"getComponentClass",void 0),n=ue([me("design:paramtypes",[qo,e.sBO,G.oQ,se.aJ,fl])],n),n})(),kf=(()=>{let n=class{constructor(t,s,o,u,b,k,ae){this.bus=t,this.intl=s,this.cdr=o,this.element=u,this.zone=b,this.renderer=k,this.disabledDatesService=ae,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.colSpan=0,this.subscriptions=new he.w0,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}get weekNumber(){return this.showWeekNumbers&&this.activeView===is.month}set weekNumber(t){this.showWeekNumbers=t}ngOnInit(){this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(t){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),t.activeView&&(this.currentCellIndex=null))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domEvents.forEach(t=>t())}isHorizontal(){return"horizontal"===this.direction}isMonthView(){return this.activeView===is.month}shouldRenderCellContent(t){return Mi(t)&&!(!this.isHorizontal()&&t.isOtherMonth)}firstDate(t){const s=this.firstWeekDateContext(t);return s?s.value:null}getWeekNumber(t){return this.weekNumber?ve(t,this.intl.firstDay()):null}getWeekNumberContext(t){const s=this.firstWeekDateContext(t);if(!this.weekNumber||!s)return null;const o=ve(s.value,this.intl.firstDay()).toString();return{formattedValue:o,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:o,value:Wn(s.value)}}getStyles(t){const{isRangeEnd:s,isRangeStart:o}=t;return(n=>Object.keys(n).reduce((t,s)=>n[s]?t.concat(s):t,[]).join(" "))({"k-range-end":!t.isOtherMonth&&s,"k-range-mid":!t.isOtherMonth&&t.isRangeMid,"k-range-split-end":!t.isOtherMonth&&t.isRangeSplitEnd,"k-range-split-start":!t.isOtherMonth&&t.isRangeSplitStart,"k-range-start":!t.isOtherMonth&&o,"k-state-active":"start"===this.activeRangeEnd&&o||"end"===this.activeRangeEnd&&s,"k-state-focused":!t.isOtherMonth&&this.isActive&&t.isFocused,"k-state-selected":!t.isOtherMonth&&(t.isSelected||o||s),"k-today":!t.isOtherMonth&&t.isToday,"k-weekend":t.isWeekend,"k-state-disabled":t.isDisabled,"k-other-month":t.isOtherMonth})}tableCellIndex(t,s){return`${t}:${s}`}handleWeekNumberClick(t){const s=t.map(o=>o.value).filter(o=>!this.disabledDatesService.isDateDisabled(o));this.weekNumberCellClick.emit(s)}firstWeekDateContext(t){if(!this.weekNumber)return null;let s=0,o=this.shouldRenderCellContent(t[s])?t[s]:null;for(;!o&&ss.hasAttribute("data-cell-index"),this.element.nativeElement)}emitCellLeave(){const t=this.cellByIndex(this.currentCellIndex);t&&this.cellLeave.emit(t.value),this.currentCellIndex=null}cellByIndex(t){const[s,o]=t.split(":");return this.data[s][o]}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(qo),e.Y36(se.aJ),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(fl))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","kendoCalendarView",""]],inputs:{direction:"direction",isActive:"isActive",selectedDates:"selectedDates",weekNumber:"weekNumber",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave"},features:[e.TTD],attrs:ed,decls:4,vars:2,consts:[["emptyCell",""],["class","k-calendar-tr","role","row",4,"ngIf"],["class","k-calendar-tr","role","row",4,"kFor","kForOf"],[1,"k-empty","k-calendar-td"],["role","row",1,"k-calendar-tr"],["scope","col",1,"k-calendar-caption",3,"colSpan"],[3,"ngIf"],[4,"kFor","kForOf"],["class","k-alt k-calendar-td",3,"kendoEventsOutsideAngular",4,"ngIf","ngIfElse"],[1,"k-alt","k-calendar-td",3,"kendoEventsOutsideAngular"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["class","k-calendar-td","role","gridcell",3,"ngClass","title",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-calendar-td",3,"ngClass","title"],[1,"k-link"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,s){1&t&&(e.YNc(0,Kh,2,0,"ng-template",null,0,e.W1O),e.YNc(2,hh,3,2,"tr",1),e.YNc(3,Td,3,2,"tr",2)),2&t&&(e.xp6(2),e.Q6J("ngIf",!s.isHorizontal()),e.xp6(1),e.Q6J("kForOf",s.data))},directives:[Re.O5,Rh,z.nV,Re.tP,Re.mk],encapsulation:2}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"direction",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"isActive",void 0),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"activeView",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"cellUID",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"focusedDate",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"viewDate",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"activeRangeEnd",void 0),ue([(0,e.IIB)(),me("design:type",Object)],n.prototype,"selectionRange",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"min",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"max",void 0),ue([(0,e.IIB)(),me("design:type",Array)],n.prototype,"selectedDates",void 0),ue([(0,e.IIB)(),me("design:type",Boolean),me("design:paramtypes",[Boolean])],n.prototype,"weekNumber",null),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"viewIndex",void 0),ue([(0,e.IIB)(),me("design:type",e.Rgc)],n.prototype,"templateRef",void 0),ue([(0,e.IIB)(),me("design:type",e.Rgc)],n.prototype,"weekNumberTemplateRef",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"cellClick",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"weekNumberCellClick",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"cellEnter",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"cellLeave",void 0),n=ue([me("design:paramtypes",[qo,se.aJ,e.sBO,e.SBq,e.R0b,e.Qsj,fl])],n),n})(),U0=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez,z.OY]]}),n})(),zu=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n})(),Af=(()=>{class n extends G.Z1{}return n.\u0275fac=function(){let i;return function(s){return(i||(i=e.n5z(n)))(s||n)}}(),n.\u0275dir=e.lG2({type:n,inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[e.qOj]}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"today",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"prevButtonTitle",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"nextButtonTitle",void 0),n})();var $0;let Ph=$0=class extends Af{constructor(i){super(),this.service=i}};var Of;Ph.\u0275fac=function(i){return new(i||Ph)(e.Y36(G.oQ))},Ph.\u0275dir=e.lG2({type:Ph,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[e._Bn([{provide:Af,useExisting:(0,e.Gpc)(()=>$0)}]),e.qOj]}),Ph=$0=ue([me("design:paramtypes",[G.oQ])],Ph);let wp=Of=class extends Af{constructor(i){super(),this.service=i}get override(){return!0}};wp.\u0275fac=function(i){return new(i||wp)(e.Y36(G.oQ))},wp.\u0275cmp=e.Xpm({type:wp,selectors:[["kendo-multiviewcalendar-messages"]],features:[e._Bn([{provide:Af,useExisting:(0,e.Gpc)(()=>Of)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),wp=Of=ue([me("design:paramtypes",[G.oQ])],wp);let Ff=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[ad,Ed,Ia,wh,Pu,Hs],imports:[[Re.ez,U0,se.o0,zu,un.Zj],U0,zu]}),n})(),Y0=(()=>{class n extends G.Z1{}return n.\u0275fac=function(){let i;return function(s){return(i||(i=e.n5z(n)))(s||n)}}(),n.\u0275dir=e.lG2({type:n,inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[e.qOj]}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"today",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"prevButtonTitle",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"nextButtonTitle",void 0),n})();var Rf;let Hu=Rf=class extends Y0{constructor(i){super(),this.service=i}};var Q0;Hu.\u0275fac=function(i){return new(i||Hu)(e.Y36(G.oQ))},Hu.\u0275dir=e.lG2({type:Hu,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[e._Bn([{provide:Y0,useExisting:(0,e.Gpc)(()=>Rf)}]),e.qOj]}),Hu=Rf=ue([me("design:paramtypes",[G.oQ])],Hu);let Hd=Q0=class extends Y0{constructor(i){super(),this.service=i}get override(){return!0}};Hd.\u0275fac=function(i){return new(i||Hd)(e.Y36(G.oQ))},Hd.\u0275cmp=e.Xpm({type:Hd,selectors:[["kendo-calendar-messages"]],features:[e._Bn([{provide:Y0,useExisting:(0,e.Gpc)(()=>Q0)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),Hd=Q0=ue([me("design:paramtypes",[G.oQ])],Hd);let W0=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez]]}),n})(),Pf=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[zs,Ed,Ia,wh,Pu,Hs],imports:[[Re.ez,U0,Ff,se.o0,zu,W0,z.OY,z.uv],U0,zu]}),n})(),Lf=(()=>{class n extends G.Z1{}return n.\u0275fac=function(){let i;return function(s){return(i||(i=e.n5z(n)))(s||n)}}(),n.\u0275dir=e.lG2({type:n,inputs:{decrement:"decrement",increment:"increment"},features:[e.qOj]}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"decrement",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"increment",void 0),n})();var Z0;let Lh=Z0=class extends Lf{constructor(i){super(),this.service=i}};var Bf;Lh.\u0275fac=function(i){return new(i||Lh)(e.Y36(G.oQ))},Lh.\u0275dir=e.lG2({type:Lh,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[e._Bn([{provide:Lf,useExisting:(0,e.Gpc)(()=>Z0)}]),e.qOj]}),Lh=Z0=ue([me("design:paramtypes",[G.oQ])],Lh);let xp=Bf=class extends Lf{constructor(i){super(),this.service=i}get override(){return!0}};xp.\u0275fac=function(i){return new(i||xp)(e.Y36(G.oQ))},xp.\u0275cmp=e.Xpm({type:xp,selectors:[["kendo-dateinput-messages"]],features:[e._Bn([{provide:Lf,useExisting:(0,e.Gpc)(()=>Bf)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),xp=Bf=ue([me("design:paramtypes",[G.oQ])],xp);let Bh=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez,se.o0,z.OY]]}),n})(),Nc=(()=>{class n extends G.Z1{}return n.\u0275fac=function(){let i;return function(s){return(i||(i=e.n5z(n)))(s||n)}}(),n.\u0275dir=e.lG2({type:n,inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[e.qOj]}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"today",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"toggle",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"prevButtonTitle",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"nextButtonTitle",void 0),n})();var Mp;let Vu=Mp=class extends Nc{constructor(i){super(),this.service=i}};var _1;Vu.\u0275fac=function(i){return new(i||Vu)(e.Y36(G.oQ))},Vu.\u0275dir=e.lG2({type:Vu,selectors:[["","kendoDatePickerLocalizedMessages",""]],features:[e._Bn([{provide:Nc,useExisting:(0,e.Gpc)(()=>Mp)}]),e.qOj]}),Vu=Mp=ue([me("design:paramtypes",[G.oQ])],Vu);let ud=_1=class extends Nc{constructor(i){super(),this.service=i}get override(){return!0}};ud.\u0275fac=function(i){return new(i||ud)(e.Y36(G.oQ))},ud.\u0275cmp=e.Xpm({type:ud,selectors:[["kendo-datepicker-messages"]],features:[e._Bn([{provide:Nc,useExisting:(0,e.Gpc)(()=>_1)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),ud=_1=ue([me("design:paramtypes",[G.oQ])],ud);const J0=ti.Pt;let gu=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:Bc,useValue:J0}],imports:[[Re.ez,Bh,Pf,se.o0,un.Zj,zu,z.OY],zu]}),n})();const Nf=wl("div"),zf=wl("ul"),Y6=wl("li"),Ip=(0,z.X_)()?Nf([Nf([Nf([zf([Y6("02","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null;let Nh=(()=>{let n=class{ensureHeights(){void 0===this.timeListHeight&&this.calculateHeights()}calculateHeights(t){if(!(0,z.X_)())return;const o=t&&t.querySelector(".k-time-list-container")||document.body,u=o.appendChild(Ip);this.timeListHeight=u.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=u.querySelector("li").getBoundingClientRect().height,o.removeChild(u)}isActive(t){return!(!(0,z.X_)()||!t)&&(t.nativeElement||t)===document.activeElement}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})();const zh=i=>i%24,q0=(n,i)=>zh(24+n-i),X0=n=>(i,t)=>t&&Vi(i).getTime()!==Vi(t).getTime()?tp(i,n):i,e2=X0(0),t2=X0(23);let n2=(()=>{let n=class{constructor(t){this.intl=t,this.boundRange=!1,this.insertUndividedMax=!1}apply(t,s){return tp(t,s.getHours())}configure(t){const{boundRange:s=this.boundRange,insertUndividedMax:o=this.insertUndividedMax,min:u=this.min,max:b=this.max,part:k,step:ae=this.step}=t;this.boundRange=s,this.insertUndividedMax=o,this.toListItem=q=>{const Se=tp(lt,q);return{text:this.intl.formatDate(Se,k.pattern),value:Se}},this.min=u,this.max=b,this.step=ae}data(t){const[s]=this.range(t),o=((n,i)=>t=>zh(n+t*i))(s,this.step),b=Ya(0,this.countFromMin(t)).map(k=>this.toListItem(o(k)));return this.addLast(b),this.addMissing(b,t),b}isRangeChanged(t,s){return!sr(this.min,t)||!sr(this.max,s)}limitRange(t,s,o){return this.boundRange?[e2(t,o),t2(s,o)]:[t,s]}total(t){const s=this.insertUndividedMax&&this.isLastMissing(t)?1:0,o=this.isMissing(t)?1:0;return this.countFromMin(t)+o+s}selectedIndex(t){return Math.ceil(this.divideByStep(t))}valueInList(t){return!t||this.insertUndividedMax&&this.lastHour(t)===t.getHours()||!this.isMissing(t)}addLast(t,s){return this.insertUndividedMax&&this.isLastMissing(s)&&t.push(this.toListItem(this.lastHour(s))),t}addMissing(t,s){if(this.valueInList(s))return t;const o=this.toListItem(s.getHours());return t.splice(this.selectedIndex(s),0,o),t}countFromMin(t){const[s,o]=this.range(t);return Math.floor(q0(o,s)/this.step)+1}isMissing(t){return!!t&&this.selectedIndex(t)!==this.divideByStep(t)}isLastMissing(t){return this.isMissing(tp(this.max,this.lastHour(t)))}divideByStep(t){return q0(t.getHours(),this.min.getHours())/this.step}lastHour(t){return this.range(t)[1]}range(t){const[s,o]=this.limitRange(this.min,this.max,t);return[s.getHours(),o.getHours()]}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(se.aJ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[se.aJ])],n),n})();const s2=i=>i%60,r2=(n,i)=>s2(60+n-i),o2=n=>(i,t)=>t&&i.getHours()!==t.getHours()?np(i,n):i,y1=o2(0),Uu=o2(59);let a2=(()=>{let n=class{constructor(t){this.intl=t,this.insertUndividedMax=!1}apply(t,s){return np(t,s.getMinutes())}configure(t){const{insertUndividedMax:s=this.insertUndividedMax,min:o=this.min,max:u=this.max,part:b,step:k=this.step}=t;this.insertUndividedMax=s,this.toListItem=ae=>{const q=np(lt,ae);return{text:this.intl.formatDate(q,b.pattern),value:q}},this.min=o,this.max=u,this.step=k}data(t){const[s]=this.range(t),o=((n,i)=>t=>s2(n+t*i))(s,this.step),b=Ya(0,this.countFromMin(t)).map(k=>this.toListItem(o(k)));return this.addLast(b),this.addMissing(b,t),b}isRangeChanged(t,s){return!sr(this.min,t)||!sr(this.max,s)}limitRange(t,s,o){return[y1(t,o),Uu(s,o)]}total(t){const s=this.insertUndividedMax&&this.isLastMissing(t)?1:0,o=this.isMissing(t)?1:0;return this.countFromMin(t)+o+s}selectedIndex(t){return Math.ceil(this.divideByStep(t))}valueInList(t){return!t||this.insertUndividedMax&&this.lastMinute(t)===t.getMinutes()||!this.isMissing(t)}addLast(t,s){return this.insertUndividedMax&&this.isLastMissing(s)&&t.push(this.toListItem(this.lastMinute(s))),t}addMissing(t,s){if(this.valueInList(s))return t;const o=this.toListItem(s.getMinutes());return t.splice(this.selectedIndex(s),0,o),t}countFromMin(t){const[s,o]=this.range(t);return Math.floor(r2(o,s)/this.step)+1}isMissing(t){return!!t&&this.selectedIndex(t)!==this.divideByStep(t)}isLastMissing(t){return this.isMissing(np(this.max,this.lastMinute(t)))}divideByStep(t){return r2(t.getMinutes(),this.min.getMinutes())/this.step}lastMinute(t){return this.range(t)[1]}range(t){const[s,o]=this.limitRange(this.min,this.max,t);return[s.getMinutes(),o.getMinutes()]}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(se.aJ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[se.aJ])],n),n})();const Eg=i=>i%60,Z6=(n,i)=>Eg(60+n-i),l2=n=>(i,t)=>!t||i.getHours()===t.getHours()&&i.getMinutes()===t.getMinutes()?i:ip(i,n),c2=l2(0),J6=l2(59);let Ag=(()=>{let n=class{constructor(t){this.intl=t,this.insertUndividedMax=!1}apply(t,s){return ip(t,s.getSeconds())}configure(t){const{insertUndividedMax:s=this.insertUndividedMax,min:o=this.min,max:u=this.max,part:b,step:k=this.step}=t;this.insertUndividedMax=s,this.toListItem=ae=>{const q=ip(lt,ae);return{text:this.intl.formatDate(q,b.pattern),value:q}},this.min=o,this.max=u,this.step=k}data(t){const[s]=this.range(t),o=((n,i)=>t=>Eg(n+t*i))(s,this.step),b=Ya(0,this.countFromMin(t)).map(k=>this.toListItem(o(k)));return this.addLast(b),this.addMissing(b,t),b}isRangeChanged(t,s){return!sr(this.min,t)||!sr(this.max,s)}limitRange(t,s,o){return[c2(t,o),J6(s,o)]}total(t){const s=this.insertUndividedMax&&this.isLastMissing(t)?1:0,o=this.isMissing(t)?1:0;return this.countFromMin(t)+o+s}selectedIndex(t){return Math.ceil(this.divideByStep(t))}valueInList(t){return!t||this.insertUndividedMax&&this.lastSecond(t)===t.getSeconds()||!this.isMissing(t)}divideByStep(t){return Z6(t.getSeconds(),this.min.getSeconds())/this.step}addLast(t,s){return this.insertUndividedMax&&this.isLastMissing(s)&&t.push(this.toListItem(this.lastSecond(s))),t}addMissing(t,s){if(this.valueInList(s))return t;const o=this.toListItem(s.getSeconds());return t.splice(this.selectedIndex(s),0,o),t}countFromMin(t){const[s,o]=this.range(t);return Math.floor(Z6(o,s)/this.step)+1}isMissing(t){return!!t&&this.selectedIndex(t)!==this.divideByStep(t)}isLastMissing(t){return this.isMissing(ip(this.max,this.lastSecond(t)))}lastSecond(t){return this.range(t)[1]}range(t){const[s,o]=this.limitRange(this.min,this.max,t);return[s.getSeconds(),o.getSeconds()]}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(se.aJ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[se.aJ])],n),n})();const Tp=i=>i%1e3,Fg=(n,i)=>Tp(1e3+n-i),d2=n=>(i,t)=>!t||i.getHours()===t.getHours()&&i.getMinutes()===t.getMinutes()&&i.getSeconds()===t.getSeconds()?i:sp(i,n),q6=d2(0),Gf=d2(999);let u2=(()=>{let n=class{constructor(t){this.intl=t,this.insertUndividedMax=!1}apply(t,s){return sp(t,s.getMilliseconds())}configure(t){const{insertUndividedMax:s=this.insertUndividedMax,min:o=this.min,max:u=this.max,step:b=this.step}=t;this.insertUndividedMax=s,this.toListItem=k=>{const ae=sp(lt,k);return{text:this.intl.formatDate(ae,"SSS"),value:ae}},this.min=o,this.max=u,this.step=b}data(t){const[s]=this.range(t),o=((n,i)=>t=>Tp(n+t*i))(s,this.step),b=Ya(0,this.countFromMin(t)).map(k=>this.toListItem(o(k)));return this.addLast(b),this.addMissing(b,t),b}isRangeChanged(t,s){return!sr(this.min,t)||!sr(this.max,s)}limitRange(t,s,o){return[q6(t,o),Gf(s,o)]}total(t){const s=this.insertUndividedMax&&this.isLastMissing(t)?1:0,o=this.isMissing(t)?1:0;return this.countFromMin(t)+o+s}selectedIndex(t){return Math.ceil(this.divideByStep(t))}valueInList(t){return!t||this.insertUndividedMax&&this.lastMillisecond(t)===t.getMilliseconds()||!this.isMissing(t)}divideByStep(t){return Fg(t.getMilliseconds(),this.min.getMilliseconds())/this.step}addLast(t,s){return this.insertUndividedMax&&this.isLastMissing(s)&&t.push(this.toListItem(this.lastMillisecond(s))),t}addMissing(t,s){if(this.valueInList(s))return t;const o=this.toListItem(s.getMilliseconds());return t.splice(this.selectedIndex(s),0,o),t}countFromMin(t){const[s,o]=this.range(t);return Math.floor(Fg(o,s)/this.step)+1}isMissing(t){return!!t&&this.selectedIndex(t)!==this.divideByStep(t)}isLastMissing(t){return this.isMissing(sp(this.max,this.lastMillisecond(t)))}lastMillisecond(t){return this.range(t)[1]}range(t){const[s,o]=this.limitRange(this.min,this.max,t);return[s.getMilliseconds(),o.getMilliseconds()]}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(se.aJ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[se.aJ])],n),n})();const h2=(n,i)=>{const t=Wn(n);return t.setHours(i),t},C1=n=>null!==n&&n<12,X6=(n,i,t)=>!i&&!t||n>=i&&n<=t,Vd=(n,i,t)=>!i&&!t||n>=i||n<=t;let Uf=(()=>{let n=class{constructor(t){this.intl=t}apply(t,s){const o=t.getHours(),u=C1(o),b=C1(s.getHours());if(u&&b||!u&&!b)return t;const[k,ae=24]=this.normalizedRange();return h2(t,Math.min(Math.max(k,o+(b?-12:12)),ae||24))}configure(t){const{min:s=this.min,max:o=this.max,part:u=this.part}=t;this.min=s,this.max=o,this.part=u}data(t){const s=this.part.names;if(!s)return[];const o=[],[u,b]=this.normalizedRange(),k=this.intl.dateFormatNames(s);return C1(u)&&o.push({text:k.am,value:h2(this.min,u)}),(n=>null!==n&&(!n||n>11))(b)&&o.push({text:k.pm,value:h2(this.min,Math.max(12,b))}),this.min.getHours()!==u?o.reverse():o}isRangeChanged(t,s){return!1}limitRange(t,s,o){return[t,s]}total(){const[t,s]=this.normalizedRange();return(t||s)&&(t>11||s<12)?1:2}selectedIndex(t){if(!this.valueInList(t))return-1;const s=Math.floor(t.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?s:0===s?1:0}valueInList(t){return(this.min.getHours()!==this.normalizedRange()[0]?Vd:X6)(t.getHours(),this.min.getHours(),this.max.getHours())}normalizedRange(){const t=this.min.getHours(),s=this.max.getHours();return[Math.min(t,s),Math.max(t,s)]}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(se.aJ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=ue([me("design:paramtypes",[se.aJ])],n),n})();const e4=()=>null,p2={35:(n,i)=>n[n.length-1],36:(n,i)=>n[0],38:(n,i)=>n[i-1],40:(n,i)=>n[i+1]},Bg={dayperiod:Uf,hour:n2,minute:a2,second:Ag,millisecond:u2};let $f=(()=>{let n=class{constructor(t,s,o,u,b){this.element=t,this.injector=s,this.dom=o,this.renderer=u,this.zone=b,this.min=Wn(lt),this.max=Wn(ri),this.step=1,this.disabled=!1,this.valueChange=new e.vpe,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}get tabIndex(){return this.disabled?void 0:0}ngOnChanges(t){t.part&&(this.service=this.injector.get(Bg[this.part.type]),this.service.configure(this.serviceSettings()));const s=this.value,o=t.value||{},[u,b]=this.service.limitRange(this.min,this.max,s);(this.service.isRangeChanged(u,b)||t.min||t.max||t.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:u,max:b}))),(!this.data.length||this.hasMissingValue(o))&&(this.animateToIndex=!1,this.data=this.service.data(s)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(o),this.total=this.service.total(s),this.indexToScroll=this.selectedIndex(s)}ngOnInit(){this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;const t=`translateY(${this.topOffset}px)`;this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnDestroy(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(t=>t())}ngAfterViewInit(){this.scrollOnce(t=>this.virtualization.scrollToIndex(t))}ngAfterViewChecked(){this.scrollOnce(t=>{this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](t),this.animateToIndex=!0})}handleChange(t){const s=this.service.apply(this.value,t.value);this.value.getTime()!==s.getTime()&&(this.indexToScroll=this.data.indexOf(t),this.value=s,this.valueChange.emit(s))}handleItemClick(t){const s=fc(t.target,o=>o.hasAttribute("data-timelist-item-index"),this.element.nativeElement);if(s){const o=s.getAttribute("data-timelist-item-index");this.handleChange(this.data[o])}}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}itemOffset(t){const s=this.selectedIndex(this.value),o=this.virtualization.activeIndex(),u=this.virtualization.itemOffset(o),b=Math.abs(Math.ceil(t)-u);if(s===o&&b<2)return u;const k=s>o;return k&&b>=this.bottomThreshold||!k&&b>this.topThreshold?this.virtualization.itemOffset(o+1):u}hasMissingValue({previousValue:t,currentValue:s}){const o=t&&!this.service.valueInList(t),u=s&&!this.service.valueInList(s);return o||u}scrollOnce(t){-1!==this.indexToScroll&&(t(this.indexToScroll),this.indexToScroll=-1)}serviceSettings(t){const o=Object.assign({},{boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},t);return o.boundRange="hour"!==o.part.type,o}selectedIndex(t){return t?this.service.selectedIndex(t):-1}textHasChanged({previousValue:t,currentValue:s}){if(!t||!s)return!1;const o=this.data[this.selectedIndex(t)],u=this.data[this.selectedIndex(s)];return o&&u&&o.text!==u.text}handleKeyDown(t){const o=(p2[t.keyCode]||e4)(this.data,this.service.selectedIndex(this.value));o&&(this.handleChange(o),t.preventDefault())}bindEvents(){this.scrollSubscription=this.virtualization.scroll$().pipe((0,mt.b)(100),(0,Sn.U)(s=>s.target.scrollTop),(0,Sn.U)(s=>this.itemOffset(s)),(0,Sn.U)(s=>this.virtualization.itemIndex(s))).subscribe(s=>{this.virtualization.scrollToIndex(s),this.handleChange(this.data[s])});const t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"mouseover",()=>!this.isActive&&this.focus()),this.renderer.listen(t,"click",()=>this.focus()),this.renderer.listen(t,"blur",()=>this.isActive=!1),this.renderer.listen(t,"focus",()=>this.isActive=!0),this.renderer.listen(t,"keydown",this.handleKeyDown.bind(this)))}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.zs3),e.Y36(Nh),e.Y36(e.Qsj),e.Y36(e.R0b))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-timelist"]],viewQuery:function(t,s){if(1&t&&e.Gf(pa,7),2&t){let o;e.iGM(o=e.CRH())&&(s.virtualization=o.first)}},hostVars:3,hostBindings:function(t,s){2&t&&(e.uIk("tabindex",s.tabIndex),e.ekj("k-time-list",s.componentClass))},inputs:{min:"min",max:"max",step:"step",disabled:"disabled",value:"value",part:"part"},outputs:{valueChange:"valueChange"},features:[e.TTD],decls:3,vars:13,consts:[["role","presentation","tabindex","-1",1,"k-time-container",3,"skip","take","total","itemHeight","maxScrollDifference","topOffset","bottomOffset"],[1,"k-reset",3,"ngStyle","kendoEventsOutsideAngular","scope"],["class","k-item",4,"ngFor","ngForOf"],[1,"k-item"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-virtualization",0),e.TgZ(1,"ul",1),e.YNc(2,nu,3,2,"li",2),e.qZA(),e.qZA()),2&t&&(e.Q6J("skip",s.skip)("take",s.total)("total",s.total)("itemHeight",s.itemHeight)("maxScrollDifference",s.listHeight)("topOffset",s.topOffset)("bottomOffset",s.bottomOffset),e.xp6(1),e.Q6J("ngStyle",s.style)("kendoEventsOutsideAngular",e.VKq(11,Eo,s.handleItemClick))("scope",s),e.xp6(1),e.Q6J("ngForOf",s.data))},directives:[pa,Re.PC,z.nV,Re.sg],encapsulation:2}),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"min",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"max",void 0),ue([(0,e.IIB)(),me("design:type",Object)],n.prototype,"part",void 0),ue([(0,e.IIB)(),me("design:type",Number)],n.prototype,"step",void 0),ue([(0,e.IIB)(),me("design:type",Boolean)],n.prototype,"disabled",void 0),ue([(0,e.IIB)(),me("design:type",Date)],n.prototype,"value",void 0),ue([(0,e.r_U)(),me("design:type",e.vpe)],n.prototype,"valueChange",void 0),ue([(0,e.i9L)(pa,{static:!0}),me("design:type",pa)],n.prototype,"virtualization",void 0),ue([(0,e.pfw)("attr.tabindex"),me("design:type",Number),me("design:paramtypes",[])],n.prototype,"tabIndex",null),ue([(0,e.pfw)("class.k-time-list"),me("design:type",Boolean)],n.prototype,"componentClass",void 0),n=ue([me("design:paramtypes",[e.SBq,e.zs3,Nh,e.Qsj,e.R0b])],n),n})();const Ng=(n,i)=>n.getHours()===i.getHours()&&n.getMinutes()===i.getMinutes(),Yf=(n,i)=>Ng(n,i)&&n.getSeconds()===i.getSeconds(),jg=[{type:"hour",getter:n=>n.getHours(),minGetter:(n,i)=>i.getHours()},{type:"minute",getter:n=>n.getMinutes(),minGetter:(n,i)=>Ng(n,i)?i.getMinutes():0},{type:"second",getter:n=>n.getSeconds(),minGetter:(n,i)=>Yf(n,i)?i.getSeconds():0},{type:"millisecond",getter:n=>n.getMilliseconds(),minGetter:(n,i)=>((n,i)=>Yf(n,i)&&n.getMilliseconds()===i.getMilliseconds())(n,i)?i.getMilliseconds():0}],v2=(n=>i=>n.map((n=>i=>n[i.type]?(n=>(i,t)=>n(t))(i.getter):(n=>(i,t)=>n(i))(i.getter))((n=>n.reduce((i,t)=>(i[t.type]=t.type,i),{}))(i))))(jg),mu=(n=>i=>n.map(t=>{const s=i[t.type];return s?((n,i,t)=>(s,o)=>{const u=n(s),b=i(s,o),k=u-b;if(k<0)return b;const ae=k%t;return u-ae+(ae>t/2?t:0)})(t.getter,t.minGetter,s):t.getter}))(jg),Hh=n=>(i,t)=>(i.setHours(...n.map(s=>s(i,t))),i),r4=(n,i,t,s)=>n.length||!i.isActive?n:[{next:s[t+1]||i,prev:s[t-1]||i}];var M1=(()=>(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right"}(M1||(M1={})),M1))();let Ep=(()=>{let n=class{constructor(t,s,o,u,b,k,ae,q){this.localization=t,this.cdr=s,this.element=o,this.intl=u,this.dom=b,this.zone=k,this.renderer=ae,this.pickerService=q,this.componentClass=!0,this.format="t",this.min=Wn(ei),this.max=Wn(ri),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new e.vpe,this.valueReject=new e.vpe,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}get disabledClass(){return this.disabled}set steps(t){this._steps=t||{}}get steps(){return this._steps}set current(t){this._current=((n,i,t)=>{if(!n||!i||!t)return n;const{candidateValue:s,minValue:o,maxValue:u}=E0(n,i,t);return su?Wl(n,t):n})(this.snapTime(Wn(t||lt),this.min),this.min,this.max),e.R0b.isInAngularZone()||this.cdr.detectChanges()}get current(){return this._current}get activeListIndex(){return this._activeListIndex}set activeListIndex(t){if(this._activeListIndex=t,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(s=>{this.renderer.removeClass(s.nativeElement,"k-state-focused")}),t>=0)){const s=this.listIndex(t),o=this.timeListWrappers.toArray()[s];o&&this.renderer.addClass(o.nativeElement,"k-state-focused")}}ngOnInit(){this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()}ngOnChanges(t){this.init()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(t=>t())}focus(){const t=this.timeLists.first;!t||t.focus()}blur(){const t=this.timeLists.first;!t||t.blur()}handleAccept(){this.handleChange(this.mergeValue(Wn(this.value||Vi(vh())),this.current))}handleNow(){this.current=vh(),this.handleChange(this.current),this.cdr.markForCheck()}handleReject(){this.current=this.value,this.valueReject.emit()}handleFocus(t){this.isActive||(this.isActive=!0,this.emitFocus(t))}handleListFocus(t){const s=parseInt(t.target.getAttribute("data-timelist-index"),10);this.activeListIndex=s,this.handleFocus(t)}handleBlur(t){const s=lr(t);s&&this.containsElement(s)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(t))}containsElement(t){return Boolean(_p(t,s=>s===this.element.nativeElement))}partStep(t){return this.steps[t.type]||1}init(t){(!t||Oc(t,"format"))&&(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Hh(v2(this.dateFormatParts))),(!t||Oc(t,"steps"))&&(this.snapTime=(n=>(i,t)=>{const s=Wn(i);return s.setHours(...n.map(o=>o(s,t))),s})(mu(this.steps))),(!t||Oc(t,"value"))&&(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&rp(vh(),this.min,this.max)}focusList(t){!this.timeLists.length||this.timeLists.reduce(r4,[]).map(s=>t===M1.Right?s.next:s.prev).map(s=>s&&s.focus())}handleChange(t){this.value=t,this.valueChange.emit(Wn(t))}hasActiveButton(){return!!this.accept&&[this.accept,this.cancel,this.now].reduce((t,s)=>t||this.dom.isActive(s),!1)}hasSteps(){const t=Object.keys(this.steps);return t.length!==t.reduce((s,o)=>s+this.steps[o],0)}intlChange(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Hh(v2(this.dateFormatParts)),this.cdr.markForCheck()}bindEvents(){this.element&&this.zone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this)))})}handleKeydown(t){const{keyCode:s,altKey:o}=t,u=-1!==[z.R8.ArrowLeft,z.R8.ArrowRight].indexOf(s);Mi(this.pickerService)&&u&&o||(s!==z.R8.Enter||this.hasActiveButton()?(s===z.R8.ArrowLeft||s===z.R8.ArrowRight)&&this.focusList(s===z.R8.ArrowLeft?M1.Left:M1.Right):this.handleAccept())}emitBlur(t){this.pickerService&&this.pickerService.onBlur.emit(t)}emitFocus(t){this.pickerService&&this.pickerService.onFocus.emit(t)}listIndex(t){let s=0,o=0;for(;o{class n extends G.Z1{}return n.\u0275fac=function(){let i;return function(s){return(i||(i=e.n5z(n)))(s||n)}}(),n.\u0275dir=e.lG2({type:n,inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",now:"now",nowLabel:"nowLabel",toggle:"toggle"},features:[e.qOj]}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"accept",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"acceptLabel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"cancel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"cancelLabel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"now",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"nowLabel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"toggle",void 0),n})();var I1;let zc=I1=class extends hd{constructor(i){super(),this.service=i}};var _2;zc.\u0275fac=function(i){return new(i||zc)(e.Y36(G.oQ))},zc.\u0275dir=e.lG2({type:zc,selectors:[["","kendoTimePickerLocalizedMessages",""]],features:[e._Bn([{provide:hd,useExisting:(0,e.Gpc)(()=>I1)}]),e.qOj]}),zc=I1=ue([me("design:paramtypes",[G.oQ])],zc);let vu=_2=class extends hd{constructor(i){super(),this.service=i}get override(){return!0}};var Wf;vu.\u0275fac=function(i){return new(i||vu)(e.Y36(G.oQ))},vu.\u0275cmp=e.Xpm({type:vu,selectors:[["kendo-timepicker-messages"]],features:[e._Bn([{provide:hd,useExisting:(0,e.Gpc)(()=>_2)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),vu=_2=ue([me("design:paramtypes",[G.oQ])],vu);let _u=Wf=class extends hd{constructor(i){super(),this.service=i}};var Zf;_u.\u0275fac=function(i){return new(i||_u)(e.Y36(G.oQ))},_u.\u0275dir=e.lG2({type:_u,selectors:[["","kendoTimeSelectorLocalizedMessages",""]],features:[e._Bn([{provide:hd,useExisting:(0,e.Gpc)(()=>Wf)}]),e.qOj]}),_u=Wf=ue([me("design:paramtypes",[G.oQ])],_u);let yu=Zf=class extends hd{constructor(i){super(),this.service=i}get override(){return!0}};yu.\u0275fac=function(i){return new(i||yu)(e.Y36(G.oQ))},yu.\u0275cmp=e.Xpm({type:yu,selectors:[["kendo-timeselector-messages"]],features:[e._Bn([{provide:hd,useExisting:(0,e.Gpc)(()=>Zf)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),yu=Zf=ue([me("design:paramtypes",[G.oQ])],yu);let kp=(()=>{class n extends G.Z1{}return n.\u0275fac=function(){let i;return function(s){return(i||(i=e.n5z(n)))(s||n)}}(),n.\u0275dir=e.lG2({type:n,inputs:{toggle:"toggle",dateTab:"dateTab",dateTabLabel:"dateTabLabel",timeTab:"timeTab",timeTabLabel:"timeTabLabel",accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",today:"today",now:"now",nowLabel:"nowLabel",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[e.qOj]}),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"toggle",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"dateTab",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"dateTabLabel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"timeTab",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"timeTabLabel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"accept",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"acceptLabel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"cancel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"cancelLabel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"today",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"now",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"nowLabel",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"prevButtonTitle",void 0),ue([(0,e.IIB)(),me("design:type",String)],n.prototype,"nextButtonTitle",void 0),n})();var y2;let Vh=y2=class extends kp{constructor(i){super(),this.service=i}get override(){return!0}};var Yu;Vh.\u0275fac=function(i){return new(i||Vh)(e.Y36(G.oQ))},Vh.\u0275cmp=e.Xpm({type:Vh,selectors:[["kendo-datetimepicker-messages"]],features:[e._Bn([{provide:kp,useExisting:(0,e.Gpc)(()=>y2)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),Vh=y2=ue([me("design:paramtypes",[G.oQ])],Vh);let bu=Yu=class extends kp{constructor(i){super(),this.service=i}};function Oo(n,i,t,s){var b,o=arguments.length,u=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,i,t,s);else for(var k=n.length-1;k>=0;k--)(b=n[k])&&(u=(o<3?b(u):o>3?b(i,t,u):b(i,t))||u);return o>3&&u&&Object.defineProperty(i,t,u),u}function go(n,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,i)}bu.\u0275fac=function(i){return new(i||bu)(e.Y36(G.oQ))},bu.\u0275dir=e.lG2({type:bu,selectors:[["","kendoDateTimePickerLocalizedMessages",""]],features:[e._Bn([{provide:kp,useExisting:(0,e.Gpc)(()=>Yu)}]),e.qOj]}),bu=Yu=ue([me("design:paramtypes",[G.oQ])],bu);const em=["*"];function iv(n,i){if(1&n&&(e.TgZ(0,"span",3),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij("(",t.textFor("optional"),")")}}let Op=(()=>{let n=class{constructor(t,s,o){this.label=t,this.renderer=s,this.zone=o,this.labelClass=!0,this.handleClick=()=>{const u=this.getFocusableComponent();!u||((n=>n.wrapper&&("KENDO-UPLOAD"===n.wrapper.tagName||"KENDO-FILESELECT"===n.wrapper.tagName))(u)&&u.fileSelect.nativeElement.click(),u.focus&&u.focus())}}get labelFor(){if("string"==typeof this.for)return this.for;if(!(0,z.X_)())return null;const t=this.getFocusableComponent()||{};return(n=>n instanceof HTMLElement)(t)&&!((n,i)=>n.hasAttribute("id"))(t)&&this.renderer.setAttribute(t,"id",`k-${(0,z.M8)()}`),t.focusableId||t.id||null}ngAfterViewInit(){this.setAriaLabelledby(),this.zone.runOutsideAngular(()=>this.clickListener=this.renderer.listen(this.label.nativeElement,"click",this.handleClick))}ngOnDestroy(){this.clickListener&&this.clickListener()}setAriaLabelledby(){if(!(0,z.X_)())return;const t=this.getFocusableComponent();if(t&&t.focusableId){const o=(n=>{if(!n)return null;let i=n;for(;i.parentElement;)i=i.parentElement;return i})(this.label.nativeElement).querySelector(`#${t.focusableId}`);if(!o)return;const u=this.label.nativeElement,b=u.id||`k-${(0,z.M8)()}`;u.getAttribute("id")||this.renderer.setAttribute(u,"id",b),this.renderer.setAttribute(o,"aria-labelledby",b)}}getFocusableComponent(){const t=this.for;return t&&void 0!==t.focus?t:null}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["label","for",""]],hostVars:3,hostBindings:function(t,s){2&t&&(e.uIk("for",s.labelFor),e.ekj("k-label",s.labelClass))},inputs:{for:"for"}}),Oo([(0,e.IIB)(),go("design:type",Object)],n.prototype,"for",void 0),Oo([(0,e.pfw)("attr.for"),go("design:type",String),go("design:paramtypes",[])],n.prototype,"labelFor",null),Oo([(0,e.pfw)("class.k-label"),go("design:type",Boolean)],n.prototype,"labelClass",void 0),n=Oo([go("design:paramtypes",[e.SBq,e.Qsj,e.R0b])],n),n})(),m=(()=>{class n extends G.Z1{}return n.\u0275fac=function(){let i;return function(s){return(i||(i=e.n5z(n)))(s||n)}}(),n.\u0275dir=e.lG2({type:n,inputs:{optional:"optional"},features:[e.qOj]}),Oo([(0,e.IIB)(),go("design:type",String)],n.prototype,"optional",void 0),n})();var B;let h=B=class extends m{constructor(i){super(),this.service=i}};var I;h.\u0275fac=function(i){return new(i||h)(e.Y36(G.oQ))},h.\u0275dir=e.lG2({type:h,selectors:[["","kendoLabelLocalizedMessages",""],["","kendoFloatingLabelLocalizedMessages",""]],features:[e._Bn([{provide:m,useExisting:(0,e.Gpc)(()=>B)}]),e.qOj]}),h=B=Oo([go("design:paramtypes",[G.oQ])],h);let W=I=class extends m{constructor(i){super(),this.service=i}get override(){return!0}};W.\u0275fac=function(i){return new(i||W)(e.Y36(G.oQ))},W.\u0275cmp=e.Xpm({type:W,selectors:[["kendo-label-messages"],["kendo-floatinglabel-messages"]],features:[e._Bn([{provide:m,useExisting:(0,e.Gpc)(()=>I)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),W=I=Oo([go("design:paramtypes",[G.oQ])],W);let Zt=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n})();const Rn={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635940028,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let Ls=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez,Zt],Zt]}),n})(),cr=(()=>{let n=class{constructor(t,s,o){this.elementRef=t,this.renderer=s,this.localization=o,this.subscriptions=new he.w0,(0,Kt.s)(Rn),this.direction=o.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}ngAfterContentInit(){if(this.for)return void(this.control=this.for);const t=(n=>this.elementRef.nativeElement.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select"))();if(t)return t.hasAttribute("id")||this.renderer.setAttribute(t,"id",`k-${(0,z.M8)()}`),void(this.control=t);this.control=this.kendoInput}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr"}))}ngAfterViewInit(){this.labelDirective.setAriaLabelledby()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}textFor(t){return this.localization.get(t)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-label"]],contentQueries:function(t,s,o){if(1&t&&e.Suo(o,z.GX,7),2&t){let u;e.iGM(u=e.CRH())&&(s.kendoInput=u.first)}},viewQuery:function(t,s){if(1&t&&e.Gf(Op,7),2&t){let o;e.iGM(o=e.CRH())&&(s.labelDirective=o.first)}},hostVars:1,hostBindings:function(t,s){2&t&&e.uIk("dir",s.direction)},inputs:{text:"text",for:"for",optional:"optional"},exportAs:["kendoLabel"],features:[e._Bn([G.oQ,{provide:G.mM,useValue:"kendo.label"}])],ngContentSelectors:em,decls:5,vars:5,consts:function(){let i;return i=$localize`:kendo.label.optional|The text for the optional segment of a Label component␟a1cd4a8f359a22151d7e73f2887fbb2967cd389a␟3476218486854814180:Optional`,[["kendoLabelLocalizedMessages","","optional",i],[3,"for"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(t,s){1&t&&(e.F$t(),e.GkF(0,0),e.TgZ(1,"label",1),e._uU(2),e.YNc(3,iv,2,1,"span",2),e.qZA(),e.Hsn(4)),2&t&&(e.xp6(1),e.ekj("k-label-empty",!s.text),e.Q6J("for",s.control),e.xp6(1),e.hij(" ",s.text,""),e.xp6(1),e.Q6J("ngIf",s.optional))},directives:[h,Op,Re.O5],encapsulation:2}),Oo([(0,e.pfw)("attr.dir"),go("design:type",String)],n.prototype,"direction",void 0),Oo([(0,e.IIB)(),go("design:type",String)],n.prototype,"text",void 0),Oo([(0,e.IIB)(),go("design:type",Object)],n.prototype,"for",void 0),Oo([(0,e.IIB)(),go("design:type",Boolean)],n.prototype,"optional",void 0),Oo([(0,e.i9L)(Op,{static:!0}),go("design:type",Op)],n.prototype,"labelDirective",void 0),Oo([(0,e.aQ5)(z.GX,{static:!0}),go("design:type",Object)],n.prototype,"kendoInput",void 0),n=Oo([go("design:paramtypes",[e.SBq,e.Qsj,G.oQ])],n),n})(),gl=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez,Zt],Ls,Zt]}),n})();var mo=S(1777),pd=S(9923),D1=S(1211);function no(n){return void 0!==n}const im=Math.PI/180,t0=Number.MAX_VALUE,T1=-Number.MAX_VALUE;function Gh(n){return n*im}function Go(n,i){const t=function(n){return n?Math.pow(10,n):1}(i);return Math.round(n*t)/t}class Vc extends D1.Z{constructor(i=0,t=0,s=0,o=0,u=0,b=0){super(),this.a=i,this.b=t,this.c=s,this.d=o,this.e=u,this.f=b}multiplyCopy(i){return new Vc(this.a*i.a+this.c*i.b,this.b*i.a+this.d*i.b,this.a*i.c+this.c*i.d,this.b*i.c+this.d*i.d,this.a*i.e+this.c*i.f+this.e,this.b*i.e+this.d*i.f+this.f)}invert(){const{a:i,b:t,c:s,d:o,e:u,f:b}=this,k=i*o-t*s;return 0===k?null:new Vc(o/k,-t/k,-s/k,i/k,(s*b-o*u)/k,(t*u-i*b)/k)}clone(){return new Vc(this.a,this.b,this.c,this.d,this.e,this.f)}equals(i){return!!i&&this.a===i.a&&this.b===i.b&&this.c===i.c&&this.d===i.d&&this.e===i.e&&this.f===i.f}round(i){return this.a=Go(this.a,i),this.b=Go(this.b,i),this.c=Go(this.c,i),this.d=Go(this.d,i),this.e=Go(this.e,i),this.f=Go(this.f,i),this}toArray(i){const t=[this.a,this.b,this.c,this.d,this.e,this.f];if(no(i))for(let s=0;s{const t=class extends n{};return function(n,i){for(let t=0;t9),A2=function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(i){for(var t=i.replace(/[^A-Za-z0-9\+\/\=]/g,""),s=0,o=t.length,u=[];s>>2,at=(3&ae)<<6|q;u.push(b<<2|k>>>4),64!=ae&&u.push(yt),64!=q&&u.push(at)}return u},encode:function(i){for(var t=0,s=i.length,o="";t>>4,Se=(15&b)<<2|k>>>6,yt=63&k;t-s==2?Se=yt=64:t-s==1&&(yt=64),o+=n.charAt(u>>>2)+n.charAt(q)+n.charAt(Se)+n.charAt(yt)}return o}}}();function Xo(n){var i=0,t=0;null==n?n=Su?new Uint8Array(256):[]:t=n.length;var s=Su?function(Gn){if(Gn>=n.length){var ji=new Uint8Array(Math.max(Gn+256,2*n.length));ji.set(n,0),n=ji}}:function(){},o=Su?function(){return new Uint8Array(n.buffer,0,t)}:function(){return n},u=Su?function(Gn){if("string"==typeof Gn)return Li(Gn);var ji=Gn.length;s(i+ji),n.set(Gn,i),(i+=ji)>t&&(t=i)}:function(Gn){if("string"==typeof Gn)return Li(Gn);for(var ji=0;jit&&(t=i)}function Se(){return ae()<<8|ae()}function yt(Gn){q(Gn>>8),q(Gn)}function sn(){return 65536*Se()+Se()}function jn(Gn){yt(Gn>>>16&65535),yt(65535&Gn)}function oi(){var Gn=sn();return Gn>=2147483648?Gn-4294967296:Gn}function Pn(Gn){jn(Gn<0?Gn+4294967296:Gn)}function ui(Gn){return es(Gn,ae)}function Li(Gn){for(var ji=0;ji=t},readByte:ae,writeByte:q,readShort:Se,writeShort:yt,readLong:sn,writeLong:jn,readFixed:function(){return sn()/65536},writeFixed:function(Gn){jn(Math.round(65536*Gn))},readShort_:function(){var Gn=Se();return Gn>=32768?Gn-65536:Gn},writeShort_:function(Gn){yt(Gn<0?Gn+65536:Gn)},readLong_:oi,writeLong_:Pn,readFixed_:function(){return oi()/65536},writeFixed_:function(Gn){Pn(Math.round(65536*Gn))},read:ui,write:u,readString:function(Gn){return String.fromCharCode.apply(String,ui(Gn))},writeString:Li,times:es,get:o,slice:Su?function(Gn,ji){if(n.buffer.slice)return new Uint8Array(n.buffer.slice(Gn,Gn+ji));var si=new Uint8Array(ji);return si.set(new Uint8Array(n.buffer,Gn,ji)),si}:function(Gn,ji){return n.slice(Gn,Gn+ji)},offset:function(Gn){return null!=Gn?(i=Gn,Oi):i},skip:function(Gn){i+=Gn},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return t},saveExcursion:function(Gn){var ji=i;try{return Gn()}finally{i=ji}},writeBase64:function(Gn){window.atob?Li(window.atob(Gn)):u(A2.decode(Gn))},base64:function(){return A2.encode(o())}};return Oi}function Lp(n,i){return Object.prototype.hasOwnProperty.call(n,i)}function O2(n){return Object.keys(n).sort(function(i,t){return i-t}).map(parseFloat)}class gd{constructor(i,t){this.definition=t,this.length=t.length,this.offset=t.offset,this.file=i,this.rawData=i.raw,this.parse(i.raw)}raw(){return this.rawData.slice(this.offset,this.length)}parse(){}}(function(){class n{get compound(){return!1}constructor(ae){this.raw=ae}render(){return this.raw.get()}}class b{get compound(){return!0}constructor(ae){this.raw=ae;for(var q=this.glyphIds=[],Se=this.idOffsets=[];;){var yt=ae.readShort();if(Se.push(ae.offset()),q.push(ae.readShort()),!(32&yt))break;ae.skip(1&yt?4:2),128&yt?ae.skip(8):64&yt?ae.skip(4):8&yt&&ae.skip(2)}}render(ae){for(var q=Xo(this.raw.get()),Se=0;Se0;)u[k++]=s.readShort();break;case 12:s.readShort(),b.length=s.readLong(),b.language=s.readLong();for(var Vn=s.readLong();Vn-- >0;){k=s.readLong();for(var ui=s.readLong(),Xn=s.readLong();k<=ui;)u[k++]=Xn++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+b.format)}})}}}();function wu(n,i){return Object.prototype.hasOwnProperty.call(n,i)}function R4(n){for(var i=Array.prototype.slice.call(arguments,1);i.length;){var t=i.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var s in t)wu(t,s)&&(n[s]=t[s])}}return n}function a0(n,i){return n.length===i?n:n.subarray?n.subarray(0,i):(n.length=i,n)}var vc={arraySet:function(n,i,t,s,o){if(i.subarray&&n.subarray)n.set(i.subarray(t,t+s),o);else for(var u=0;u{const n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return Bl=()=>n,n},_c=(n,i,t,s,o)=>(_c=Bl()?vc.arraySet:ql.arraySet,_c(n,i,t,s,o)),l0=n=>(l0=Bl()?vc.flattenChunks:ql.flattenChunks,l0(n)),xu=n=>(xu=Bl()?vc.Buf8:ql.Buf8,xu(n)),yc=n=>(yc=Bl()?vc.Buf16:ql.Buf16,yc(n)),F1=n=>(F1=Bl()?vc.Buf32:ql.Buf32,F1(n)),P4=function(){let n=!0;try{String.fromCharCode.apply(null,[0])}catch(i){n=!1}return P4=()=>n,n},L2=function(){let n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(i){n=!1}return L2=()=>n,n},Np=function(n){for(var i=xu(256),t=0;t<256;t++)i[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;return i[254]=i[254]=1,Np=s=>i[s],i[n]};function B2(n){var i,t,s,o,u,b=n.length,k=0;for(o=0;o>>6,i[u++]=128|63&t):t<65536?(i[u++]=224|t>>>12,i[u++]=128|t>>>6&63,i[u++]=128|63&t):(i[u++]=240|t>>>18,i[u++]=128|t>>>12&63,i[u++]=128|t>>>6&63,i[u++]=128|63&t);return i}function N2(n,i){if(i<65534&&(n.subarray&&L2()||!n.subarray&&P4()))return String.fromCharCode.apply(null,a0(n,i));for(var t="",s=0;s4)k[s++]=65533,t+=u-1;else{for(o&=2===u?31:3===u?15:7;u>1&&t1?k[s++]=65533:o<65536?k[s++]=o:(k[s++]=55296|(o-=65536)>>10&1023,k[s++]=56320|1023&o)}return N2(k,s)}function z2(n,i){var t;for((i=i||n.length)>n.length&&(i=n.length),t=i-1;t>=0&&128==(192&n[t]);)t--;return t<0||0===t?i:t+Np(n[t])>i?t:i}function c0(n,i,t,s){for(var o=65535&n|0,u=n>>>16&65535|0,b=0;0!==t;){t-=b=t>2e3?2e3:t;do{u=u+(o=o+i[s++]|0)|0}while(--b);o%=65521,u%=65521}return o|u<<16|0}let mm=function(){const n=function(){for(var n,i=[],t=0;t<256;t++){n=t;for(var s=0;s<8;s++)n=1&n?3988292384^n>>>1:n>>>1;i[t]=n}return i}();return mm=()=>n,n};function Ja(n,i,t,s){var o=mm(),u=s+t;n^=-1;for(var b=s;b>>8^o[255&(n^i[b])];return-1^n}function _m(n,i){var t,s,o,u,b,k,ae,q,Se,yt,at,Ht,sn,jn,oi,Pn,Dn,fi,zn,Vn,ui,Xn,Li,es,Oi;es=n.input,o=(s=n.next_in)+(n.avail_in-5),Oi=n.output,b=(u=n.next_out)-(i-n.avail_out),k=u+(n.avail_out-257),ae=(t=n.state).dmax,q=t.wsize,Se=t.whave,yt=t.wnext,at=t.window,Ht=t.hold,sn=t.bits,jn=t.lencode,oi=t.distcode,Pn=(1<>>=zn=fi>>>24,sn-=zn,0==(zn=fi>>>16&255))Oi[u++]=65535&fi;else{if(!(16&zn)){if(0==(64&zn)){fi=jn[(65535&fi)+(Ht&(1<>>=zn,sn-=zn),sn<15&&(Ht+=es[s++]<>>=zn=fi>>>24,sn-=zn,!(16&(zn=fi>>>16&255))){if(0==(64&zn)){fi=oi[(65535&fi)+(Ht&(1<ae){n.msg="invalid distance too far back",t.mode=30;break e}if(Ht>>>=zn,sn-=zn,ui>(zn=u-b)){if((zn=ui-zn)>Se&&t.sane){n.msg="invalid distance too far back",t.mode=30;break e}if(Xn=0,Li=at,0===yt){if(Xn+=q-zn,zn2;)Oi[u++]=Li[Xn++],Oi[u++]=Li[Xn++],Oi[u++]=Li[Xn++],Vn-=3;Vn&&(Oi[u++]=Li[Xn++],Vn>1&&(Oi[u++]=Li[Xn++]))}else{Xn=u-ui;do{Oi[u++]=Oi[Xn++],Oi[u++]=Oi[Xn++],Oi[u++]=Oi[Xn++],Vn-=3}while(Vn>2);Vn&&(Oi[u++]=Oi[Xn++],Vn>1&&(Oi[u++]=Oi[Xn++]))}break}}break}}while(s>3)<<3))-1,n.next_in=s-=Vn,n.next_out=u,n.avail_in=s=1&&0===Gn[at];at--);if(Ht>at&&(Ht=at),0===at)return o[u++]=20971520,o[u++]=20971520,k.bits=1,0;for(yt=1;yt0&&(0===n||1!==at))return-1;for(ji[1]=0,q=1;q<15;q++)ji[q+1]=ji[q]+Gn[q];for(Se=0;Se852||2===n&&Pn>592)return 1;for(;;){yi=q-jn,b[Se]Oi?(Ui=si[Cs+b[Se]],rs=Li[es+b[Se]]):(Ui=96,rs=0),fi=1<>jn)+(zn-=fi)]=yi<<24|Ui<<16|rs|0}while(0!==zn);for(fi=1<>=1;if(0!==fi?(Dn&=fi-1,Dn+=fi):Dn=0,Se++,0==--Gn[q]){if(q===at)break;q=i[t+b[Se]]}if(q>Ht&&(Dn&ui)!==Vn){for(0===jn&&(jn=Ht),Xn+=yt,oi=1<<(sn=q-jn);sn+jn852||2===n&&Pn>592)return 1;o[Vn=Dn&ui]=Ht<<24|sn<<16|Xn-u|0}}return 0!==Dn&&(o[Xn+Dn]=q-jn<<24|64<<16|0),k.bits=Ht,0}function Lm(n){return(n>>>24&255)+(n>>>8&65280)+((65280&n)<<8)+((255&n)<<24)}function q4(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=yc(320),this.work=yc(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Vv(n,i){var t,s;return n?(s=new q4,n.state=s,s.window=null,t=function(n,i){var t,s;return!n||!n.state||(s=n.state,i<0?(t=0,i=-i):(t=1+(i>>4),i<48&&(i&=15)),i&&(i<8||i>15))?-2:(null!==s.window&&s.wbits!==i&&(s.window=null),s.wrap=t,s.wbits=i,function(n){var i;return n&&n.state?((i=n.state).wsize=0,i.whave=0,i.wnext=0,function(n){var i;return n&&n.state?(n.total_in=n.total_out=(i=n.state).total=0,n.msg="",i.wrap&&(n.adler=1&i.wrap),i.mode=1,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=F1(852),i.distcode=i.distdyn=F1(592),i.sane=1,i.back=-1,0):-2}(n)):-2}(n))}(n,i),0!==t&&(n.state=null),t):-2}var Bm,Nm,P1=!0;function jv(n){if(P1){var i;for(Bm=F1(512),Nm=F1(32),i=0;i<144;)n.lens[i++]=8;for(;i<256;)n.lens[i++]=9;for(;i<280;)n.lens[i++]=7;for(;i<288;)n.lens[i++]=8;for(u0(1,n.lens,0,288,Bm,0,n.work,{bits:9}),i=0;i<32;)n.lens[i++]=5;u0(2,n.lens,0,32,Nm,0,n.work,{bits:5}),P1=!1}n.lencode=Bm,n.lenbits=9,n.distcode=Nm,n.distbits=5}function $2(n,i,t,s){var o,u=n.state;return null===u.window&&(u.wsize=1<=u.wsize?(_c(u.window,i,t-u.wsize,u.wsize,0),u.wnext=0,u.whave=u.wsize):((o=u.wsize-u.wnext)>s&&(o=s),_c(u.window,i,t-s,o,u.wnext),(s-=o)?(_c(u.window,i,t-s,s,0),u.wnext=s,u.whave=u.wsize):(u.wnext+=o,u.wnext===u.wsize&&(u.wnext=0),u.whave>>8&255,t.check=Ja(t.check,es,2,0),q=0,Se=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&q)<<8)+(q>>8))%31){n.msg="incorrect header check",t.mode=30;break}if(8!=(15&q)){n.msg="unknown compression method",t.mode=30;break}if(Se-=4,Xn=8+(15&(q>>>=4)),0===t.wbits)t.wbits=Xn;else if(Xn>t.wbits){n.msg="invalid window size",t.mode=30;break}t.dmax=1<>8&1),512&t.flags&&(es[0]=255&q,es[1]=q>>>8&255,t.check=Ja(t.check,es,2,0)),q=0,Se=0,t.mode=3;case 3:for(;Se<32;){if(0===k)break e;k--,q+=s[u++]<>>8&255,es[2]=q>>>16&255,es[3]=q>>>24&255,t.check=Ja(t.check,es,4,0)),q=0,Se=0,t.mode=4;case 4:for(;Se<16;){if(0===k)break e;k--,q+=s[u++]<>8),512&t.flags&&(es[0]=255&q,es[1]=q>>>8&255,t.check=Ja(t.check,es,2,0)),q=0,Se=0,t.mode=5;case 5:if(1024&t.flags){for(;Se<16;){if(0===k)break e;k--,q+=s[u++]<>>8&255,t.check=Ja(t.check,es,2,0)),q=0,Se=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&((Ht=t.length)>k&&(Ht=k),Ht&&(t.head&&(Xn=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),_c(t.head.extra,s,u,Ht,Xn)),512&t.flags&&(t.check=Ja(t.check,s,Ht,u)),k-=Ht,u+=Ht,t.length-=Ht),t.length))break e;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===k)break e;Ht=0;do{Xn=s[u+Ht++],t.head&&Xn&&t.length<65536&&(t.head.name+=String.fromCharCode(Xn))}while(Xn&&Ht>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=12;break;case 10:for(;Se<32;){if(0===k)break e;k--,q+=s[u++]<>>=7&Se,Se-=7&Se,t.mode=27;break}for(;Se<3;){if(0===k)break e;k--,q+=s[u++]<>>=1)){case 0:t.mode=14;break;case 1:if(jv(t),t.mode=20,6===i){q>>>=2,Se-=2;break e}break;case 2:t.mode=17;break;case 3:n.msg="invalid block type",t.mode=30}q>>>=2,Se-=2;break;case 14:for(q>>>=7&Se,Se-=7&Se;Se<32;){if(0===k)break e;k--,q+=s[u++]<>>16^65535)){n.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&q,q=0,Se=0,t.mode=15,6===i)break e;case 15:t.mode=16;case 16:if(Ht=t.length){if(Ht>k&&(Ht=k),Ht>ae&&(Ht=ae),0===Ht)break e;_c(o,s,u,Ht,b),k-=Ht,u+=Ht,ae-=Ht,b+=Ht,t.length-=Ht;break}t.mode=12;break;case 17:for(;Se<14;){if(0===k)break e;k--,q+=s[u++]<>>=5)),Se-=5,t.ncode=4+(15&(q>>>=5)),q>>>=4,Se-=4,t.nlen>286||t.ndist>30){n.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have>>=3,Se-=3}for(;t.have<19;)t.lens[ji[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,Li=u0(0,t.lens,0,19,t.lencode,0,t.work,Oi={bits:t.lenbits}),t.lenbits=Oi.bits,Li){n.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have>>16&255,fi=65535&oi,!((Pn=oi>>>24)<=Se);){if(0===k)break e;k--,q+=s[u++]<>>=Pn,Se-=Pn,t.lens[t.have++]=fi;else{if(16===fi){for(Gn=Pn+2;Se>>=Pn,Se-=Pn,0===t.have){n.msg="invalid bit length repeat",t.mode=30;break}Xn=t.lens[t.have-1],Ht=3+(3&q),q>>>=2,Se-=2}else if(17===fi){for(Gn=Pn+3;Se>>=Pn)),q>>>=3,Se-=3}else{for(Gn=Pn+7;Se>>=Pn)),q>>>=7,Se-=7}if(t.have+Ht>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=30;break}for(;Ht--;)t.lens[t.have++]=Xn}}if(30===t.mode)break;if(0===t.lens[256]){n.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,Li=u0(1,t.lens,0,t.nlen,t.lencode,0,t.work,Oi={bits:t.lenbits}),t.lenbits=Oi.bits,Li){n.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,Li=u0(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,Oi={bits:t.distbits}),t.distbits=Oi.bits,Li){n.msg="invalid distances set",t.mode=30;break}if(t.mode=20,6===i)break e;case 20:t.mode=21;case 21:if(k>=6&&ae>=258){n.next_out=b,n.avail_out=ae,n.next_in=u,n.avail_in=k,t.hold=q,t.bits=Se,_m(n,at),b=n.next_out,o=n.output,ae=n.avail_out,u=n.next_in,s=n.input,k=n.avail_in,q=t.hold,Se=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;Dn=(oi=t.lencode[q&(1<>>16&255,fi=65535&oi,!((Pn=oi>>>24)<=Se);){if(0===k)break e;k--,q+=s[u++]<>zn)])>>>16&255,fi=65535&oi,!(zn+(Pn=oi>>>24)<=Se);){if(0===k)break e;k--,q+=s[u++]<>>=zn,Se-=zn,t.back+=zn}if(q>>>=Pn,Se-=Pn,t.back+=Pn,t.length=fi,0===Dn){t.mode=26;break}if(32&Dn){t.back=-1,t.mode=12;break}if(64&Dn){n.msg="invalid literal/length code",t.mode=30;break}t.extra=15&Dn,t.mode=22;case 22:if(t.extra){for(Gn=t.extra;Se>>=t.extra,Se-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;Dn=(oi=t.distcode[q&(1<>>16&255,fi=65535&oi,!((Pn=oi>>>24)<=Se);){if(0===k)break e;k--,q+=s[u++]<>zn)])>>>16&255,fi=65535&oi,!(zn+(Pn=oi>>>24)<=Se);){if(0===k)break e;k--,q+=s[u++]<>>=zn,Se-=zn,t.back+=zn}if(q>>>=Pn,Se-=Pn,t.back+=Pn,64&Dn){n.msg="invalid distance code",t.mode=30;break}t.offset=fi,t.extra=15&Dn,t.mode=24;case 24:if(t.extra){for(Gn=t.extra;Se>>=t.extra,Se-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===ae)break e;if(t.offset>(Ht=at-ae)){if((Ht=t.offset-Ht)>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=30;break}sn=Ht>t.wnext?t.wsize-(Ht-=t.wnext):t.wnext-Ht,Ht>t.length&&(Ht=t.length),jn=t.window}else jn=o,sn=b-t.offset,Ht=t.length;Ht>ae&&(Ht=ae),ae-=Ht,t.length-=Ht;do{o[b++]=jn[sn++]}while(--Ht);0===t.length&&(t.mode=21);break;case 26:if(0===ae)break e;o[b++]=t.length,ae--,t.mode=21;break;case 27:if(t.wrap){for(;Se<32;){if(0===k)break e;k--,q|=s[u++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(i&&i.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y2,this.strm.avail_out=0;var s=Vv(this.strm,t.windowBits);if(0!==s)throw new Error(Ju[s]);if(this.header=new $b,function(n,i){var t;n&&n.state&&0!=(2&(t=n.state).wrap)&&(t.head=i,i.done=!1)}(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=B2(t.dictionary):"[object ArrayBuffer]"===Gv.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&0!==(s=h5(this.strm,t.dictionary))))throw new Error(Ju[s])}push(i,t){var b,k,ae,q,Se,yt,s=this.strm,o=this.options.chunkSize,u=this.options.dictionary,at=!1;if(this.ended)return!1;k=t===~~t?t:!0===t?4:0,s.input="string"==typeof i?function(n){for(var i=new Uint8Array(n.length),t=0,s=i.length;t0||0===s.avail_out)&&1!==b);return 1===b&&(k=4),4===k?(b=function(n){if(!n||!n.state)return-2;var i=n.state;return i.window&&(i.window=null),n.state=null,0}(this.strm),this.onEnd(b),this.ended=!0,0===b):(2===k&&(this.onEnd(0),s.avail_out=0),!0)}onData(i){this.chunks.push(i)}onEnd(i){0===i&&(this.result="string"===this.options.to?this.chunks.join(""):l0(this.chunks)),this.chunks=[],this.err=i,this.msg=this.strm.msg}}function Q2(n){for(var i=n.length;--i>=0;)n[i]=0}var Ku,Z2,m0,J2,Hm,Vm,C5,Yv,Qv,t3=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],n3=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Jb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],g0=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function jm(n,i,t,s,o){this.static_tree=n,this.extra_bits=i,this.extra_base=t,this.elems=s,this.max_length=o,this.has_stree=n&&n.length}function Wv(n,i){this.dyn_tree=n,this.max_code=0,this.stat_desc=i}function S5(n){return n<256?m0[n]:m0[256+(n>>>7)]}function Gm(n,i){n.pending_buf[n.pending++]=255&i,n.pending_buf[n.pending++]=i>>>8&255}function bc(n,i,t){n.bi_valid>16-t?(n.bi_buf|=i<>16-n.bi_valid,n.bi_valid+=t-16):(n.bi_buf|=i<>>=1,t<<=1}while(--i>0);return t>>>1}function w5(n,i,t){var u,b,s=new Array(16),o=0;for(u=1;u<=15;u++)s[u]=o=o+t[u-1]<<1;for(b=0;b<=i;b++){var k=n[2*b+1];0!==k&&(n[2*b]=Zv(s[k]++,k))}}function x5(n){var i;for(i=0;i<286;i++)n.dyn_ltree[2*i]=0;for(i=0;i<30;i++)n.dyn_dtree[2*i]=0;for(i=0;i<19;i++)n.bl_tree[2*i]=0;n.dyn_ltree[512]=1,n.opt_len=n.static_len=0,n.last_lit=n.matches=0}function M5(n){n.bi_valid>8?Gm(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0}function I5(n,i,t,s){var o=2*i,u=2*t;return n[o]>1;b>=1;b--)s3(n,t,b);q=u;do{b=n.heap[1],n.heap[1]=n.heap[n.heap_len--],s3(n,t,1),k=n.heap[1],n.heap[--n.heap_max]=b,n.heap[--n.heap_max]=k,t[2*q]=t[2*b]+t[2*k],n.depth[q]=(n.depth[b]>=n.depth[k]?n.depth[b]:n.depth[k])+1,t[2*b+1]=t[2*k+1]=q,n.heap[1]=q++,s3(n,t,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],function(n,i){var q,Se,yt,at,Ht,sn,t=i.dyn_tree,s=i.max_code,o=i.stat_desc.static_tree,u=i.stat_desc.has_stree,b=i.stat_desc.extra_bits,k=i.stat_desc.extra_base,ae=i.stat_desc.max_length,jn=0;for(at=0;at<=15;at++)n.bl_count[at]=0;for(t[2*n.heap[n.heap_max]+1]=0,q=n.heap_max+1;q<573;q++)(at=t[2*t[2*(Se=n.heap[q])+1]+1]+1)>ae&&(at=ae,jn++),t[2*Se+1]=at,!(Se>s)&&(n.bl_count[at]++,Ht=0,Se>=k&&(Ht=b[Se-k]),n.opt_len+=(sn=t[2*Se])*(at+Ht),u&&(n.static_len+=sn*(o[2*Se+1]+Ht)));if(0!==jn){do{for(at=ae-1;0===n.bl_count[at];)at--;n.bl_count[at]--,n.bl_count[at+1]+=2,n.bl_count[ae]--,jn-=2}while(jn>0);for(at=ae;0!==at;at--)for(Se=n.bl_count[at];0!==Se;)!((yt=n.heap[--q])>s)&&(t[2*yt+1]!==at&&(n.opt_len+=(at-t[2*yt+1])*t[2*yt],t[2*yt+1]=at),Se--)}}(n,i),w5(t,ae,n.bl_count)}function qv(n,i,t){var s,u,o=-1,b=i[1],k=0,ae=7,q=4;for(0===b&&(ae=138,q=3),i[2*(t+1)+1]=65535,s=0;s<=t;s++)u=b,b=i[2*(s+1)+1],!(++k>>8&255,n.pending_buf[n.d_buf+2*n.last_lit+1]=255&i,n.pending_buf[n.l_buf+n.last_lit]=255&t,n.last_lit++,0===i?n.dyn_ltree[2*t]++:(n.matches++,i--,n.dyn_ltree[2*(J2[t]+256+1)]++,n.dyn_dtree[2*S5(i)]++),n.last_lit===n.lit_bufsize-1}var qu=262;function Du(n,i){return n.msg=Ju[i],i}function A5(n){return(n<<1)-(n>4?9:0)}function Up(n){for(var i=n.length;--i>=0;)n[i]=0}function $p(n){var i=n.state,t=i.pending;t>n.avail_out&&(t=n.avail_out),0!==t&&(_c(n.output,i.pending_buf,i.pending_out,t,n.next_out),n.next_out+=t,i.pending_out+=t,n.total_out+=t,n.avail_out-=t,i.pending-=t,0===i.pending&&(i.pending_out=0))}function Xl(n,i){(function(n,i,t,s){var o,u,b=0;n.level>0?(2===n.strm.data_type&&(n.strm.data_type=function(n){var t,i=4093624447;for(t=0;t<=31;t++,i>>>=1)if(1&i&&0!==n.dyn_ltree[2*t])return 0;if(0!==n.dyn_ltree[18]||0!==n.dyn_ltree[20]||0!==n.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==n.dyn_ltree[2*t])return 1;return 0}(n)),Kv(n,n.l_desc),Kv(n,n.d_desc),b=function(n){var i;for(qv(n,n.dyn_ltree,n.l_desc.max_code),qv(n,n.dyn_dtree,n.d_desc.max_code),Kv(n,n.bl_desc),i=18;i>=3&&0===n.bl_tree[2*g0[i]+1];i--);return n.opt_len+=3*(i+1)+5+5+4,i}(n),(u=n.static_len+3+7>>>3)<=(o=n.opt_len+3+7>>>3)&&(o=u)):o=u=t+5,t+4<=o&&-1!==i?e8(n,i,t,s):4===n.strategy||u===o?(bc(n,2+(s?1:0),3),Jv(n,Ku,Z2)):(bc(n,4+(s?1:0),3),function(n,i,t,s){var o;for(bc(n,i-257,5),bc(n,t-1,5),bc(n,s-4,4),o=0;o=0?n.block_start:-1,n.strstart-n.block_start,i),n.block_start=n.strstart,$p(n.strm)}function wo(n,i){n.pending_buf[n.pending++]=i}function Ym(n,i){n.pending_buf[n.pending++]=i>>>8&255,n.pending_buf[n.pending++]=255&i}function a8(n,i,t,s){var o=n.avail_in;return o>s&&(o=s),0===o?0:(n.avail_in-=o,_c(i,n.input,n.next_in,o,t),1===n.state.wrap?n.adler=c0(n.adler,i,o,t):2===n.state.wrap&&(n.adler=Ja(n.adler,i,o,t)),n.next_in+=o,n.total_in+=o,o)}function O5(n,i){var o,u,t=n.max_chain_length,s=n.strstart,b=n.prev_length,k=n.nice_match,ae=n.strstart>n.w_size-qu?n.strstart-(n.w_size-qu):0,q=n.window,Se=n.w_mask,yt=n.prev,at=n.strstart+258,Ht=q[s+b-1],sn=q[s+b];n.prev_length>=n.good_match&&(t>>=2),k>n.lookahead&&(k=n.lookahead);do{if(q[(o=i)+b]===sn&&q[o+b-1]===Ht&&q[o]===q[s]&&q[++o]===q[s+1]){s+=2,o++;do{}while(q[++s]===q[++o]&&q[++s]===q[++o]&&q[++s]===q[++o]&&q[++s]===q[++o]&&q[++s]===q[++o]&&q[++s]===q[++o]&&q[++s]===q[++o]&&q[++s]===q[++o]&&sb){if(n.match_start=i,b=u,u>=k)break;Ht=q[s+b-1],sn=q[s+b]}}}while((i=yt[i&Se])>ae&&0!=--t);return b<=n.lookahead?b:n.lookahead}function X2(n){var t,s,o,u,b,i=n.w_size;do{if(u=n.window_size-n.lookahead-n.strstart,n.strstart>=i+(i-qu)){_c(n.window,n.window,i,i,0),n.match_start-=i,n.strstart-=i,n.block_start-=i,t=s=n.hash_size;do{o=n.head[--t],n.head[t]=o>=i?o-i:0}while(--s);t=s=i;do{o=n.prev[--t],n.prev[t]=o>=i?o-i:0}while(--s);u+=i}if(0===n.strm.avail_in)break;if(s=a8(n.strm,n.window,n.strstart+n.lookahead,u),n.lookahead+=s,n.lookahead+n.insert>=3)for(n.ins_h=n.window[b=n.strstart-n.insert],n.ins_h=(n.ins_h<n.pending_buf_size-5&&(t=n.pending_buf_size-5);;){if(n.lookahead<=1){if(X2(n),0===n.lookahead&&0===i)return 1;if(0===n.lookahead)break}n.strstart+=n.lookahead,n.lookahead=0;var s=n.block_start+t;if((0===n.strstart||n.strstart>=s)&&(n.lookahead=n.strstart-s,n.strstart=s,Xl(n,!1),0===n.strm.avail_out)||n.strstart-n.block_start>=n.w_size-qu&&(Xl(n,!1),0===n.strm.avail_out))return 1}return n.insert=0,4===i?(Xl(n,!0),0===n.strm.avail_out?3:4):(n.strstart>n.block_start&&Xl(n,!1),1)}function l8(n,i){for(var t,s;;){if(n.lookahead=3&&(n.ins_h=(n.ins_h<=3)if(s=B1(n,n.strstart-n.match_start,n.match_length-3),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=3){n.match_length--;do{n.strstart++,n.ins_h=(n.ins_h<=3&&(n.ins_h=(n.ins_h<4096)&&(n.match_length=2)),n.prev_length>=3&&n.match_length<=n.prev_length){o=n.strstart+n.lookahead-3,s=B1(n,n.strstart-1-n.prev_match,n.prev_length-3),n.lookahead-=n.prev_length-1,n.prev_length-=2;do{++n.strstart<=o&&(n.ins_h=(n.ins_h<n,n};function pS(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=yc(1146),this.dyn_dtree=yc(122),this.bl_tree=yc(78),Up(this.dyn_ltree),Up(this.dyn_dtree),Up(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=yc(16),this.heap=yc(573),Up(this.heap),this.heap_len=0,this.heap_max=0,this.depth=yc(573),Up(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function fS(n){var i=function(n){var i;return n&&n.state?(n.total_in=n.total_out=0,n.data_type=2,(i=n.state).pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?42:113,n.adler=2===i.wrap?0:1,i.last_flush=0,function(n){o3||(function(){var n,i,t,s,o,u=new Array(16);for(Q2(Ku=new Array(576)),Q2(Z2=new Array(60)),Q2(m0=new Array(512)),Q2(J2=new Array(256)),Q2(Hm=new Array(29)),Q2(Vm=new Array(30)),t=0,s=0;s<28;s++)for(Hm[s]=t,n=0;n<1<>=7;s<30;s++)for(Vm[s]=o<<7,n=0;n<1<5||i<0)return n?Du(n,-2):-2;if(s=n.state,!n.output||!n.input&&0!==n.avail_in||666===s.status&&4!==i)return Du(n,0===n.avail_out?-5:-2);if(s.strm=n,t=s.last_flush,s.last_flush=i,42===s.status)if(2===s.wrap)n.adler=0,wo(s,31),wo(s,139),wo(s,8),s.gzhead?(wo(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),wo(s,255&s.gzhead.time),wo(s,s.gzhead.time>>8&255),wo(s,s.gzhead.time>>16&255),wo(s,s.gzhead.time>>24&255),wo(s,9===s.level?2:s.strategy>=2||s.level<2?4:0),wo(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(wo(s,255&s.gzhead.extra.length),wo(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(n.adler=Ja(n.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):(wo(s,0),wo(s,0),wo(s,0),wo(s,0),wo(s,0),wo(s,9===s.level?2:s.strategy>=2||s.level<2?4:0),wo(s,3),s.status=113);else{var b=8+(s.w_bits-8<<4)<<8;b|=(s.strategy>=2||s.level<2?0:s.level<6?1:6===s.level?2:3)<<6,0!==s.strstart&&(b|=32),b+=31-b%31,s.status=113,Ym(s,b),0!==s.strstart&&(Ym(s,n.adler>>>16),Ym(s,65535&n.adler)),n.adler=1}if(69===s.status)if(s.gzhead.extra){for(o=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>o&&(n.adler=Ja(n.adler,s.pending_buf,s.pending-o,o)),$p(n),o=s.pending,s.pending!==s.pending_buf_size));)wo(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>o&&(n.adler=Ja(n.adler,s.pending_buf,s.pending-o,o)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(73===s.status)if(s.gzhead.name){o=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>o&&(n.adler=Ja(n.adler,s.pending_buf,s.pending-o,o)),$p(n),o=s.pending,s.pending===s.pending_buf_size)){u=1;break}u=s.gzindexo&&(n.adler=Ja(n.adler,s.pending_buf,s.pending-o,o)),0===u&&(s.gzindex=0,s.status=91)}else s.status=91;if(91===s.status)if(s.gzhead.comment){o=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>o&&(n.adler=Ja(n.adler,s.pending_buf,s.pending-o,o)),$p(n),o=s.pending,s.pending===s.pending_buf_size)){u=1;break}u=s.gzindexo&&(n.adler=Ja(n.adler,s.pending_buf,s.pending-o,o)),0===u&&(s.status=103)}else s.status=103;if(103===s.status&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&$p(n),s.pending+2<=s.pending_buf_size&&(wo(s,255&n.adler),wo(s,n.adler>>8&255),n.adler=0,s.status=113)):s.status=113),0!==s.pending){if($p(n),0===n.avail_out)return s.last_flush=-1,0}else if(0===n.avail_in&&A5(i)<=A5(t)&&4!==i)return Du(n,-5);if(666===s.status&&0!==n.avail_in)return Du(n,-5);if(0!==n.avail_in||0!==s.lookahead||0!==i&&666!==s.status){var ae=2===s.strategy?function(n,i){for(var t;;){if(0===n.lookahead&&(X2(n),0===n.lookahead)){if(0===i)return 1;break}if(n.match_length=0,t=B1(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,t&&(Xl(n,!1),0===n.strm.avail_out))return 1}return n.insert=0,4===i?(Xl(n,!0),0===n.strm.avail_out?3:4):n.last_lit&&(Xl(n,!1),0===n.strm.avail_out)?1:2}(s,i):3===s.strategy?function(n,i){for(var t,s,o,u,b=n.window;;){if(n.lookahead<=258){if(X2(n),n.lookahead<=258&&0===i)return 1;if(0===n.lookahead)break}if(n.match_length=0,n.lookahead>=3&&n.strstart>0&&(s=b[o=n.strstart-1])===b[++o]&&s===b[++o]&&s===b[++o]){u=n.strstart+258;do{}while(s===b[++o]&&s===b[++o]&&s===b[++o]&&s===b[++o]&&s===b[++o]&&s===b[++o]&&s===b[++o]&&s===b[++o]&&on.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=3?(t=B1(n,1,n.match_length-3),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(t=B1(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),t&&(Xl(n,!1),0===n.strm.avail_out))return 1}return n.insert=0,4===i?(Xl(n,!0),0===n.strm.avail_out?3:4):n.last_lit&&(Xl(n,!1),0===n.strm.avail_out)?1:2}(s,i):c3()[s.level].func(s,i);if((3===ae||4===ae)&&(s.status=666),1===ae||3===ae)return 0===n.avail_out&&(s.last_flush=-1),0;if(2===ae&&(1===i?function(n){bc(n,2,3),$h(n,256,Ku),function(n){16===n.bi_valid?(Gm(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=255&n.bi_buf,n.bi_buf>>=8,n.bi_valid-=8)}(n)}(s):5!==i&&(e8(s,0,0,!1),3===i&&(Up(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),$p(n),0===n.avail_out))return s.last_flush=-1,0}return 4!==i?0:s.wrap<=0?1:(2===s.wrap?(wo(s,255&n.adler),wo(s,n.adler>>8&255),wo(s,n.adler>>16&255),wo(s,n.adler>>24&255),wo(s,255&n.total_in),wo(s,n.total_in>>8&255),wo(s,n.total_in>>16&255),wo(s,n.total_in>>24&255)):(Ym(s,n.adler>>>16),Ym(s,65535&n.adler)),$p(n),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?0:1)}var d8=Object.prototype.toString;class u8{constructor(i){this.options=R4({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},i||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y2,this.strm.avail_out=0;var s=function(n,i,t,s,o,u){if(!n)return-2;var b=1;if(-1===i&&(i=6),s<0?(b=0,s=-s):s>15&&(b=2,s-=16),o<1||o>9||8!==t||s<8||s>15||i<0||i>9||u<0||u>4)return Du(n,-2);8===s&&(s=9);var k=new pS;return n.state=k,k.strm=n,k.wrap=b,k.gzhead=null,k.w_bits=s,k.w_size=1<=s.w_size&&(0===b&&(Up(s.head),s.strstart=0,s.block_start=0,s.insert=0),Se=xu(s.w_size),_c(Se,i,t-s.w_size,s.w_size,0),i=Se,t=s.w_size),k=n.avail_in,ae=n.next_in,q=n.input,n.avail_in=t,n.next_in=0,n.input=i,X2(s);s.lookahead>=3;){o=s.strstart,u=s.lookahead-2;do{s.ins_h=(s.ins_h<0||0===s.avail_out)&&1!==u);return 4===b?(u=function(n){var i;return n&&n.state?42!==(i=n.state.status)&&69!==i&&73!==i&&91!==i&&103!==i&&113!==i&&666!==i?Du(n,-2):(n.state=null,113===i?Du(n,-3):0):-2}(this.strm),this.onEnd(u),this.ended=!0,0===u):(2===b&&(this.onEnd(0),s.avail_out=0),!0)}onData(i){this.chunks.push(i)}onEnd(i){0===i&&(this.result="string"===this.options.to?this.chunks.join(""):l0(this.chunks)),this.chunks=[],this.err=i,this.msg=this.strm.msg}}var ba={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function Zp(n,i){n=n.toLowerCase(),ba[n]=function(){return ba[i]},ba[n+"|bold"]=function(){return ba[i+"|bold"]},ba[n+"|italic"]=function(){return ba[i+"|italic"]},ba[n+"|bold|italic"]=function(){return ba[i+"|bold|italic"]}}Zp("Times New Roman","serif"),Zp("Courier New","monospace"),Zp("Arial","sans-serif"),Zp("Helvetica","sans-serif"),Zp("Verdana","sans-serif"),Zp("Tahoma","sans-serif"),Zp("Georgia","sans-serif"),Zp("Monaco","monospace"),Zp("Andale Mono","monospace");const g3=class extends D1.Z{constructor(i){super(),this._size=i,this._length=0,this._map={}}put(i,t){const s=this._map,o={key:i,value:t};s[i]=o,this._head?(this._tail.newer=o,o.older=this._tail,this._tail=o):this._head=this._tail=o,this._length>=this._size?(s[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}get(i){const t=this._map[i];if(t)return t===this._head&&t!==this._tail&&(this._head=t.newer,this._head.older=null),t!==this._tail&&(t.older&&(t.older.newer=t.newer,t.newer.older=t.older),t.older=this._tail,t.newer=null,this._tail.newer=t,this._tail=t),t.value}},E8=/\r?\n|\r|\t/g,ry={baselineMarkerSize:1};let k8;"undefined"!=typeof document&&(k8=document.createElement("div"),k8.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");class Km extends D1.Z{constructor(i){super(),this._cache=new g3(1e3),this.options=Object.assign({},ry,i)}measure(i,t,s={}){if(null==i)return{width:0,height:0,baseline:0};const o=function(n){const i=[];for(let t in n)i.push(t+n[t]);return i.sort().join("")}(t),u=function(n){let i=2166136261;for(let t=0;t>>0}(i+o),b=this._cache.get(u);if(b)return b;const k={width:0,height:0,baseline:0},ae=s.box||k8,q=this._baselineMarker().cloneNode(!1);for(let yt in t){let at=t[yt];void 0!==at&&(ae.style[yt]=at)}const Se=!1!==s.normalizeText?function(n){return String(n).replace(E8," ")}(i):String(i);return ae.textContent=Se,ae.appendChild(q),document.body.appendChild(ae),Se.length&&(k.width=ae.offsetWidth-this.options.baselineMarkerSize,k.height=ae.offsetHeight,k.baseline=q.offsetTop+this.options.baselineMarkerSize),k.width>0&&k.height>0&&this._cache.put(u,k),ae.parentNode.removeChild(ae),k}_baselineMarker(){const i=document.createElement("div");return i.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",i}}Km.current=new Km;S(1174);const ay={}.toString;class og extends Yd{constructor(i,t=""){super(),this.prefix=t;for(let s in i){let o=i[s];o=this._wrap(o,s),this[s]=o}}get(i){const t=i.split(".");let s=this;for(;t.length&&s;)s=s[t.shift()];return s}set(i,t){this.get(i)!==t&&(this._set(i,this._wrap(t,i)),this.optionsChange({field:this.prefix+i,value:t}))}_set(i,t){const s=i.indexOf(".")>=0;let o=this,u=i;if(s){const b=u.split(".");let k=this.prefix;for(;b.length>1;){u=b.shift(),k+=u+".";let ae=o[u];ae||(ae=new og({},k),ae.addObserver(this),o[u]=ae),o=ae}u=b[0]}o._clear(u),o[u]=t}_clear(i){const t=this[i];t&&t.removeObserver&&t.removeObserver(this)}_wrap(i,t){const s=ay.call(i);let o=i;return null!==o&&no(o)&&"[object Object]"===s&&(!(i instanceof og)&&!(i instanceof D1.Z)&&(o=new og(o,this.prefix+t+".")),o.addObserver(this)),o}}const ly=og;let wC=1;function v3(){return"kdef"+wC++}function R8(n){return""===n||null===n||"none"===n||"transparent"===n||!no(n)}const j1=class extends Yd{get nodeType(){return"Rect"}constructor(i){super(),this._initOptions(i)}_initOptions(i={}){const{clip:t,transform:s}=i;s&&(i.transform=Cu(s)),t&&!t.id&&(t.id=v3()),this.options=new ly(i),this.options.addObserver(this)}transform(i){if(!no(i))return this.options.get("transform");this.options.set("transform",Cu(i))}parentTransform(){let t,i=this;for(;i.parent;){i=i.parent;let s=i.transform();s&&(t=s.matrix().multiplyCopy(t||jc.unit()))}if(t)return Cu(t)}currentTransform(i=this.parentTransform()){const s=fd(this.transform());let u,o=fd(i);if(u=s&&o?o.multiplyCopy(s):s||o,u)return Cu(u)}visible(i){return no(i)?(this.options.set("visible",i),this):!1!==this.options.get("visible")}clip(i){const t=this.options;return no(i)?(i&&!i.id&&(i.id=v3()),t.set("clip",i),this):t.get("clip")}opacity(i){return no(i)?(this.options.set("opacity",i),this):function(n,i){return no(n)?n:1}(this.options.get("opacity"))}clippedBBox(i){const t=this._clippedBBox(i);if(t){const s=this.clip();return s?Za.intersect(t,s.bbox(i)):t}}containsPoint(i,t){if(this.visible()){const s=this.currentTransform(t);let o=i;return s&&(o=i.transformCopy(s.matrix().invert())),this._hasFill()&&this._containsPoint(o)||this._isOnPath&&this._hasStroke()&&this._isOnPath(o)}return!1}_hasFill(){const i=this.options.fill;return i&&!R8(i.color)}_hasStroke(){const i=this.options.stroke;return i&&i.width>0&&!R8(i.color)}_clippedBBox(i){return this.bbox(i)}},_3=n=>class extends n{fill(i,t){const s=this.options;if(no(i)){if(i&&"Gradient"!==i.nodeType){const o={color:i};no(t)&&(o.opacity=t),s.set("fill",o)}else s.set("fill",i);return this}return s.get("fill")}stroke(i,t,s){return no(i)?(this.options.set("stroke.color",i),no(t)&&this.options.set("stroke.width",t),no(s)&&this.options.set("stroke.opacity",s),this):this.options.get("stroke")}};function yS(n){const i="_"+n;return function(t){return no(t)?(this._observerField(i,Zs.create(t)),this.geometryChange(),this):this[i]}}const P8=(n,i)=>{const t=class extends n{};return function(n,i){for(let t=0;tclass extends n{bbox(i){const t=fd(this.currentTransform(i)),s=t?t.toString():xS;let o;this._bboxCache&&this._matrixHash===s?o=this._bboxCache.clone():(o=this._bbox(t),this._bboxCache=o?o.clone():null,this._matrixHash=s);const u=this.options.get("stroke.width");return u&&o&&o.expand(u/2),o}geometryChange(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}};function My(n){const i="_"+n;return function(t){return no(t)?(this._observerField(i,t),this.geometryChange(),this):this[i]}}P8(Yd,["anchor","controlIn","controlOut"]),_3(fy(j1)),_3(fy(j1));const Y8=(n,i=["geometry"])=>{const t=class extends n{};return function(n,i){for(let t=0;t{const t=class extends n{};return function(n,i){for(let t=0;t1?new I3(i[0],i[1],i[2]):new I3(i.offset,i.color,i.opacity),t}}}const Q8=I3,e6=class extends Yd{get nodeType(){return"Gradient"}constructor(i={}){super(),this.stops=new BC(this._createStops(i.stops)),this.stops.addObserver(this),this._userSpace=i.userSpace,this.id=v3()}userSpace(i){return no(i)?(this._userSpace=i,this.optionsChange(),this):this._userSpace}_createStops(i=[]){const t=[];for(let s=0;s=0&&this.stops.splice(t,1)}optionsChange(i){this.trigger("optionsChange",{field:"gradient"+(i?"."+i.field:""),value:this})}geometryChange(){this.optionsChange()}};P8(e6,["start","end"]),_3(fy(Y8(j1)));var kr={};kr._root=kr,"undefined"!=typeof Element&&Element.prototype&&Element,"undefined"!=typeof window&&window.kendo&&window;!function(){var n={}}();function i6(n,i){return Object.prototype.hasOwnProperty.call(n,i)}Object.create(null),Object.create(null),P8(e6,["center"]);const BS=()=>document.createElement("a"),mI=()=>"download"in BS();function vI(n,i){let t=n;if("string"==typeof n){const s=n.split(";base64,"),o=s[0],u=atob(s[1]),b=new Uint8Array(u.length);for(let k=0;kURL.revokeObjectURL(t))}function yI(n,i,t){if(!t.proxyURL)return;const s=document.createElement("form");s.setAttribute("action",t.proxyURL),s.setAttribute("method","POST"),s.setAttribute("target",t.proxyTarget||"_self");const o=t.proxyData||{};o.fileName=i;const u=n.split(";base64,");o.contentType=u[0].replace("data:",""),o.base64=u[1];for(let b in o)if(o.hasOwnProperty(b)){const k=document.createElement("input");k.setAttribute("type","hidden"),k.setAttribute("name",b),k.setAttribute("value",o[b]),s.appendChild(k)}document.body.appendChild(s),s.submit(),document.body.removeChild(s)}function xo(n,i,t,s){var b,o=arguments.length,u=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(n,i,t,s);else for(var k=n.length-1;k>=0;k--)(b=n[k])&&(u=(o<3?b(u):o>3?b(i,t,u):b(i,t))||u);return o>3&&u&&Object.defineProperty(i,t,u),u}function Y1(n,i){return function(t,s){i(t,s,n)}}function Mo(n,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,i)}let jS={toString:n=>n};const GS=class{static register(i){jS=i}static toString(i,t){return jS.toString(i,t)}};let US={compile:function(n){return n}};const jy=class{static register(i){US=i}static compile(i){return US.compile(i)}},DI=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,c_={},$S="undefined";function YS(n){if(c_[n])return c_[n];const i=[];return n.replace(DI,function(t,s,o,u){i.push(typeof s!==$S?s:o||u)}),c_[n]=function(t){let s=t;for(let o=0;o{const u=i(s,o);return null!=u&&t.push(u),t},[])}function TI(n){return`${n.title}: ${n.value}`}function a7(n,i){const t=[];for(let s=0;sn,n};const Z1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Gy(n){return n}function l7(n,i){for(var t=0;t{let n;try{n=Yc.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(i){n=!1}return WS=()=>n,n};function Uy(n){var i=65536,t=a6(n),s=!0;if("uint8array"===t&&(s=WS()),s)for(;i>1;)try{return LI(n,t,i)}catch(o){i=Math.floor(i/2)}return function(n){for(var i="",t=0;t>4,t=(15&u)<<4|b>>2,s=(3&b)<<6|k,at[q++]=i,64!==b&&(at[q++]=t),64!==k&&(at[q++]=s);return at}(b):t&&!0!==s&&(b=function(n){return l7(n,Yc.uint8array?new Uint8Array(n.length):new Array(n.length))}(b))),b):W1.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})};class Jd{constructor(i){this.name=i||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}push(i){this.emit("data",i)}end(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0}error(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)}on(i,t){return this._listeners[i].push(t),this}cleanUp(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]}emit(i,t){if(this._listeners[i])for(var s=0;s "+i:i}}let u7=function(n){const i=new Array(256);for(let t=0;t<256;t++)i[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;return i[254]=i[254]=1,u7=function(t){return i[t]},i[n]};const u_=function(i){return function(n){var i,t,s,o,u,b=n.length,k=0;for(o=0;o>>6,i[u++]=128|63&t):t<65536?(i[u++]=224|t>>>12,i[u++]=128|t>>>6&63,i[u++]=128|63&t):(i[u++]=240|t>>>18,i[u++]=128|t>>>12&63,i[u++]=128|t>>>6&63,i[u++]=128|63&t);return i}(i)},l6=function(i){return function(n){var i,t,s,o,u=n.length,b=new Array(2*u);for(t=0,i=0;i4)b[t++]=65533,i+=o-1;else{for(s&=2===o?31:3===o?15:7;o>1&&i1?b[t++]=65533:s<65536?b[t++]=s:(b[t++]=55296|(s-=65536)>>10&1023,b[t++]=56320|1023&s)}return b.length!==t&&(b.subarray?b=b.subarray(0,t):b.length=t),NI(b)}(i=ec(Yc.uint8array?"uint8array":"array",i))};class jI extends Jd{constructor(){super("utf-8 decode"),this.leftOver=null}processChunk(i){var t=ec(Yc.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(Yc.uint8array){var s=t;(t=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),t.set(s,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(n,i){var t;for((i=i||n.length)>n.length&&(i=n.length),t=i-1;t>=0&&128==(192&n[t]);)t--;return t<0||0===t?i:t+u7(n[t])>i?t:i}(t),u=t;o!==t.length&&(Yc.uint8array?(u=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(u=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:l6(u),meta:i.meta})}flush(){this.leftOver&&this.leftOver.length&&(this.push({data:l6(this.leftOver),meta:{}}),this.leftOver=null)}}class qS extends Jd{constructor(){super("utf-8 encode")}processChunk(i){this.push({data:u_(i.data),meta:i.meta})}}class GI extends Jd{constructor(i){super("ConvertWorker to "+i),this.destType=i}processChunk(i){this.push({data:ec(this.destType,i.data),meta:i.meta})}}function YI(n,i){return new W1.Promise(function(t,s){var o=[],u=n._internalType,b=n._outputType,k=n._mimeType;n.on("data",function(ae,q){o.push(ae),i&&i(q)}).on("error",function(ae){o=[],s(ae)}).on("end",function(){try{var ae=function(n,i,t){switch(n){case"blob":return function(n,i){return d_("blob"),new Blob([n],{type:i})}(ec("arraybuffer",i),t);case"base64":return function(n){let t,s,o,u,b,k,ae,i=[],q=0,Se=n.length,yt=Se,at="string"!=typeof n;for(;q>2,b=(3&t)<<4|s>>4,k=yt>1?(15&s)<<2|o>>6:64,ae=yt>2?63&o:64,i.push(Z1.charAt(u)+Z1.charAt(b)+Z1.charAt(k)+Z1.charAt(ae));return i.join("")}(i);default:return ec(n,i)}}(b,function(n,i){var t,s=0,o=null,u=0;for(t=0;t=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,s);break;case"uint8array":t=this.data.subarray(this.index,s);break;case"array":t=this.data.slice(this.index,s)}return this.index=s,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})}}class p7 extends Jd{constructor(i){super("DataLengthProbe for "+i),this.propName=i,this.withStreamInfo(i,0)}processChunk(i){i&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+i.data.length),super.processChunk(i)}}let f7=function(){const n=[];for(let i=0;i<256;i++){let t=i;for(let s=0;s<8;s++)t=1&t?3988292384^t>>>1:t>>>1;n[i]=t}return f7=function(){return n},n};function h_(n,i){return void 0!==n&&n.length?"string"!==a6(n)?function(n,i,t,s){const o=f7();let u=0+t;n^=-1;for(let b=0;b>>8^o[255&(n^i[b])];return-1^n}(0|i,n,n.length):function(n,i,t,s){const o=f7();let u=0+t;n^=-1;for(let b=0;b>>8^o[255&(n^i.charCodeAt(b))];return-1^n}(0|i,n,n.length):0}class nw extends Jd{constructor(){super("Crc32Probe"),this.withStreamInfo("crc32",0)}processChunk(i){this.streamInfo.crc32=h_(i.data,this.streamInfo.crc32||0),this.push(i)}}class F3{constructor(i,t,s,o,u){this.compressedSize=i,this.uncompressedSize=t,this.crc32=s,this.compression=o,this.compressedContent=u}getContentWorker(){var i=new h7(W1.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new p7("data_length")),t=this;return i.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),i}getCompressedWorker(){return new h7(W1.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}static createWorkerFrom(i,t,s){return i.pipe(new nw).pipe(new p7("uncompressedSize")).pipe(t.compressWorker(s)).pipe(new p7("compressedSize")).withStreamInfo("compression",t)}}class XI{constructor(i,t,s){this.name=i,this.dir=s.dir,this.date=s.date,this.comment=s.comment,this.unixPermissions=s.unixPermissions,this.dosPermissions=s.dosPermissions,this._data=t,this._dataBinary=s.binary,this.options={compression:s.compression,compressionOptions:s.compressionOptions}}internalStream(i){var t=null,s="string";try{if(!i)throw new Error("No output type specified.");var o="string"===(s=i.toLowerCase())||"text"===s;("binarystring"===s||"text"===s)&&(s="string"),t=this._decompressWorker();var u=!this._dataBinary;u&&!o&&(t=t.pipe(new qS)),!u&&o&&(t=t.pipe(new jI))}catch(b){(t=new Jd("error")).error(b)}return new XS(t,s,"")}async(i,t){return this.internalStream(i).accumulate(t)}_compressWorker(i,t){if(this._data instanceof F3&&this._data.compression.magic===i.magic)return this._data.getCompressedWorker();var s=this._decompressWorker();return this._dataBinary||(s=s.pipe(new qS)),F3.createWorkerFrom(s,i,t)}_decompressWorker(){return this._data instanceof F3?this._data.getContentWorker():this._data instanceof Jd?this._data:new h7(this._data)}}let iw=function(){const i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?"uint8array":"array";iw=function(){return i}};class sw extends Jd{constructor(i,t){super("FlateWorker/"+i),this._pako=null,this._pakoAction=i,this._pakoOptions=t,this.meta={}}processChunk(i){this.meta=i.meta,null===this._pako&&this._createPako(),this._pako.push(ec(iw(),i.data),!1)}flush(){super.flush(),null===this._pako&&this._createPako(),this._pako.push([],!0)}cleanUp(){super.cleanUp(),this._pako=null}_createPako(){const i={raw:!0,level:this._pakoOptions.level||-1};this._pako="Deflate"===this._pakoAction?new u8(i):new zm(i),this._pako.onData=t=>{this.push({data:t,meta:this.meta})}}}var eD={magic:"\b\0",compressWorker:function(n){return new sw("Deflate",n)},uncompressWorker:function(){return new sw("Inflate",{})}},p_={STORE:{magic:"\0\0",compressWorker:function(){return new Jd("STORE compression")},uncompressWorker:function(){return new Jd("STORE decompression")}},DEFLATE:eD};const g7="PK\x03\x04",m7="PK\x01\x02",v7="PK\x05\x06",_7="PK\x06\x06";var Ta=function(n,i){var s,t="";for(s=0;s>>=8;return t},ow=function(n,i,t,s,o,u){var oi,Pn,b=n.file,k=n.compression,ae=u!==u_,q=ec("string",u(b.name)),Se=ec("string",u_(b.name)),yt=b.comment,at=ec("string",u(yt)),Ht=ec("string",u_(yt)),sn=Se.length!==b.name.length,jn=Ht.length!==yt.length,Dn="",fi="",zn="",Vn=b.dir,ui=b.date,Xn={crc32:0,compressedSize:0,uncompressedSize:0};(!i||t)&&(Xn.crc32=n.crc32,Xn.compressedSize=n.compressedSize,Xn.uncompressedSize=n.uncompressedSize);var Li=0;i&&(Li|=8),!ae&&(sn||jn)&&(Li|=2048);var es=0,Oi=0;Vn&&(es|=16),"UNIX"===o?(Oi=798,es|=function(n,i){var t=n;return n||(t=i?16893:33204),(65535&t)<<16}(b.unixPermissions,Vn)):(Oi=20,es|=function(n,i){return 63&(n||0)}(b.dosPermissions)),oi=ui.getUTCHours(),oi<<=6,oi|=ui.getUTCMinutes(),oi<<=5,oi|=ui.getUTCSeconds()/2,Pn=ui.getUTCFullYear()-1980,Pn<<=4,Pn|=ui.getUTCMonth()+1,Pn<<=5,Pn|=ui.getUTCDate(),sn&&(fi=Ta(1,1)+Ta(h_(q),4)+Se,Dn+="up"+Ta(fi.length,2)+fi),jn&&(zn=Ta(1,1)+Ta(h_(at),4)+Ht,Dn+="uc"+Ta(zn.length,2)+zn);var Gn="";return Gn+="\n\0",Gn+=Ta(Li,2),Gn+=k.magic,Gn+=Ta(oi,2),Gn+=Ta(Pn,2),Gn+=Ta(Xn.crc32,4),Gn+=Ta(Xn.compressedSize,4),Gn+=Ta(Xn.uncompressedSize,4),Gn+=Ta(q.length,2),Gn+=Ta(Dn.length,2),{fileRecord:g7+Gn+q+Dn,dirRecord:m7+Ta(Oi,2)+Gn+Ta(at.length,2)+"\0\0\0\0"+Ta(es,4)+Ta(s,4)+q+Dn+at}},rD=function(n){return"PK\x07\b"+Ta(n.crc32,4)+Ta(n.compressedSize,4)+Ta(n.uncompressedSize,4)};class oD extends Jd{constructor(i,t,s,o){super("ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=s,this.encodeFileName=o,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}push(i){var t=i.meta.percent||0,s=this.entriesCount,o=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,super.push({data:i.data,meta:{currentFile:this.currentFile,percent:s?(t+100*(s-o-1))/s:100}}))}openedSource(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var t=this.streamFiles&&!i.file.dir;if(t){var s=ow(i,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:s.fileRecord,meta:{percent:0}})}else this.accumulate=!0}closedSource(i){this.accumulate=!1;var t=this.streamFiles&&!i.file.dir,s=ow(i,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(s.dirRecord),t)this.push({data:rD(i),meta:{percent:100}});else for(this.push({data:s.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null}flush(){for(var i=this.bytesWritten,t=0;t=this.index;s--)t=(t<<8)+this.byteAt(s);return this.index+=i,t}readString(i){return ec("string",this.readData(i))}readData(i){}lastIndexOfSignature(i){}readAndCheckSignature(i){}readDate(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}}class lw extends aw{constructor(i){super(i);for(var t=0;t=0;--b)if(this.data[b]===t&&this.data[b+1]===s&&this.data[b+2]===o&&this.data[b+3]===u)return b-this.zero;return-1}readAndCheckSignature(i){var t=i.charCodeAt(0),s=i.charCodeAt(1),o=i.charCodeAt(2),u=i.charCodeAt(3),b=this.readData(4);return t===b[0]&&s===b[1]&&o===b[2]&&u===b[3]}readData(i){if(this.checkOffset(i),0===i)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t}}class cD extends aw{constructor(i){super(i)}byteAt(i){return this.data.charCodeAt(this.zero+i)}lastIndexOfSignature(i){return this.data.lastIndexOf(i)-this.zero}readAndCheckSignature(i){return i===this.readData(4)}readData(i){this.checkOffset(i);const t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t}}class dD extends lw{constructor(i){super(i)}readData(i){if(this.checkOffset(i),0===i)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t}}function Qy(n){const i=a6(n);return d_(i),"string"!==i||Yc.uint8array?Yc.uint8array?new dD(ec("uint8array",n)):new lw(ec("array",n)):new cD(n)}class fD{constructor(i,t){this.options=i,this.loadOptions=t}isEncrypted(){return 1==(1&this.bitFlag)}useUTF8(){return 2048==(2048&this.bitFlag)}readLocalPart(i){var t,s;if(i.skip(22),this.fileNameLength=i.readInt(2),s=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(s),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=function(n){for(var i in p_)if(p_.hasOwnProperty(i)&&p_[i].magic===n)return p_[i];return null}(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+c7(this.compressionMethod)+" unknown (inner file : "+ec("string",this.fileName)+")");this.decompressed=new F3(this.compressedSize,this.uncompressedSize,this.crc32,t,i.readData(this.compressedSize))}readCentralPart(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var t=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(t),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)}processAttributes(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===i&&(this.dosPermissions=63&this.externalFileAttributes),3===i&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&"/"===this.fileNameStr.slice(-1)&&(this.dir=!0)}parseZIP64ExtraField(i){if(this.extraFields[1]){var t=Qy(this.extraFields[1].value);-1===this.uncompressedSize&&(this.uncompressedSize=t.readInt(8)),-1===this.compressedSize&&(this.compressedSize=t.readInt(8)),-1===this.localHeaderOffset&&(this.localHeaderOffset=t.readInt(8)),-1===this.diskNumberStart&&(this.diskNumberStart=t.readInt(4))}}readExtraFields(i){var s,o,u,t=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index1)throw new Error("Multi-volumes zip are not supported")}readLocalFiles(){var i,t;for(i=0;i0)this.isSignature(s,m7)||(this.reader.zero=u);else if(u<0)throw new Error("Corrupted zip: missing "+Math.abs(u)+" bytes.")}prepareReader(i){this.reader=Qy(i)}load(i){this.prepareReader(i),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}}function mD(n){return new W1.Promise(function(i,t){var s=n.decompressed.getContentWorker().pipe(new nw);s.on("error",function(o){t(o)}).on("end",function(){s.streamInfo.crc32!==n.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}function vD(n,i){var t=this;return i=d7(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:l6}),KS("the loaded zip file",n,!0,i.optimizedBinaryString,i.base64).then(function(s){var o=new gD(i);return o.load(s),o}).then(function(o){var u=[W1.Promise.resolve(o)],b=o.files;if(i.checkCRC32)for(var k=0;k0?n.substring(0,i):""},dw=function(n){return"/"!==n.slice(-1)&&(n+="/"),n},uw=function(n,i){return i=void 0===i||i,n=dw(n),this.files[n]||cw.call(this,n,null,{dir:!0,createFolders:i}),this.files[n]};function hw(n){return"[object RegExp]"===Object.prototype.toString.call(n)}class Wy{constructor(){if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){const i=new Wy;for(const t in this)"function"!=typeof this[t]&&(i[t]=this[t]);return i}}load(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}forEach(i){var t,s,o;for(t in this.files)o=this.files[t],(s=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&i(s,o)}filter(i){var t=[];return this.forEach(function(s,o){i(s,o)&&t.push(o)}),t}file(i,t,s){if(1===arguments.length){if(hw(i)){var o=i;return this.filter(function(b,k){return!k.dir&&o.test(b)})}var u=this.files[this.root+i];return u&&!u.dir?u:null}return cw.call(this,i=this.root+i,t,s),this}folder(i){if(!i)return this;if(hw(i))return this.filter(function(u,b){return b.dir&&i.test(u)});var s=uw.call(this,this.root+i),o=this.clone();return o.root=s.name,o}remove(i){var t=this.files[i=this.root+i];if(t||("/"!==i.slice(-1)&&(i+="/"),t=this.files[i]),t&&!t.dir)delete this.files[i];else for(var s=this.filter(function(u,b){return b.name.slice(0,i.length)===i}),o=0;o/g,">").replace(/\"/g,""").replace(/\'/g,"'")}function _w(n,i){let t="";for(let s=0;s{t+=i(n[s],s,o)});return t}const nh='\r',DD=`${nh}\n \n \n \n \n `,BD=n=>`${nh}\n\n ${Ea(n,(i,t)=>`\n \n \n ${i.col}\n ${i.colOffset}\n ${i.row}\n ${i.rowOffset}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n `)}\n`,ND=n=>`${nh}\n\n ${Ea(n,i=>`\n `)}\n`;function y7(n){const i=Math.floor(n/26)-1;return(i>=0?y7(i):"")+String.fromCharCode(65+n%26)}function R3(n,i){return y7(i)+(n+1)}function Zy(n,i){return"$"+y7(i)+"$"+(n+1)}function Jy(n){return(n.frozenRows||(n.freezePane||{}).rowSplit||1)-1}function b7(n){return n/7-Math.floor(128/7)/256}class UD{constructor(i,t,s,o){this.options=i,this._strings=t,this._styles=s,this._borders=o,this._validations={},this._comments=[],this._drawings=i.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map((u,b)=>Object.assign({},u,{rId:`link${b}`}))}relsToXML(){const i=this._hyperlinks,t=this._comments,s=this._drawings;if(i.length||t.length||s.length)return(({hyperlinks:n,comments:i,sheetIndex:t,drawings:s})=>`${nh}\n\n ${Ea(n,o=>`\n `)}\n ${i.length?`\n \n `:""}\n ${s.length?`\n `:""}\n`)({hyperlinks:i,comments:t,sheetIndex:this.options.sheetIndex,drawings:s})}toXML(i){const t=this.options.mergedCells||[],o=function(n,i){const t=[],s=[];!function(n,i){for(let t=0;t`${nh}\n\n ${oi&&Pn?``:""}\n\n \n \n ${i||n?`\n `:""}\n \n \n\n \n\n ${null!=at||t&&t.length>0?`\n \n ${t&&t.length?"":`\n `}\n ${Ea(t,(Dn,fi)=>{const zn="number"==typeof Dn.index?Dn.index+1:fi+1;return 0===Dn.width?``:``})}\n `:""}\n\n \n ${Ea(o,(Dn,fi)=>`\n \n ${Ea(Dn.data,Vn=>`\n \n ${null!=Vn.formula?function(n){return"string"==typeof n?`${ea(n)}`:`${ea(n.src)}`}(Vn.formula):""}\n ${null!=Vn.value?`${ea(Vn.value)}`:""}\n `)}\n \n `)}\n \n\n ${k?``:ae?c6(ae):""}\n\n ${b.length?`\n \n ${Ea(b,Dn=>``)}\n `:""}\n\n ${yt.length?`\n \n ${Ea(yt,Dn=>`\n \n ${Dn.formula1?`${ea(Dn.formula1)}`:""}\n ${Dn.formula2?`${ea(Dn.formula2)}`:""}\n `)}\n `:""}\n\n ${Se.length?`\n \n ${Ea(Se,Dn=>`\n `)}\n `:""}\n\n \n ${jn?``:""}\n ${sn?``:""}\n`)({frozenColumns:this.options.frozenColumns||q.colSplit,frozenRows:this.options.frozenRows||q.rowSplit,columns:this.options.columns,defaults:Se,data:o,index:i,mergeCells:t,autoFilter:u,filter:b,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:k,defaultCellStyleId:ae,rtl:void 0!==this.options.rtl?this.options.rtl:Se.rtl,legacyDrawing:this._comments.length?`vml${this.options.sheetIndex}`:null,drawing:this._drawings.length?`drw${this.options.sheetIndex}`:null,lastRow:yt,lastCol:at})}commentsXML(){if(this._comments.length)return(({comments:n})=>`${nh}\n\n \n \n \n \n ${Ea(n,i=>`\n \n \n \n \n \n \n \n \n \n ${ea(i.text)}\n \n \n `)}\n \n`)({comments:this._comments})}drawingsXML(i){if(this._drawings.length){let t={},s=this._drawings.map(o=>{let u=g_(o.topLeftCell),b=t[o.image];return b||(b=t[o.image]={rId:`img${o.image}`,target:i[o.image].target}),{col:u.col,colOffset:qy(o.offsetX),row:u.row,rowOffset:qy(o.offsetY),width:qy(o.width),height:qy(o.height),imageId:b.rId}});return{main:BD(s),rels:ND(t)}}}legacyDrawing(){if(this._comments.length)return(({comments:n})=>`\n \n \n \n \n ${Ea(n,i=>`\n \n \n \n \n \n ${i.anchor}\n False\n ${i.row}\n ${i.col}\n \n `)}\n`)({comments:this._comments})}_lookupString(i){const t="$"+i,s=this._strings.indexes[t];let o;return void 0!==s?o=s:(o=this._strings.indexes[t]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,o}_lookupStyle(i){const t=JSON.stringify(i);if("{}"===t)return 0;let s=f_(t,this._styles);return s<0&&(s=this._styles.push(t)-1),s+1}_lookupBorder(i){const t=JSON.stringify(i);if("{}"===t)return;let s=f_(t,this._borders);return s<0&&(s=this._borders.push(t)-1),s+1}_readCells(i){for(let t=0;t=i&&(i=t.index+1)}),i}const $D={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},YD={number:"decimal"},C7={General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70};function S7(n){let i=n;return i.length<6&&(i=i.replace(/(\w)/g,function(t,s){return s+s})),i=i.substring(1).toUpperCase(),i.length<8&&(i="FF"+i),i}class QD{constructor(i){this.options=i||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,this._imgId=0,this._sheets=Q1(this.options.sheets||[],(t,s)=>(t.defaults=this.options,t.sheetIndex=s+1,new UD(t,this._strings,this._styles,this._borders)))}imageFilename(i){const t=++this._imgId;switch(i){case"image/jpg":case"image/jpeg":return`image${t}.jpg`;case"image/png":return`image${t}.png`;case"image/gif":return`image${t}.gif`;default:return`image${t}.bin`}}toZIP(){const i=new Wy,t=i.folder("docProps");t.file("core.xml",(({creator:n,lastModifiedBy:i,created:t,modified:s})=>`${nh}\n \n ${ea(n)}\n ${ea(i)}\n ${ea(t)}\n ${ea(s)}\n`)({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()}));const s=this._sheets.length;t.file("app.xml",(({sheets:n})=>`${nh}\n\n Microsoft Excel\n 0\n false\n \n \n \n Worksheets\n \n \n ${n.length}\n \n \n \n \n ${Ea(n,(i,t)=>i.options.title?`${ea(i.options.title)}`:`Sheet${t+1}`)}\n \n false\n false\n false\n 14.0300\n`)({sheets:this._sheets})),i.folder("_rels").file(".rels",DD);const u=i.folder("xl");if(u.folder("_rels").file("workbook.xml.rels",(({count:n})=>`${nh}\n\n ${_w(n,i=>`\n `)}\n \n \n`)({count:s})),this._images){const Vn=u.folder("media");Object.keys(this._images).forEach(ui=>{const Xn=this._images[ui],Li=this.imageFilename(Xn.type);Vn.file(Li,Xn.data),Xn.target=`../media/${Li}`})}const k={};u.file("workbook.xml",(({sheets:n,filterNames:i,userNames:t})=>`${nh}\n\n \n \n \n \n \n \n ${Ea(n,({options:s},o)=>``)}\n \n ${i.length||t.length?`\n \n ${Ea(i,s=>`\n `)}\n ${Ea(t,s=>`\n `)}\n `:""}\n \n`)({sheets:this._sheets,filterNames:Q1(this._sheets,function(Vn,ui){const Xn=Vn.options,Li=Xn.name||Xn.title||"Sheet"+(ui+1);k[Li.toLowerCase()]=ui;const es=Xn.filter;if(es){if(es.ref){let Oi=es.ref.split(":"),Gn=g_(Oi[0]),ji=g_(Oi[1]);return{localSheetId:ui,name:Li,from:Zy(Gn.row,Gn.col),to:Zy(ji.row,ji.col)}}if(void 0!==es.from&&void 0!==es.to)return{localSheetId:ui,name:Li,from:Zy(Jy(Xn),es.from),to:Zy(Jy(Xn),es.to)}}}),userNames:Q1(this.options.names||[],function(Vn){return{name:Vn.localName,localSheetId:Vn.sheet?k[Vn.sheet.toLowerCase()]:null,value:Vn.value,hidden:Vn.hidden}})}));const ae=u.folder("worksheets"),q=u.folder("drawings"),Se=q.folder("_rels"),yt=ae.folder("_rels"),at=[],Ht=[];for(let Vn=0;Vn`${nh}\n\n \n ${Ea(n,(u,b)=>`\n `)}\n \n \n \n \n \n \n \n \n \n ${Ea(i,u=>`\n \n ${u.bold?"":""}\n ${u.italic?"":""}\n ${u.underline?"":""}\n \n ${u.color?``:''}\n ${u.fontFamily?`\n \n \n `:'\n \n \n \n '}\n `)}\n \n \n \n \n ${Ea(t,u=>"\n "+(u.background?`\n \n \n \n \n \n `:""))}\n \n \n \n ${Ea(s,ZD)}\n \n \n \n \n \n \n ${Ea(o,u=>`\n \n ${u.textAlign||u.verticalAlign||u.wrap?`\n \n `:""}\n \n `)}\n \n \n \n \n \n \n`)({fonts:Dn,fills:zn,formats:fi,borders:sn,styles:Q1(jn,function(Vn){const ui={};return oi(Vn)&&(ui.fontId=f_(Vn,Dn)+1),Vn.background&&(ui.fillId=f_(Vn,zn)+2),ui.textAlign=Vn.textAlign,ui.indent=Vn.indent,ui.verticalAlign=Vn.verticalAlign,ui.wrap=Vn.wrap,ui.borderId=Vn.borderId,Vn.format&&(ui.numFmtId=void 0!==C7[Vn.format]?C7[Vn.format]:165+f_(Vn,fi)),ui})})),u.file("sharedStrings.xml",(({count:n,uniqueCount:i,indexes:t})=>`${nh}\n\n ${Ea(Object.keys(t),s=>`\n ${ea(s.substring(1))}`)}\n`)(this._strings)),i.file("[Content_Types].xml",(({sheetCount:n,commentFiles:i,drawingFiles:t})=>`${nh}\n\n \n \n \n \n \n \n \n \n \n ${_w(n,s=>``)}\n ${Ea(i,s=>``)}\n ${Ea(t,s=>``)}\n \n \n`)({sheetCount:s,commentFiles:at,drawingFiles:Ht})),i}toDataURL(){const i=this.toZIP();return i.generateAsync?i.generateAsync(gw).then(mw):mw(i.generate(gw))}toBlob(){const i=this.toZIP();return i.generateAsync?i.generateAsync(MD):new Blob([i.generate(ID)],{type:fw})}}function Ky(n,i){let t="";return i&&(t+="<"+n+' style="'+function(n){let i="thin";return 2===n?i="medium":3===n&&(i="thick"),i}(i.size)+'">',i.color&&(t+=''),t+=""),t}function ZD(n){return""+Ky("left",n.left)+Ky("right",n.right)+Ky("top",n.top)+Ky("bottom",n.bottom)+""}const bw={};function Cw(n){return n.sort(function(i,t){return i.index-t.index})}function qD(n,i){n.indexOf(i)<0&&n.push(i)}function XD(n,i){for(let t=0;t1||q>1)&&qD(i.mergedCells,yt+":"+R3(s+ae-1,Se+q-1)),ae>1)for(let at=s+1;at`\n\n${Ea(i,t=>{let s=c6.customOperator(t);return``})}\n`,rT=({type:n})=>``,oT=({type:n,value:i})=>``,aT=({blanks:n,values:i})=>`\n ${Ea(i,t=>`\n `)}\n `;function c6(n){return(({ref:n,columns:i,generators:t})=>`\n\n ${Ea(i,s=>`\n \n ${t[s.filter](s)}\n \n `)}\n`)({ref:n.ref,columns:n.columns,generators:{custom:sT,dynamic:rT,top:oT,value:aT}})}c6.customOperator=function(n){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[n.operator.toLowerCase()]},c6.customValue=function(n){function i(t){return t.replace(/([*?])/g,"~$1")}switch(n.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return i(n.value)+"*";case"endswith":case"doesnotendwith":return"*"+i(n.value);case"contains":case"doesnotcontain":return"*"+i(n.value)+"*";default:return n.value}},c6.dynamicFilterType=function(n){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[n.toLowerCase()]||n};var cT=S(9346);const Xy=(n,i,t)=>{let s=n.createEmbeddedView(i);const o=u=>(t(i,u),s.detectChanges(),s.rootNodes.reduce((b,k)=>b+k.textContent,"").trim());return o.destroy=()=>{s.destroy(),s=null},o},xw=(n,i)=>{n.$implicit=n.group=i,n.field=i.field,n.value=i.value,n.aggregates=i.aggregates},dT=(n,i)=>{n.group=i.group,n.$implicit=n.aggregates=i},uT=(n,i)=>{n.aggregates=i.aggregates},Mw=n=>{n&&n.forEach(i=>{i.destroy()})};class pT{constructor(i,t){this.title=i.title,this.field=i.field,this.hidden=i.hidden,this.locked=i.locked,this.width=i.width,this.headerCellOptions=i.headerCellOptions,this.cellOptions=i.cellOptions,this.groupHeaderCellOptions=i.groupHeaderCellOptions,this.groupFooterCellOptions=i.groupFooterCellOptions,this.footerCellOptions=i.footerCellOptions,i.footerTemplate&&(this.footerTemplate=Xy(i.footerTemplate.templateRef,{$implicit:i,column:i,columnIndex:t},uT)),i.groupFooterTemplate&&(this.groupFooterTemplate=Xy(i.groupFooterTemplate.templateRef,{column:i,field:i.field},dT)),i.groupHeaderTemplate&&(this.groupHeaderTemplate=Xy(i.groupHeaderTemplate.templateRef,{},xw)),i.groupHeaderColumnTemplate&&(this.groupHeaderColumnTemplate=Xy(i.groupHeaderColumnTemplate.templateRef,{},xw))}destroy(){this.footerTemplate&&this.footerTemplate.destroy(),this.groupFooterTemplate&&this.groupFooterTemplate.destroy(),this.groupHeaderTemplate&&this.groupHeaderTemplate.destroy(),this.groupHeaderColumnTemplate&&this.groupHeaderColumnTemplate.destroy(),Mw(this.columns)}}GS.register({toString:cT.BB});const Iw=n=>{const i=(n=>{const i=[];let t=0;const s=(o,u,b)=>{o.forEach(k=>{if(k.level===b){const ae=new pT(k,t);if(u.push(ae),k.children&&k.children.some(q=>q!==k)){const q=ae.columns=[];s(k.children,q,b+1)}else t++}})};return s(n,i,0),i})(n.columns),s=new class{constructor(i){i.columns=this._trimColumns(i.columns||[]),this.allColumns=Q1(this._leafColumns(i.columns||[]),this._prepareColumn),this.columns=this._visibleColumns(this.allColumns),this.options=i,this.data=i.data||[],this.aggregates=i.aggregates||{},this.groups=[].concat(i.groups||[]),this.hasGroups=this.groups.length>0,this.hierarchy=i.hierarchy,this.hasGroupHeaderColumn=this.columns.some(t=>t.groupHeaderColumnTemplate),this.collapsible=this.options.collapsible}workbook(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}}_trimColumns(i){return i.filter(t=>{let s=Boolean(t.field);return!s&&t.columns&&(s=this._trimColumns(t.columns).length>0),s})}_leafColumns(i){let t=[];for(let s=0;sObject.assign({background:"#dfdfdf",color:"#333"},this.options.paddingCellOptions))}_dataRow(i,t,s){let o=this._createPaddingCells(t);if(this.hasGroups&&s&&i.items){o=o.concat(this._groupHeaderCells(i,t,s));const b=this._dataRows(i.items,t+1);return b.unshift({type:"group-header",cells:o,level:this.collapsible?t:null}),b.concat(this._footer(i,t))}const u=[];for(let b=0;b0&&o.push(Object.assign({background:"#dfdfdf",color:"#333",value:Se.groupHeaderColumnTemplate?Se.groupHeaderColumnTemplate(Object.assign({group:ae},ae,i.aggregates[Se.field])):void 0},Se.groupHeaderCellOptions))}),o}_dataRows(i,t){const s=this._depth(),o=[];for(let u=0;uae?k.push({id:q,level:ae}):at=t;){const u=i.pop();o.push(this._hierarchyFooter(this.aggregates[u.id],u.level+1,s))}return o}_hasFooterTemplate(){const i=this.columns;for(let t=0;tae.groupFooterTemplate);let u,b;o&&(b={group:{items:i.items,field:i.field,value:i.value}},u={},Object.keys(i.aggregates).forEach(ae=>{u[ae]=Object.assign({},i.aggregates[ae],b)}));const k=this.columns.map(ae=>{if(ae.groupFooterTemplate){let q=Object.assign({},u,i.aggregates[ae.field],b);return Object.assign({background:"#dfdfdf",color:"#333",value:ae.groupFooterTemplate(q)},ae.groupFooterCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333"},ae.groupFooterCellOptions)});return o&&s.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(k),level:this.collapsible?t:null}),s}_isColumnVisible(i){return this._visibleColumns([i]).length>0&&(i.field||i.columns)}_visibleColumns(i){return i.filter(t=>{let s=t.exportable;"object"==typeof s&&(s=t.exportable.excel);let b=!t.hidden&&!1!==s||t.hidden&&!0===s;return b&&t.columns&&(b=this._visibleColumns(t.columns).length>0),b})}_headerRow(i,t){const s=i.cells.map(function(o){return Object.assign(o,{colSpan:o.colSpan>1?o.colSpan:1,rowSpan:i.rowSpan>1&&!o.colSpan?i.rowSpan:1})});return this.hierarchy&&s[0].firstCell&&(s[0].colSpan+=this._depth()),{type:"header",cells:a7(t.length,()=>Object.assign({background:"#7a7a7a",color:"#fff"},this.options.headerPaddingCellOptions)).concat(s)}}_prependHeaderRows(i){const t=this.groups,s=[{rowSpan:1,cells:[],index:0}];this._prepareHeaderRows(s,this.options.columns);for(let o=s.length-1;o>=0;o--)i.unshift(this._headerRow(s[o],t))}_prepareHeaderRows(i,t,s,o){const u=o||i[i.length-1];let b=i[u.index+1],k=0;for(let ae=0;aeo.footerTemplate?(t=!0,Object.assign({background:"#dfdfdf",color:"#333",value:o.footerTemplate(Object.assign({},this.aggregates,this.aggregates[o.field]))},o.footerCellOptions)):Object.assign({background:"#dfdfdf",color:"#333"},o.footerCellOptions));t&&i.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(s)})}return i}_headerDepth(i){let s=0;for(let o=0;os&&(s=u)}return 1+s}_freezePane(){const i=this._visibleColumns(this.options.columns||[]),t=this._visibleColumns(this._trimColumns(this._leafColumns(i.filter(function(s){return s.locked})))).length;return{rowSplit:this._headerDepth(i),colSplit:t?t+this.groups.length:0}}_cell(i,t){return Object.assign({value:t.value(i)},t.cellOptions)}_depth(){let i=0;return i=this.hierarchy?this.hierarchy.depth:this.groups.length,i}_columns(){return a7(this._depth(),()=>({width:20})).concat(this.columns.map(function(s){return{width:parseInt(s.width,10),autoWidth:!s.width}}))}}({columns:i,data:n.data,filterable:n.filterable,groups:n.group,paddingCellOptions:n.paddingCellOptions,headerPaddingCellOptions:n.headerPaddingCellOptions,collapsible:n.collapsible,hierarchy:n.hierarchy,aggregates:n.aggregates}).workbook();return s.creator=n.creator,s.date=n.date,s.rtl=n.rtl,Mw(i),s};class al{constructor(i){this.parent=i}get level(){return this.parent?this.parent.level+1:0}}al.\u0275fac=function(i){e.$Z()},al.\u0275dir=e.lG2({type:al,contentQueries:function(i,t,s){if(1&i&&e.Suo(s,al,4),2&i){let o;e.iGM(o=e.CRH())&&(t.children=o)}},inputs:{title:"title",width:"width",locked:"locked",hidden:"hidden",headerCellOptions:"headerCellOptions"}}),xo([(0,e.IIB)(),Mo("design:type",String)],al.prototype,"title",void 0),xo([(0,e.IIB)(),Mo("design:type",Number)],al.prototype,"width",void 0),xo([(0,e.IIB)(),Mo("design:type",Boolean)],al.prototype,"locked",void 0),xo([(0,e.IIB)(),Mo("design:type",Boolean)],al.prototype,"hidden",void 0),xo([(0,e.IIB)(),Mo("design:type",Object)],al.prototype,"headerCellOptions",void 0),xo([(0,e.AcB)(al),Mo("design:type",e.n_E)],al.prototype,"children",void 0);const gT={name:"@progress/kendo-angular-excel-export",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635940177,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let tc=class{constructor(i,t){this.localization=i,this.zone=t,this.fileName="Export.xlsx",this.columns=new e.n_E,(0,Kt.s)(gT),this.saveFile=this.saveFile.bind(this)}save(i){this.toDataURL(i).then(this.saveFile)}workbookOptions(i){const t=this.getExportData(i);return Iw({columns:this.columns,data:t.data,group:t.group,filterable:this.filterable,creator:this.creator,date:this.date,rtl:this.localization.rtl,paddingCellOptions:this.paddingCellOptions,headerPaddingCellOptions:this.headerPaddingCellOptions,collapsible:this.collapsible})}toDataURL(i){const t=(n=>n&&n.sheets)(i)?i:this.workbookOptions(i);return this.zone.runOutsideAngular(()=>(n=>new QD(n).toDataURL())(t))}getExportData(i){let t;return t=i?Array.isArray(i)?{data:i}:i:{data:this.data,group:this.group},t}saveFile(i){!function(n,i,t={}){let s=yI;if(t.forceProxy&&!t.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");t.forceProxy||(mI()&&(s=_I),navigator.msSaveBlob&&(s=vI)),s(n,i,t)}(i,this.fileName,{forceProxy:this.forceProxy,proxyURL:this.proxyURL})}};tc.\u0275fac=function(i){return new(i||tc)(e.Y36(G.oQ),e.Y36(e.R0b))},tc.\u0275cmp=e.Xpm({type:tc,selectors:[["kendo-excelexport"]],contentQueries:function(i,t,s){if(1&i&&e.Suo(s,al,5),2&i){let o;e.iGM(o=e.CRH())&&(t.columns=o)}},inputs:{fileName:"fileName",filterable:"filterable",collapsible:"collapsible",creator:"creator",date:"date",forceProxy:"forceProxy",proxyURL:"proxyURL",data:"data",group:"group",paddingCellOptions:"paddingCellOptions",headerPaddingCellOptions:"headerPaddingCellOptions"},exportAs:["kendoExcelExport"],features:[e._Bn([G.oQ,{provide:G.mM,useValue:"kendo.excelexport"}])],decls:0,vars:0,template:function(i,t){},encapsulation:2}),xo([(0,e.IIB)(),Mo("design:type",String)],tc.prototype,"fileName",void 0),xo([(0,e.IIB)(),Mo("design:type",Boolean)],tc.prototype,"filterable",void 0),xo([(0,e.IIB)(),Mo("design:type",Boolean)],tc.prototype,"collapsible",void 0),xo([(0,e.IIB)(),Mo("design:type",String)],tc.prototype,"creator",void 0),xo([(0,e.IIB)(),Mo("design:type",Date)],tc.prototype,"date",void 0),xo([(0,e.IIB)(),Mo("design:type",Boolean)],tc.prototype,"forceProxy",void 0),xo([(0,e.IIB)(),Mo("design:type",String)],tc.prototype,"proxyURL",void 0),xo([(0,e.IIB)(),Mo("design:type",Array)],tc.prototype,"data",void 0),xo([(0,e.IIB)(),Mo("design:type",Array)],tc.prototype,"group",void 0),xo([(0,e.IIB)(),Mo("design:type",Object)],tc.prototype,"paddingCellOptions",void 0),xo([(0,e.IIB)(),Mo("design:type",Object)],tc.prototype,"headerPaddingCellOptions",void 0),xo([(0,e.AcB)(al,{descendants:!0}),Mo("design:type",e.n_E)],tc.prototype,"columns",void 0),tc=xo([Mo("design:paramtypes",[G.oQ,e.R0b])],tc);let J1=class{constructor(i){this.templateRef=i}};J1.\u0275fac=function(i){return new(i||J1)(e.Y36(e.Rgc,8))},J1.\u0275dir=e.lG2({type:J1,selectors:[["","kendoExcelExportGroupHeaderTemplate",""]]}),J1=xo([Y1(0,(0,e.FiY)()),Mo("design:paramtypes",[e.Rgc])],J1);let K1=class{constructor(i){this.templateRef=i}};K1.\u0275fac=function(i){return new(i||K1)(e.Y36(e.Rgc,8))},K1.\u0275dir=e.lG2({type:K1,selectors:[["","kendoExcelExportGroupHeaderColumnTemplate",""]]}),K1=xo([Y1(0,(0,e.FiY)()),Mo("design:paramtypes",[e.Rgc])],K1);let q1=class{constructor(i){this.templateRef=i}};q1.\u0275fac=function(i){return new(i||q1)(e.Y36(e.Rgc,8))},q1.\u0275dir=e.lG2({type:q1,selectors:[["","kendoExcelExportGroupFooterTemplate",""]]}),q1=xo([Y1(0,(0,e.FiY)()),Mo("design:paramtypes",[e.Rgc])],q1);let X1=class{constructor(i){this.templateRef=i}};var w7;X1.\u0275fac=function(i){return new(i||X1)(e.Y36(e.Rgc,8))},X1.\u0275dir=e.lG2({type:X1,selectors:[["","kendoExcelExportFooterTemplate",""]]}),X1=xo([Y1(0,(0,e.FiY)()),Mo("design:paramtypes",[e.Rgc])],X1);let bd=w7=class extends al{constructor(i){super(i)}};var x7;bd.\u0275fac=function(i){return new(i||bd)(e.Y36(al,13))},bd.\u0275cmp=e.Xpm({type:bd,selectors:[["kendo-excelexport-column"]],contentQueries:function(i,t,s){if(1&i&&(e.Suo(s,J1,5),e.Suo(s,K1,5),e.Suo(s,q1,5),e.Suo(s,X1,5)),2&i){let o;e.iGM(o=e.CRH())&&(t.groupHeaderTemplate=o.first),e.iGM(o=e.CRH())&&(t.groupHeaderColumnTemplate=o.first),e.iGM(o=e.CRH())&&(t.groupFooterTemplate=o.first),e.iGM(o=e.CRH())&&(t.footerTemplate=o.first)}},inputs:{field:"field",cellOptions:"cellOptions",groupHeaderCellOptions:"groupHeaderCellOptions",groupFooterCellOptions:"groupFooterCellOptions",footerCellOptions:"footerCellOptions"},features:[e._Bn([{provide:al,useExisting:(0,e.Gpc)(()=>w7)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),xo([(0,e.IIB)(),Mo("design:type",String)],bd.prototype,"field",void 0),xo([(0,e.IIB)(),Mo("design:type",Object)],bd.prototype,"cellOptions",void 0),xo([(0,e.IIB)(),Mo("design:type",Object)],bd.prototype,"groupHeaderCellOptions",void 0),xo([(0,e.IIB)(),Mo("design:type",Object)],bd.prototype,"groupFooterCellOptions",void 0),xo([(0,e.IIB)(),Mo("design:type",Object)],bd.prototype,"footerCellOptions",void 0),xo([(0,e.aQ5)(J1,{static:!1}),Mo("design:type",J1)],bd.prototype,"groupHeaderTemplate",void 0),xo([(0,e.aQ5)(K1,{static:!1}),Mo("design:type",K1)],bd.prototype,"groupHeaderColumnTemplate",void 0),xo([(0,e.aQ5)(q1,{static:!1}),Mo("design:type",q1)],bd.prototype,"groupFooterTemplate",void 0),xo([(0,e.aQ5)(X1,{static:!1}),Mo("design:type",X1)],bd.prototype,"footerTemplate",void 0),bd=w7=xo([Y1(0,(0,e.tp0)()),Y1(0,(0,e.AA_)()),Y1(0,(0,e.FiY)()),Mo("design:paramtypes",[al])],bd);let d6=x7=class extends al{constructor(i){super(i),this.parent=i}};d6.\u0275fac=function(i){return new(i||d6)(e.Y36(al,13))},d6.\u0275cmp=e.Xpm({type:d6,selectors:[["kendo-excelexport-column-group"]],features:[e._Bn([{provide:al,useExisting:(0,e.Gpc)(()=>x7)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),d6=x7=xo([Y1(0,(0,e.tp0)()),Y1(0,(0,e.AA_)()),Y1(0,(0,e.FiY)()),Mo("design:paramtypes",[al])],d6);let P3=class{};P3.\u0275fac=function(i){return new(i||P3)},P3.\u0275mod=e.oAB({type:P3}),P3.\u0275inj=e.cJS({});const $T=["kendoGridFilterRow",""];function YT(n,i){1&n&&e._UZ(0,"td",3),2&n&&e.ekj("k-group-cell",!0)}function QT(n,i){1&n&&e._UZ(0,"td",3),2&n&&e.ekj("k-hierarchy-cell",!0)}function WT(n,i){if(1&n&&e._UZ(0,"td",4),2&n){const t=i.$implicit,s=i.index,o=e.oxw();e.ekj("k-grid-header-sticky",t.sticky),e.Q6J("ngStyle",o.addStickyStyles(t))("ngClass",t.filterClass)("column",t)("filter",o.filter)("logicalRowIndex",o.logicalRowIndex)("logicalColIndex",o.lockedColumnsCount+s),e.uIk("aria-label",o.filterLabel(t))}}const ZT=["kendoGridFilterCell",""];function JT(n,i){if(1&n&&(e.ynx(0),e.GkF(1,3),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("column",t.column)("filter",t.filter)}}function KT(n,i){}function qT(n,i){if(1&n&&e.YNc(0,KT,0,0,"ng-template",5),2&n){const t=e.oxw(3);e.Q6J("ngTemplateOutlet",t.column.filterCellTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function XT(n,i){if(1&n&&(e.ynx(0),e.YNc(1,qT,1,2,void 0,4),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.column.filterCellTemplateRef)}}function eE(n,i){if(1&n&&(e.ynx(0,1),e.YNc(1,JT,2,2,"ng-container",2),e.YNc(2,XT,2,1,"ng-container",2),e.BQk()),2&n){const t=e.oxw();e.Q6J("ngSwitch",t.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const M7=["*"],tE=["dropdown"],Tw=function(){return{width:"auto"}};function nE(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-dropdownlist",3,4),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().onChange(o)})("keydown",function(o){return e.CHM(t),e.oxw().dropdownKeydown(o)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("data",t.operators)("value",t.value)("valuePrimitive",!0)("popupSettings",e.DdM(4,Tw))}}const iE=function(n){return{"k-clear-button-visible":n}};function dE(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",4),e.NdJ("focusin",function(o){return e.CHM(t),e.oxw().onInnerFocusIn(o,"start")}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("tabindex",t.focusTrapTabIndex),e.uIk("aria-hidden",!0)}}function uE(n,i){if(1&n&&e.GkF(0,5),2&n){const t=e.oxw();e.Q6J("ngTemplateOutlet",t.template.templateRef)("ngTemplateOutletContext",t.templateContext)}}function hE(n,i){1&n&&e._UZ(0,"kendo-pager-prev-buttons")}function pE(n,i){if(1&n&&e._UZ(0,"kendo-pager-numeric-buttons",8),2&n){const t=e.oxw(2);e.Q6J("buttonCount",t.settings.buttonCount)}}function fE(n,i){1&n&&e._UZ(0,"kendo-pager-input")}function gE(n,i){1&n&&e._UZ(0,"kendo-pager-next-buttons")}function mE(n,i){1&n&&e._UZ(0,"kendo-pager-info")}function vE(n,i){if(1&n&&e._UZ(0,"kendo-pager-page-sizes",9,10),2&n){const t=e.oxw(2);e.Q6J("pageSizes",t.settings.pageSizes)}}function _E(n,i){if(1&n&&(e.ynx(0),e.YNc(1,hE,1,0,"kendo-pager-prev-buttons",2),e.YNc(2,pE,1,1,"kendo-pager-numeric-buttons",6),e.YNc(3,fE,1,0,"kendo-pager-input",2),e.YNc(4,gE,1,0,"kendo-pager-next-buttons",2),e.YNc(5,mE,1,0,"kendo-pager-info",2),e.YNc(6,vE,2,1,"kendo-pager-page-sizes",7),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.settings.previousNext),e.xp6(1),e.Q6J("ngIf","numeric"===t.settings.type),e.xp6(1),e.Q6J("ngIf","input"===t.settings.type),e.xp6(1),e.Q6J("ngIf",t.settings.previousNext),e.xp6(1),e.Q6J("ngIf",t.settings.info),e.xp6(1),e.Q6J("ngIf",t.settings.pageSizes)}}function yE(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",4),e.NdJ("focusin",function(o){return e.CHM(t),e.oxw().onInnerFocusIn(o,"end")}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("tabindex",t.focusTrapTabIndex),e.uIk("aria-hidden",!0)}}function bE(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-resize-sensor",11),e.NdJ("resize",function(){return e.CHM(t),e.oxw().resizeHandler()}),e.qZA()}}const CE=function(n){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":n,"k-pager-first":!0}},SE=function(){return{"k-icon":!0,"k-i-seek-w":!0}},Ew=function(n){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":n,"":!0}},wE=function(){return{"k-icon":!0,"k-i-arrow-w":!0}},xE=function(){return{"k-icon":!0,"k-i-arrow-e":!0}},ME=function(n){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":n,"k-pager-last":!0}},IE=function(){return{"k-icon":!0,"k-i-seek-e":!0}};function DE(n,i){if(1&n&&(e.TgZ(0,"option",7),e._uU(1,"... "),e.qZA()),2&n){const t=e.oxw();e.uIk("aria-label",t.pageLabel(t.start-1))}}const TE=function(n){return{"k-link":!0,"k-state-selected":n}};function EE(n,i){if(1&n&&(e.TgZ(0,"option",8),e._uU(1),e.qZA()),2&n){const t=i.$implicit,s=e.oxw();e.Q6J("value",t.toString())("ngClass",e.VKq(5,TE,s.currentPage==t)),e.uIk("aria-label",s.pageLabel(t))("aria-current",s.currentPage==t?"page":void 0),e.xp6(1),e.hij(" ",t," ")}}function kE(n,i){if(1&n&&(e.TgZ(0,"option",9),e._uU(1,"... "),e.qZA()),2&n){const t=e.oxw();e.uIk("aria-label",t.pageLabel(t.end+1))}}function AE(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"li"),e.TgZ(1,"span",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.changePage(o.start-2)})("keydown.enter",function(){e.CHM(t);const o=e.oxw();return o.changePage(o.start-2)}),e._uU(2,"..."),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.uIk("aria-label",t.pageLabel(t.start-1))}}const OE=function(n){return{"k-link":!0,"k-state-selected":n,"k-pager-nav":!0}};function FE(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"li"),e.TgZ(1,"span",11),e.NdJ("click",function(){const u=e.CHM(t).$implicit;return e.oxw().changePage(u-1)})("keydown.enter",function(){const u=e.CHM(t).$implicit;return e.oxw().changePage(u-1)}),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=i.$implicit,s=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(3,OE,s.currentPage==t)),e.uIk("aria-label",s.pageLabel(t)),e.xp6(1),e.hij(" ",t," ")}}function RE(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"li"),e.TgZ(1,"span",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.changePage(o.end)})("keydown.enter",function(){e.CHM(t);const o=e.oxw();return o.changePage(o.end)}),e._uU(2,"..."),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.uIk("aria-label",t.pageLabel(t.end+1))}}const PE=function(){return{"k-pager-numbers":!0,"k-reset":!0}},LE=function(){return{"k-pager-input":!0,"k-label":!0}},BE=function(n,i){return{keydown:n,focusout:i}};const Aw=["anchor"],Ow=["template"];const rk=function(n,i){return{service:n,column:i}};function ok(n,i){if(1&n&&e.GkF(0,5),2&n){const t=e.oxw(),s=e.MAs(6);e.Q6J("ngTemplateOutlet",t.column.columnMenuTemplateRef||t.columnMenuTemplate||s)("ngTemplateOutletContext",e.WLB(2,rk,t.service,t.column))}}function ak(n,i){if(1&n&&e._UZ(0,"kendo-grid-columnmenu-sort",10,11),2&n){const t=e.MAs(1),s=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",t)("service",s.service)}}function lk(n,i){if(1&n&&e._UZ(0,"kendo-grid-columnmenu-lock",10,12),2&n){const t=e.MAs(1),s=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",t)("service",s.service)}}function ck(n,i){if(1&n&&e._UZ(0,"kendo-grid-columnmenu-stick",10,13),2&n){const t=e.MAs(1),s=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",t)("service",s.service)}}function dk(n,i){if(1&n&&e._UZ(0,"kendo-grid-columnmenu-position",14,15),2&n){const t=e.MAs(1),s=e.oxw(2);e.Q6J("showLock",s.hasLock)("showStick",s.hasStick)("kendoGridColumnMenuItem",t)("service",s.service)("expanded",s.expandedPosition)}}function uk(n,i){if(1&n&&e._UZ(0,"kendo-grid-columnmenu-chooser",16,17),2&n){const t=e.MAs(1),s=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",t)("service",s.service)("expanded",s.expandedColumns)}}function hk(n,i){if(1&n&&e._UZ(0,"kendo-grid-columnmenu-filter",16,18),2&n){const t=e.MAs(1),s=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",t)("service",s.service)("expanded",s.expandedFilter)}}function pk(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-container",6),e.NdJ("keydown.escape",function(){return e.CHM(t),e.oxw().close()})("keydown.enter",function(o){return o.stopImmediatePropagation()}),e.YNc(1,ak,2,2,"kendo-grid-columnmenu-sort",7),e.YNc(2,lk,2,2,"kendo-grid-columnmenu-lock",7),e.YNc(3,ck,2,2,"kendo-grid-columnmenu-stick",7),e.YNc(4,dk,2,5,"kendo-grid-columnmenu-position",8),e.YNc(5,uk,2,3,"kendo-grid-columnmenu-chooser",9),e.YNc(6,hk,2,3,"kendo-grid-columnmenu-filter",9),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.hasSort),e.xp6(1),e.Q6J("ngIf",t.hasLock&&!t.hasPosition),e.xp6(1),e.Q6J("ngIf",t.hasStick&&!t.hasPosition),e.xp6(1),e.Q6J("ngIf",t.hasPosition),e.xp6(1),e.Q6J("ngIf",t.hasColumnChooser),e.xp6(1),e.Q6J("ngIf",t.hasFilter)}}const fk=function(n){return{"k-state-active":n}};const Gk=["resetButton"],Uk=["filterButton"];function $k(n,i){if(1&n&&(e.ynx(0),e.GkF(1,9),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("filterService",t.childService)("column",t.column)("filter",t.childFilter)("menuTabbingService",t.menuTabbingService)}}function Yk(n,i){}function Qk(n,i){if(1&n&&e.YNc(0,Yk,0,0,"ng-template",11),2&n){const t=e.oxw(2);e.Q6J("ngTemplateOutlet",t.column.filterMenuTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function Wk(n,i){if(1&n&&(e.ynx(0),e.YNc(1,Qk,1,2,void 0,10),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.column.filterMenuTemplateRef)}}function Zk(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().logicChange(o)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("filterMenuDropDownLabel",t.filterMenuDropDownLabel)("data",t.logicOperators)("valuePrimitive",!0)("value",null==t.filter?null:t.filter.logic)}}function Jk(n,i){if(1&n&&e._UZ(0,"kendo-grid-string-filter-menu-input",4),2&n){const t=e.oxw();e.Q6J("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("menuTabbingService",t.menuTabbingService)}}function Kk(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().logicChange(o)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("filterMenuDropDownLabel",t.filterMenuDropDownLabel)("data",t.logicOperators)("valuePrimitive",!0)("value",null==t.filter?null:t.filter.logic)}}function qk(n,i){if(1&n&&e._UZ(0,"kendo-grid-numeric-filter-menu-input",4),2&n){const t=e.oxw();e.Q6J("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("format",t.format)("decimals",t.decimals)("spinners",t.spinners)("min",t.min)("max",t.max)("step",t.step)("menuTabbingService",t.menuTabbingService)}}function Xk(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(o){return e.CHM(t),e.oxw().logicChange(o)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("filterMenuDropDownLabel",t.filterMenuDropDownLabel)("data",t.logicOperators)("valuePrimitive",!0)("value",null==t.filter?null:t.filter.logic)}}function eA(n,i){if(1&n&&e._UZ(0,"kendo-grid-date-filter-menu-input",4),2&n){const t=e.oxw();e.Q6J("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("format",t.format)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.min)("max",t.max)("weekNumber",t.weekNumber)("menuTabbingService",t.menuTabbingService)}}function tA(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"li"),e.TgZ(1,"input",2,3),e.NdJ("change",function(){const u=e.CHM(t).$implicit,b=e.MAs(2);return e.oxw().onChange(u.value,b)})("keydown.shift.tab",function(o){return e.CHM(t),e.oxw().onShiftTab(o)}),e.qZA(),e.TgZ(3,"label",4),e._uU(4),e.qZA(),e.qZA()}if(2&n){const t=i.$implicit,s=e.oxw();e.xp6(1),e.Q6J("columnLabel",s.columnLabel)("name",s.idPrefix)("checked",s.isSelected(t.value)),e.uIk("id",s.radioId(t.value)),e.xp6(2),e.uIk("for",s.radioId(t.value)),e.xp6(1),e.Oqu(t.text)}}const nA=["applyButton"];function iA(n,i){if(1&n&&(e.TgZ(0,"label",3),e._UZ(1,"input",4),e.TgZ(2,"span",5),e._uU(3),e.qZA(),e.qZA()),2&n){const t=i.$implicit,s=i.index,o=e.oxw();e.xp6(1),e.Q6J("checked",!t.hidden)("disabled",o.isDisabled(t)),e.uIk("data-index",s),e.xp6(2),e.Oqu(t.displayTitle)}}function sA(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"button",7),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancelChanges()}),e._uU(2),e.qZA(),e.TgZ(3,"button",8,9),e.NdJ("keydown.tab",function(o){return e.CHM(t),e.oxw().onTab(o)})("click",function(){return e.CHM(t),e.oxw().applyChanges()}),e._uU(5),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("ngClass",t.actionsClass),e.xp6(2),e.Oqu(t.resetText),e.xp6(3),e.Oqu(t.applyText)}}function rA(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"span",4),e._uU(1),e.qZA(),e.TgZ(2,"kendo-grid-columnlist",5),e.NdJ("apply",function(o){return e.CHM(t),e.oxw().onApply(o)})("columnChange",function(o){return e.CHM(t),e.oxw().onChange(o)}),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.localization.get("columns")),e.xp6(1),e.Q6J("columns",t.columns)("applyText",t.localization.get("columnsApply"))("resetText",t.localization.get("columnsReset"))("autoSync",t.autoSync)("allowHideAll",t.allowHideAll)}}function oA(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-grid-columnlist",2),e.NdJ("apply",function(o){return e.CHM(t),e.oxw().onApply(o)}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("applyText",t.localization.get("columnsApply"))("resetText",t.localization.get("columnsReset"))("columns",t.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",t.actionsClass)("isLast",t.isLast)("isExpanded",t.expanded)("service",t.service)}}function aA(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-container",2),e.NdJ("keydown.shift.tab",function(o){return o.stopImmediatePropagation()})("close",function(){return e.CHM(t),e.oxw().close()}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("column",t.service.column)("menuTabbingService",t.service.menuTabbingService)("filter",t.service.filter)("actionsClass",t.actionsClass)("isLast",t.isLast)("isExpanded",t.expanded)}}function lA(n,i){if(1&n&&e._UZ(0,"span",3),2&n){const t=e.oxw();e.Q6J("ngClass",t.iconClass)}}function cA(n,i){if(1&n&&(e.TgZ(0,"div",4),e.GkF(1,5),e._UZ(2,"div"),e.qZA()),2&n){const t=e.oxw();e.Q6J("@state",t.contentState),e.xp6(1),e.Q6J("ngTemplateOutlet",t.contentTemplate.templateRef)}}function dA(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-lock",3),e.NdJ("keydown.tab",function(o){e.CHM(t);const u=e.oxw(2);return u.onTab(o,!u.showStick)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("service",t.service)}}function uA(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-stick",3),e.NdJ("keydown.tab",function(o){return e.CHM(t),e.oxw(2).onTab(o,!0)}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("service",t.service)}}function hA(n,i){if(1&n&&(e.YNc(0,dA,1,1,"kendo-grid-columnmenu-lock",2),e.YNc(1,uA,1,1,"kendo-grid-columnmenu-stick",2)),2&n){const t=e.oxw();e.Q6J("ngIf",t.showLock),e.xp6(1),e.Q6J("ngIf",t.showStick)}}const _O=/^\s*$/,Gi=n=>null!=n,I7=n=>null==n,ih=n=>!!n,Tl=n=>I7(n)||_O.test(n),tb=n=>(0,X.T)((0,Le.of)(n),n.changes),T7=n=>"string"==typeof n,E7=n=>T7(n)&&!Tl(n)&&n.startsWith("{0:")?n.slice(3,n.length-1):n,__=n=>(...i)=>!n.apply(null,i),nb=(...n)=>i=>n.reduce((t,s)=>t||s(i),!1),k7=(...n)=>i=>n.reduce((t,s)=>t&&s(i),!0),ef=(new e.OlP("Skip"),function(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;const n=Object.getOwnPropertyNames(Map.prototype),i=Map.prototype;for(let t=0;tn.replace(new RegExp(`{\\s*${i}\\s*}`,"g"),t));let sh=(()=>{let n=class{constructor(){this.cellClick=new e.vpe,this.cellMousedown=new e.vpe,this.cellMouseup=new e.vpe,this.click=new e.vpe,this.keydown=new e.vpe,this.focus=new e.vpe,this.focusIn=new e.vpe,this.focusOut=new e.vpe,this.windowBlur=new e.vpe}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})(),Kd=(()=>{let n=class{constructor(){this.changes=new e.vpe}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})();const sb=new e.OlP("focus-root-initial-active-state");let Kp=(()=>{let n=class{constructor(t=!1){this.active=t,this.groups=new Set}registerGroup(t){this.active&&this.groups.add(t)}unregisterGroup(t){this.active&&this.groups.delete(t)}activate(){this.active&&this.groups.forEach(t=>t.activate())}deactivate(){this.active&&this.groups.forEach(t=>t.deactivate())}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(sb,8))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([K(0,(0,e.FiY)()),K(0,(0,e.tBr)(sb)),r("design:paramtypes",[Boolean])],n),n})();const IO=/^(?:a|input|select|option|textarea|button|object)$/i,A7={},Lw=n=>String(n).trim().split(" "),u6=(n,i)=>{const t=Lw(i);return Boolean(Lw(n.className).find(s=>t.indexOf(s)>=0))},Wc=n=>(A7[n]||(A7[n]=i=>String(i.nodeName).toLowerCase()===n.toLowerCase()),A7[n]),Cd=(n,i)=>{for(;n&&!i(n);)n=n.parentNode;return n},F7=n=>{const i=n.getBoundingClientRect();return(i.width>0&&i.height>0||0!==i.x&&0!==i.y)&&"hidden"!==window.getComputedStyle(n).visibility},Bw=n=>{if(!n.tagName)return!1;const i=n.tagName.toLowerCase(),t=Boolean(n.getAttribute("tabIndex"));return!n.disabled&&IO.test(i)||t},y_=(n,i=!0)=>{if(!Bw(n))return!1;const t=!i||F7(n),s="true"===n.getAttribute("aria-hidden"),o=n.getAttribute("tabIndex");return t&&!s&&"-1"!==o},qp=(n,i,t=!0)=>{if(n){if(t&&i(n))return n;for(n=n.firstChild;n;){if(1===n.nodeType){const s=qp(n,i);if(s)return s}n=n.nextSibling}}},Nw=(n,i=!0)=>qp(n,t=>y_(t,i),!1),OO=Wc("button"),FO=Wc("input"),RO=/(button|checkbox|color|file|radio|reset|submit)/i;class BO{constructor(i,t){this.renderer=t,this.element=i.nativeElement,this.focusable=((n,i=!0)=>qp(this.element,t=>y_(t,i)))(0,!1)||this.element}get enabled(){return this.focusable&&!this.focusable.disabled}get visible(){return this.focusable&&F7(this.focusable)}isNavigable(){return this.canFocus()&&(n=>!n.disabled&&(OO(n)||(n=>FO(n)&&RO.test(n.type))(n)))(this.element)}toggle(i){this.renderer.setAttribute(this.focusable,"tabIndex",i?"0":"-1")}focus(){this.focusable&&this.focusable.focus()}canFocus(){return this.visible&&this.enabled}hasFocus(){return document.activeElement!==this.element&&Cd(document.activeElement,i=>i===this.element)}}const Zc=new e.OlP("grid-cell-context");let Sd=(()=>{let n=class{constructor(t,s,o){this.cellContext=t,this.hostElement=s,this.renderer=o,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}set enabled(t){(t=""===t||Boolean(t))!==this.enabled&&(this._enabled=t,this.element&&this.element.toggle(this.active&&t))}get enabled(){return this._enabled}ngAfterViewInit(){this.element||(this.element=new BO(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}ngOnDestroy(){this.group&&this.group.unregisterElement(this)}toggle(t){this.element&&t!==this.active&&(this.element.toggle(this.enabled&&t),this.active=t)}canFocus(){return this.enabled&&this.element&&this.element.canFocus()}isNavigable(){return this.enabled&&this.element&&this.element.isNavigable()}focus(){this.enabled&&this.element&&this.element.focus()}hasFocus(){return this.enabled&&this.element&&this.element.hasFocus()}registerElement(t){this.element=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Zc,12),e.Y36(e.SBq),e.Y36(e.Qsj))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:["kendoGridFocusable","enabled"]}}),p([(0,e.IIB)("kendoGridFocusable"),r("design:type",Object),r("design:paramtypes",[Object])],n.prototype,"enabled",null),n=p([K(0,(0,e.FiY)()),K(0,(0,e.tBr)(Zc)),K(0,(0,e.tp0)()),r("design:paramtypes",[Object,e.SBq,e.Qsj])],n),n})();class zO{constructor(i){this.navigationService=i}focus(){this.navigationService.focusCell()}toggle(i){this.navigationService.toggle(i)}canFocus(){return!0}hasFocus(){return this.navigationService.hasFocus()}isNavigable(){return!1}}class HO{constructor(i){this.model=i,this.changes=new Te.x,this.activeRow=0,this.activeCol=0,this.virtualCol=0,this.virtualRow=0}get row(){return this.model.findRow(this.activeRow)}get cell(){const i=this.row;if(i)return this.model.findCell(this.activeCol,i)}get dataRowIndex(){const i=this.row;return i?i.dataRowIndex:-1}reset(i=this.activeRow,t=this.activeCol,s=!0){this.activate(i,t,s)&&(this.virtualRow=i,this.virtualCol=t)}activate(i,t,s){if(!s&&this.isActiveRange(i,t))return!1;const o=this.activeCol,u=this.activeRow;return this.activeCol=t,this.activeRow=i,this.changes.next({colIndex:t,prevColIndex:o,prevRowIndex:u,rowIndex:i}),!0}isActiveRange(i,t){if(this.activeRow!==i)return!1;const s=this.cell,{start:o,end:u}=this.model.cellRange(s);return!Boolean(s)||o<=t&&t<=u}assume(i=this.activeRow,t=this.activeCol){this.virtualRow=i,this.virtualCol=t,this.activeCol=t,this.activeRow=i}announce(){this.changes.next({colIndex:this.activeCol,prevColIndex:this.activeCol,prevRowIndex:this.activeRow,rowIndex:this.activeRow})}activateVirtualCell(i){const t=this.model.rowRange(i),s=this.model.cellRange(i),o=this.activeCol,u=this.activeRow;if(t.start<=u&&u<=t.end&&s.start<=o&&o<=s.end)return this.activeRow=i.rowIndex,this.activeCol=i.colIndex,!0}isActive(i,t){return this.activeCol===t&&this.activeRow===i}moveUp(i=1){return this.offsetRow(-i)}moveDown(i=1){return this.offsetRow(i)}moveLeft(i=1){return this.offsetCol(-i)}moveRight(i=1){return this.offsetCol(i)}lastCellIndex(i){return this.metadata.columns.leafColumnsToRender.length-1+(!this.metadata.hasDetailTemplate||i&&i.groupItem?0:1)}offsetCol(i){const t=this.model.findRow(this.virtualRow),s=this.lastCellIndex(t),o=this.virtualCol;this.virtualCol=Math.max(0,Math.min(o+i,s));let u=this.virtualCol,b=this.virtualRow,k=this.model.findCell(this.virtualCol,t);if(!k&&this.metadata.virtualColumns)return this.activate(b,u);if(k.colSpan>1&&k.colIndex<=o&&o0?Math.min(k.colIndex+k.colSpan,s):Math.max(0,k.colIndex+i);const ae=this.model.findCell(u,t);k!==ae?(k=ae,this.virtualCol=k.colIndex):this.virtualCol=o}return this.activate(k.rowIndex,k.colIndex)}offsetRow(i){let t=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){const u=this.metadata.maxLogicalRowIndex;let b=Math.max(0,Math.min(this.activeRow+i,u));this.metadata.hasDetailTemplate&&!this.model.findRow(b)&&(b=i>0?b+1:b-1,b=Math.max(0,Math.min(b,u))),this.metadata.hasDetailTemplate&&b===u&&this.model.lastRow.index!==u&&b--;const k=this.model.findRow(b);if(k){let ae=this.model.findCell(this.virtualCol,k);ae.rowIndex<=this.virtualRow&&i>0&&ae.rowSpan>1&&(ae=this.model.findCell(this.virtualCol,this.model.findRow(ae.rowIndex+ae.rowSpan-1+i))),b=ae.rowIndex,t=ae.colIndex}return this.virtualRow=b,this.activate(b,t)}const s=this.model.findRow(this.virtualRow+i)||this.model.nextRow(this.virtualRow,i);if(!s)return!1;let o=this.model.findCell(this.virtualCol,s);return o&&o.rowIndex<=this.virtualRow&&i>0&&o.rowSpan>1&&(o=this.model.findCell(this.virtualCol,this.model.findRow(o.rowIndex+o.rowSpan-1+i))),!o&&this.metadata.virtualColumns?this.activate(this.virtualRow+i,this.virtualCol):(this.virtualRow=o.rowIndex,this.activate(this.virtualRow,o.colIndex))}}class zw{constructor(){this.count=0,this.items={}}get first(){if(this.count>0){let i;return this.forEach(t=>(i=t,!0)),i}}get last(){if(this.count>0){const i=Object.keys(this.items);return this.items[i[i.length-1]]}}removeItem(i){this.items[i]&&(delete this.items[i],this.count--)}setItem(i,t){this.items[i]||this.count++,this.items[i]=t}getItem(i){return this.items[i]}toArray(){const i=[];return this.forEach(t=>{i.push(t)}),i}forEach(i){for(let t in this.items)if(this.items.hasOwnProperty(t)&&i(this.items[t]))return this.items[t]}find(i){return this.forEach(i)}}class VO{constructor(){this.rows=new zw}get firstRow(){return this.rows.first}get lastRow(){return this.rows.last}registerCell(i){const t=this.rows.getItem(i.logicalRowIndex);if(!t)return;const s=i.logicalColIndex,o={uid:i.uid,colIndex:s,rowIndex:t.index,colSpan:i.colSpan,rowSpan:i.rowSpan,detailExpandCell:i.detailExpandCell,dataItem:t.dataItem,dataRowIndex:t.dataRowIndex,focusGroup:i.focusGroup};return t.cells.setItem(s,o),i.groupItem&&(t.groupItem=i.groupItem),o}unregisterCell(i,t,s){const o=this.rows.getItem(t);if(o){const u=o.cells.getItem(i);u&&u.uid===s.uid&&o.cells.removeItem(i)}}registerRow(i){const t={uid:i.uid,index:i.logicalRowIndex,dataItem:i.dataItem,dataRowIndex:i.dataRowIndex,cells:new zw};this.rows.setItem(i.logicalRowIndex,t)}updateRow(i){const t=this.rows.getItem(i.logicalRowIndex);t&&Object.assign(t,{dataItem:i.dataItem,dataRowIndex:i.dataRowIndex})}unregisterRow(i,t){const s=this.rows.getItem(i);s&&s.uid===t.uid&&this.rows.removeItem(i)}cellRange(i){return i?{start:i.colIndex,end:i.colIndex+(i.colSpan||1)-1}:{}}rowRange(i){return i?{start:i.rowIndex,end:i.rowIndex+(i.rowSpan||1)-1}:{}}nextRow(i,t){const s=this.rows.toArray(),o=this.rows.getItem(i),u=s.indexOf(o);return s[u+t]}findRow(i){return this.rows.getItem(i)}findCell(i,t){if(!t)return;const s=t.index;let o=t.cells.getItem(i),u=s;for(;!o&&t;)t=this.rows.getItem(u),o=this.rowCell(i,t),u--;return o&&s<=t.index+(o.rowSpan||1)-1?o:void 0}rowCell(i,t){if(!t||!t.cells.count)return;const s=t.cells.first;let o,u=i;for(;!o&&u>=s.colIndex;)o=t.cells.getItem(u),u--;return o&&i<=o.colIndex+(o.colSpan||1)-1?o:void 0}}class h6{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class jO extends h6{constructor(i){super(),this.action="cellClose",Object.assign(this,i)}}const p6=n=>-1===n||void 0===n;let El=(()=>{let n=class{constructor(t){this.ngZone=t,this.changes=new e.vpe,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new Te.x,this.changed=this.changedSource.asObservable().pipe((0,ot.w)(()=>this.ngZone.onStable.asObservable().pipe((0,Wt.q)(1))))}editRow(t,s){this.editedIndices.push({index:t,group:s}),this.onChanged()}addRow(t){this.newItemGroup={group:t},this.onChanged()}editCell(t,s,o){p6(t)||!1===s.editable||!s.editTemplate&&!s.field||(this.preventCellClose(),this.closeCell()||(this.editRow(t,o),this.column=s,this.onChanged()))}isEditing(){return this.editedIndices.length>0}isEditingCell(){return this.isEditing()&&void 0!==this.column}get hasNewItem(){return Gi(this.newItemGroup)}get newDataItem(){return this.hasNewItem?this.newItemGroup.group.value:{}}close(t){p6(t)?this.newItemGroup=void 0:(this.editedIndices=this.editedIndices.filter((n=>i=>i.index!==n)(t)),delete this.column,this.onChanged())}closeCell(t){if(this.column&&!this.closingCell)return this.ngZone.run(()=>{const{index:s,group:o}=this.editedIndices[0],u=new jO({column:this.column,formGroup:o,originalEvent:t,rowIndex:s});return this.closingCell=!0,this.changes.emit(u),this.closingCell=!1,u.isDefaultPrevented()||this.cancelCell(),u.isDefaultPrevented()})}cancelCell(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}shouldCloseCell(){return this.column&&!this.keepEditCell}preventCellClose(){this.ngZone.runOutsideAngular(()=>{window.clearTimeout(this.keepCellTimeout),this.keepEditCell=!0,this.keepCellTimeout=window.setTimeout(()=>{this.keepEditCell=!1},0)})}context(t){return p6(t)?this.newItemGroup:this.findByIndex(t)}columnContext(t,s){return p6(t)?this.newItemGroup:this.column&&s!==this.column?void 0:this.findByIndex(t)}isEdited(t){return!(!p6(t)||!Gi(this.newItemGroup))||!this.column&&Gi(this.findByIndex(t))}hasEdited(t){return Gi(this.context(t))}isEditedColumn(t,s){return!(!this.column||this.column!==s)&&Gi(this.findByIndex(t))}beginEdit(t){this.changes.emit({action:"edit",rowIndex:t})}beginAdd(){this.changes.emit({action:"add"})}endEdit(t){const{group:s}=this.context(t);this.changes.emit({action:"cancel",rowIndex:t,formGroup:s,isNew:p6(t)})}save(t){const{group:s}=this.context(t);this.changes.emit({action:"save",rowIndex:t,formGroup:s,isNew:p6(t)})}remove(t){this.changes.emit({action:"remove",rowIndex:t})}findByIndex(t){return this.editedIndices.find((n=>i=>i.index===n)(t))}onChanged(){this.ngZone.runOutsideAngular(()=>{this.changedSource.next()})}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([r("design:paramtypes",[e.R0b])],n),n})();const rb=n=>Gi(n)?{group:n.data,groupIndex:n.index,parentGroup:rb(n.parentGroup)}:null;let Xp=(()=>{let n=class{constructor(){this.changes=new Te.x,this.rowState=new Set}reset(){this.rowState.clear()}ngOnDestroy(){this.reset()}isExpanded(t){return this.userCallback?this.userCallback(t):!this.rowState.has(t.groupIndex)}isInExpandedGroup(t){let s=!0;for(;t&&s;)s=this.isExpanded({group:t.data,groupIndex:t.index,parentGroup:rb(t.parentGroup)}),t=t.parentGroup;return s}toggleRow(t){const s=rb(t.parentGroup),o=!this.isExpanded({group:t.data,groupIndex:t.index,parentGroup:s});this.changes.next({group:t.data,expand:o,groupIndex:t.index,parentGroup:s}),!this.userCallback&&(o?this.rowState.delete(t.index):this.rowState.add(t.index))}expandChildren(t){this.rowState.forEach(s=>((n,i)=>i!==n&&n.startsWith(i))(s,t)&&this.rowState.delete(s))}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})(),Jc=(()=>{class n{constructor(){this.changes=new Te.x,this.pageChange=new Te.x}get currentPage(){return this.skip/this.pageSize}notifyChanges(t){this.total=t.total,this.pageSize=t.pageSize,this.skip=t.skip,this.changes.next(t)}changePage(t){this.pageChange.next({skip:t*this.pageSize,take:this.pageSize})}changePageSize(t){this.pageChange.next({skip:0,take:t})}nextPage(){const t=this.currentPage+1;t*this.pageSize=0&&this.changePage(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n})();class YO extends h6{constructor(i){super(),Object.assign(this,i)}}class QO extends h6{constructor(i){super(),Object.assign(this,i)}}let S0=(()=>{let n=class{constructor(){this.changes=new Te.x,this.rowState=new Set}ngOnDestroy(){this.rowState.clear()}isExpanded(t,s){return this.userCallback?this.userCallback({index:t,dataItem:s}):this.rowState.has(t)}toggleRow(t,s){this.isExpanded(t,s)?this.collapseRow(t,s):this.expandRow(t,s)}expandRow(t,s){!this.emitEvent({dataItem:s,index:t,expand:!0})&&!this.userCallback&&this.rowState.add(t)}collapseRow(t,s){!this.emitEvent({dataItem:s,index:t,expand:!1})&&!this.userCallback&&this.rowState.delete(t)}emitEvent(t){const s=new(t.expand?QO:YO)(t);return this.changes.next(s),s.isDefaultPrevented()}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})(),f6=(()=>{let n=class{constructor(){this.requests=new Te.x}scrollTo(t){this.requests.next(t)}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})();const WO=(n,i)=>Cd(n,Wc("kendo-grid"))===i,ZO=Wc("th"),JO=Wc("td"),KO=Wc(".k-grid-footer td"),Hw=n=>JO(n)||ZO(n)||KO(n),R7=(n,i)=>{const t=((n,i)=>{let t=Cd(n,Hw);for(;t&&!WO(t,i);)t=Cd(t.parentElement,Hw);return t})(n,i),s=Cd(t,Wc("tr"));if(t&&s){let o=s.getAttribute("aria-rowindex");o=o?parseInt(o,10)-1:null;let u=t.getAttribute("aria-colindex");if(u=u?parseInt(u,10)-1:null,null!==o&&null!==u)return{colIndex:u,rowIndex:o,element:t}}},Vw=n=>(n=>n===z.R8.ArrowLeft||n===z.R8.ArrowRight||n===z.R8.ArrowUp||n===z.R8.ArrowDown)(n)||n===z.R8.PageUp||n===z.R8.PageDown||n===z.R8.Home||n===z.R8.End,eF=Wc("input");class jw{constructor(i,t){this.firstItemIndex=i,this.lastItemIndex=t}containsRow(i){return i<0||i>=this.firstItemIndex&&i<=this.lastItemIndex}intersects(i,t){return i<=this.firstItemIndex&&this.lastItemIndex<=t||this.firstItemIndex<=i&&i<=this.lastItemIndex||this.firstItemIndex<=t&&t<=this.lastItemIndex}}let $o=(()=>{let n=class{constructor(t,s,o,u,b,k,ae,q,Se,yt,at){this.zone=t,this.domEvents=s,this.pagerContextService=o,this.scrollRequestService=u,this.groupsService=b,this.detailsService=k,this.focusRoot=ae,this.editService=q,this.cd=Se,this.localization=yt,this.focusableParent=at,this.cellKeydown=new e.vpe,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new VO,this.cursor=new HO(this.model),this.changes=this.cursor.changes}set metadata(t){this.meta=t,this.cursor.metadata=t}get metadata(){return this.meta}get enabled(){return this.alive}get activeCell(){if(0!==this.mode)return this.cursor.cell}get activeRow(){if(0!==this.mode)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}get activeDataRow(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}init(t){this.alive=!0,this.focusRoot.active=!0,this.metadata=t;const s=(...u)=>b=>this.zone.isStable?(0,Ze.D)([!0]).pipe((0,Sn.U)(()=>b)):this.zone.onStable.pipe((0,Wt.q)(1),(0,Sn.U)(()=>b),...u),o=s();if(this.subs=new he.w0,this.subs.add(this.cursor.changes.subscribe(u=>this.onCursorChanges(u))),this.subs.add(this.domEvents.focus.pipe((0,ot.w)(o)).subscribe(u=>this.navigateTo(u.target))),this.subs.add(this.domEvents.focusOut.pipe((0,ye.h)(()=>0!==this.mode),(0,ot.w)(s((0,be.R)(this.domEvents.focus)))).subscribe(u=>this.onFocusOut(u))),this.subs.add(this.domEvents.windowBlur.pipe((0,ye.h)(()=>0!==this.mode)).subscribe(()=>this.onWindowBlur())),this.subs.add(this.editService.changes.pipe((0,ye.h)(u=>"edit"!==u.action&&2===this.mode),(0,ye.h)(u=>"cellClose"===u.action&&!u.prevented),(0,ot.w)(o)).subscribe(()=>this.leaveCell())),this.subs.add(this.pagerContextService.pageChange.subscribe(()=>this.cursor.reset(0,0))),this.subs.add(this.domEvents.keydown.subscribe(u=>this.onKeydown(u))),this.subs.add(this.domEvents.keydown.pipe((0,ye.h)(u=>u.keyCode===z.R8.Tab&&2===this.mode),ut(this.domEvents.focusOut.pipe((0,be.R)((0,Ne.F)(0).pipe((0,Wt.q)(1)))))).subscribe(()=>this.onTabout())),this.focusableParent){const u=new zO(this);this.focusableParent.registerElement(u)}this.deactivateElements()}ngOnDestroy(){this.subs&&this.subs.unsubscribe(),this.alive=!1}registerCell(t){if(t.logicalRowIndex!==this.pendingRowIndex){const s=this.model.registerCell(t);this.virtualCell&&this.cursor.activateVirtualCell(s)&&(this.virtualCell=!1)}}registerCellOnCurrentRow(t){t.logicalRowIndex===this.pendingRowIndex&&this.model.registerCell(t)}unregisterCell(t,s,o){this.model.unregisterCell(t,s,o)}registerRow(t){this.model.registerRow(t),this.pendingRowIndex=t.logicalRowIndex}updateRow(t){this.model.updateRow(t)}unregisterRow(t,s){this.model.unregisterRow(t,s);const o=this.model.lastRow;if(o&&0===this.mode){const u=this.needsViewport()&&this.viewport?this.viewport.lastItemIndex:o.index;this.activeRowIndex>u&&this.cursor.reset(0,0)}}isCellFocusable(t){return this.alive&&this.active&&2!==this.mode&&this.cursor.isActive(t.logicalRowIndex,t.logicalColIndex)}isCellFocused(t){return 1===this.mode&&this.isCellFocusable(t)}navigateTo(t){if(!this.alive)return;const s=R7(t,this.meta.gridElement.nativeElement);if(!s)return;const o=this.mode,u=((n,i,t=!1)=>{if(!Cd(i,u=>u===n))return!1;const o=Cd(i,u=>u===i);return o&&(t||o!==n)})(s.element,document.activeElement),b=2===this.mode&&this.activeRowIndex===s.rowIndex&&t!==s.element;if(u)this.mode=2,this.cursor.reset(s.rowIndex,s.colIndex),this.activateRow();else if(!b){this.mode=1,this.deactivateElements();const k=this.cursor.isActive(s.rowIndex,s.colIndex);1===o&&k||this.cursor.reset(s.rowIndex,s.colIndex)}}tryFocus(t){this.activateElements();const s=Nw(t);if(s){const o=R7(s,this.meta.gridElement.nativeElement);o&&(this.cursor.reset(o.rowIndex,o.colIndex),this.deactivateElements(),this.enterCell()),s.focus()}else this.deactivateElements();return!!s}needsViewport(){return this.meta&&this.meta.isVirtual}setViewport(t,s){if(this.viewport=new jw(t,s),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){const o=this.activeDataRow,b=o-s;t-o>0?this.cursor.reset(t+this.meta.headerRows):b>0&&this.cursor.reset(s-this.meta.headerRows)}}setColumnViewport(t,s){this.columnViewport=new jw(t,s)}focusCell(t,s){return this.mode=1,this.cursor.reset(t,s),this.activeCell}focusCellByElement(t){const s=R7(t,this.meta.gridElement.nativeElement);if(s)return this.focusCell(s.rowIndex,s.colIndex)}focusNextCell(t=!0){return this.focusAdjacentCell(!0,t)}focusPrevCell(t=!0){return this.focusAdjacentCell(!1,t)}toggle(t){this.active=t,this.cursor.announce()}hasFocus(){return 1===this.mode||2===this.mode}autoFocusCell(t,s){return!this.meta.virtualColumns||st.focusGroup&&t.focusGroup.activate())}moveCursorFwd(){return this.localization.rtl?this.cursor.moveLeft():this.cursor.moveRight()}moveCursorBwd(){return this.localization.rtl?this.cursor.moveRight():this.cursor.moveLeft()}onCursorKeydown(t){let s=!1;const o=t.ctrlKey||t.metaKey,u=o?5:1;if(!this.onCellKeydown(t))return;const b=this.cursor.row;switch(t.keyCode){case z.R8.ArrowDown:s=this.cursor.moveDown(u);break;case z.R8.ArrowUp:s=this.cursor.moveUp(u);break;case z.R8.ArrowRight:s=this.moveCursorFwd();break;case z.R8.ArrowLeft:s=this.moveCursorBwd();break;case z.R8.PageDown:if(this.metadata.isVirtual&&this.viewport){let ae=this.meta.headerRows+this.viewport.lastItemIndex+1;this.metadata.hasDetailTemplate&&ae++,ae=Math.min(this.meta.maxLogicalRowIndex,ae),this.cursor.reset(ae),s=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.nextPage()),s=!0);break;case z.R8.PageUp:if(this.metadata.isVirtual&&this.viewport){let Se=Math.max(this.meta.headerRows,this.viewport.firstItemIndex-(this.viewport.lastItemIndex-this.viewport.firstItemIndex)-1);this.cursor.reset(Se),s=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.prevPage()),s=!0);break;case z.R8.Home:this.cursor.reset(o?this.meta.isVirtual?this.meta.headerRows:this.model.firstRow.index:b.index,0,!1),s=!0;break;case z.R8.End:if(o)if(this.meta.isVirtual){let ae=this.meta.maxLogicalRowIndex;this.meta.hasDetailTemplate&&ae--,this.cursor.reset(ae,this.cursor.lastCellIndex(),!1)}else this.cursor.reset(this.model.lastRow.index,this.cursor.lastCellIndex(this.model.lastRow),!1);else{const ae=this.cursor.lastCellIndex(b),q=this.model.findCell(ae,b);q?this.cursor.reset(q.rowIndex,q.colIndex):this.cursor.reset(b.index,ae)}s=!0;break;case z.R8.Enter:case z.R8.F2:const k=b.groupItem;k?this.zone.run(()=>this.groupsService.toggleRow(k)):this.cursor.cell.detailExpandCell?this.zone.run(()=>this.detailsService.toggleRow(b.dataRowIndex,b.dataItem)):(this.enterCell(),this.cursor.cell.focusGroup.isNavigable()||(s=!0));break;default:!t.ctrlKey&&!t.altKey&&(n=>1===n.length&&n.match(/\S/))(t.key)&&this.enterCell()}s&&t.preventDefault()}onContentKeydown(t){if(!this.onCellKeydown(t))return;const s=!t.defaultPrevented&&t.keyCode===z.R8.Enter&&(n=>n&&eF(n)&&"text"===n.type.toLowerCase())(t.srcElement);t.keyCode===z.R8.Escape||t.keyCode===z.R8.F2||s?(this.leaveCell(),this.cursor.reset(),t.stopPropagation()):Vw(t.keyCode)&&this.cursor.cell.focusGroup.isNavigable()&&(this.onCursorKeydown(t),t.defaultPrevented&&this.leaveCell())}onCellKeydown(t){if(this.editService.isEditingCell()){const s=t.keyCode===z.R8.Enter,o=t.keyCode===z.R8.Escape,u=Vw(t.keyCode);if(s)this.editService.closeCell(t);else if(o)this.editService.closeCell(t),this.cd.detectChanges();else if(u)return!1}return this.cellKeydown.emit(t),!0}onCursorChanges(t){this.activeRowIndex=t.rowIndex;const s=this.activeDataRow;if(this.meta&&this.meta.isVirtual&&t.rowIndex>=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(s)&&s>-1&&this.scrollRequestService.scrollTo({row:s}),this.meta.virtualColumns&&t.colIndex>=this.meta.columns.lockedLeafColumns.length){const o=this.activeCell,{start:u,end:b}=this.model.cellRange(o);o||(this.virtualCell=!0),(!o&&0!==this.mode||o&&!this.columnViewport.intersects(u,b))&&this.scrollRequestService.scrollTo({column:t.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}onFocusOut(t){this.mode=F7(t.target)?0:1,this.deactivateElements(),this.cursor.announce()}onWindowBlur(){this.mode=0,this.deactivateElements(),this.cursor.announce()}onKeydown(t){1===this.mode?this.onCursorKeydown(t):2===this.mode&&this.onContentKeydown(t)}onTabout(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b),e.LFG(sh),e.LFG(Jc),e.LFG(f6),e.LFG(Xp),e.LFG(S0),e.LFG(Kp),e.LFG(El),e.LFG(e.sBO),e.LFG(G.oQ),e.LFG(Sd,8))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([K(10,(0,e.FiY)()),r("design:paramtypes",[e.R0b,sh,Jc,f6,Xp,S0,Kp,El,e.sBO,G.oQ,Sd])],n),n})(),e1=(()=>{let n=class{constructor(t,s,o){this.domEvents=t,this.localDataChangesService=s,this.navigationService=o,this.changes=new e.vpe,this.lastSelectionStartIndex=0,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.addSubscriptions()}get enableMarquee(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;const s=this.settings.selectable,o="object"==typeof s&&Gi(s)&&"multiple"===s.mode&&!1!==s.enabled&&!s.checkboxOnly&&s.drag;return this.active&&o}init(t){if(this.settings=t,this.currentSelection=[],t.selectable&&!1!==t.selectable.enabled){const s=this.getIterator();this._selectAllState=!0;let o=s.next();for(;!o.done;){if(o.value&&"data"===o.value.type){const u={dataItem:o.value.data,index:o.value.index};t.rowSelected(u)?this.currentSelection[o.value.index]=u:this._selectAllState=void 0}o=s.next()}0===this.currentSelection.length&&(this._selectAllState=!1)}}isSelected(t){if(this.settings&&this.active)return this.options.enabled&&Gi(this.currentSelection[t])}handleClick(t,s){if(this.dragging)return void(this.dragging=!1);let o;const u=s.ctrlKey||s.metaKey;"single"===this.options.mode&&u&&this.isSelected(t.index)?o=this.toggle(t):"multiple"===this.options.mode&&(u&&!s.shiftKey?o=this.toggle(t):s.shiftKey&&(o=this.addAllTo(t,u))),Gi(o)||(o=this.select(t),this.currentSelection[t.index]={dataItem:t.data,index:t.index}),(o.selectedRows.length||o.deselectedRows.length)&&(o.ctrlKey=u,o.shiftKey=s.shiftKey,this.changes.emit(o))}toggle(t){let s=[],o=[];this.lastSelectionStartIndex=t.index;const u={dataItem:t.data,index:t.index};return this.isSelected(t.index)?o.push(u):s.push(u),{deselectedRows:o,selectedRows:s}}toggleByIndex(t){const s=this.getIterator();this.selectAllChecked&&this.isSelected(t)&&(this.selectAllChecked=!1);let o=s.next();for(;!o.done;){if(o.value&&"data"===o.value.type&&o.value.index===t){const u={data:o.value.data,index:o.value.index};return this.isSelected(t)||"multiple"===this.options.mode?this.toggle(u):this.select(u)}o=s.next()}}select(t){let s=[],o=[];return this.lastSelectionStartIndex=t.index,this.isSelected(t.index)||o.push({dataItem:t.data,index:t.index}),this.currentSelection.forEach(u=>{u.index!==t.index&&s.push(u)}),{deselectedRows:s,selectedRows:o}}deselect(t){const s=this.getIterator();let o=s.next();for(;!o.done;){if(o.value&&"data"===o.value.type&&o.value.data===t){const u={dataItem:o.value.data,index:o.value.index};this.isSelected(u.index)&&this.changes.emit({ctrlKey:!1,deselectedRows:[u],selectedRows:[]})}o=s.next()}}addAllTo(t,s){let o=[],u=[];const b=Math.min(this.lastSelectionStartIndex,t.index),k=Math.max(this.lastSelectionStartIndex,t.index),ae=this.getIterator();let q=ae.next();for(;!q.done;){if(q.value&&"data"===q.value.type){const Se=q.value.index,yt={dataItem:q.value.data,index:Se};(Sek)&&this.isSelected(Se)&&!s&&u.push(yt),Se>=b&&Se<=k&&!this.isSelected(Se)&&o.push(yt)}q=ae.next()}return{deselectedRows:u,selectedRows:o}}updateAll(t){this.selectAllChecked=t;let s=[],o=[];const u=this.getIterator();let b=u.next();for(;!b.done;){if(b.value&&"data"===b.value.type){const ae=b.value.index,q={dataItem:b.value.data,index:ae};this.isSelected(ae)&&!t&&o.push(q),!this.isSelected(ae)&&t&&s.push(q)}b=u.next()}(s.length||o.length)&&this.changes.emit({ctrlKey:!0,deselectedRows:o,selectedRows:s,shiftKey:!0})}selectRange(t,s){let o=[],u=[];const b=Math.min(t,s),k=Math.max(t,s),ae=this.getIterator();let q=ae.next();for(;!q.done;){if(q.value&&"data"===q.value.type){const Se=q.value.index,yt={dataItem:q.value.data,index:Se};(Sek)&&this.isSelected(Se)&&u.push(yt),Se>=b&&Se<=k&&!this.isSelected(Se)&&o.push(yt)}q=ae.next()}return{deselectedRows:u,selectedRows:o}}get selectAllState(){return this._selectAllState}get selected(){return this.currentSelection.map(t=>t.index).filter(t=>"number"==typeof t)}get options(){const t={checkboxOnly:!1,enabled:!0,mode:"multiple"};return Gi(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(t,this.settings.selectable):t}ngOnDestroy(){this.removeSubscriptions()}targetArgs(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(t=>{this.options.enabled&&!this.options.checkboxOnly&&"contextmenu"!==t.type&&this.active&&this.handleClick({index:t.rowIndex,data:t.dataItem},t.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(t=>{this.mouseDownEventArgs=t,this.options.enabled&&(!this.options.mode||"multiple"===this.options.mode)&&!this.options.checkboxOnly&&t.originalEvent.shiftKey&&this.active&&(t.originalEvent.preventDefault(),this.navigationService.focusCellByElement(t.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(t=>{this.active&&Gi(t.action)&&"remove"===t.action&&this.deselect(t.item)}))}getIterator(){const t=this.settings.view.accessor();if(t)return t[ef]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(sh),e.LFG(Kd),e.LFG($o))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([r("design:paramtypes",[sh,Kd,$o])],n),n})();let rh=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridCellTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),b_=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),C_=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),m6=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridEditTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),S_=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridGroupFooterTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),ob=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridHeaderTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),w_=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridFooterTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),L3=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridColumnMenuTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})();const L7=n=>n.isSpanColumn;let ta=(()=>{class n{constructor(t,s){if(this.parent=t,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this.locked=!1,this.sticky=!1,this.lockable=!0,this.stickable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.headerTemplates=new e.n_E,this.columnMenuTemplates=new e.n_E,this.idService=s,t&&s&&t.idService.gridId()===s.gridId()&&!(n=>n.isColumnGroup||L7(n))(t))throw new Error("Columns can be nested only inside ColumnGroupComponent")}set width(t){this._width=parseInt(t,10)}get width(){return this._width}get level(){return this.parent&&L7(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}get isLocked(){return this.parent?this.parent.isLocked:this.locked}get colspan(){return 1}rowspan(t){return this.level{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridFilterCellTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),M_=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridFilterMenuTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),aF=0,nc=(()=>{let n=class{constructor(){this.prefix="k-grid"+aF++}gridId(){return this.prefix}cellId(t,s){return`${this.prefix}-r${t}c${s}`}selectionCheckboxId(t){return`${this.prefix}-checkbox${t}`}selectAllCheckboxId(){return`${this.prefix}-select-all`}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([r("design:paramtypes",[])],n),n})();var B7;let jr=B7=class extends ta{constructor(i,t){super(i,t),this.sortable=!0,this.groupable=!0,this.editor="text",this.filter="text",this.filterable=!0,this.editable=!0}get templateRef(){return this.template?this.template.templateRef:void 0}get groupHeaderTemplateRef(){return this.groupHeaderTemplate?this.groupHeaderTemplate.templateRef:void 0}get groupHeaderColumnTemplateRef(){return this.groupHeaderColumnTemplate?this.groupHeaderColumnTemplate.templateRef:void 0}get groupFooterTemplateRef(){return this.groupFooterTemplate?this.groupFooterTemplate.templateRef:void 0}get editTemplateRef(){return this.editTemplate?this.editTemplate.templateRef:void 0}get filterCellTemplateRef(){return this.filterCellTemplate?this.filterCellTemplate.templateRef:void 0}get filterMenuTemplateRef(){return this.filterMenuTemplate?this.filterMenuTemplate.templateRef:void 0}get displayTitle(){return void 0===this.title?this.field:this.title}};var N7;function ab(n){return n.isSpanColumn}jr.\u0275fac=function(i){return new(i||jr)(e.Y36(ta,13),e.Y36(nc,8))},jr.\u0275cmp=e.Xpm({type:jr,selectors:[["kendo-grid-column"]],contentQueries:function(i,t,s){if(1&i&&(e.Suo(s,rh,5),e.Suo(s,b_,5),e.Suo(s,C_,5),e.Suo(s,S_,5),e.Suo(s,m6,5),e.Suo(s,x_,5),e.Suo(s,M_,5)),2&i){let o;e.iGM(o=e.CRH())&&(t.template=o.first),e.iGM(o=e.CRH())&&(t.groupHeaderTemplate=o.first),e.iGM(o=e.CRH())&&(t.groupHeaderColumnTemplate=o.first),e.iGM(o=e.CRH())&&(t.groupFooterTemplate=o.first),e.iGM(o=e.CRH())&&(t.editTemplate=o.first),e.iGM(o=e.CRH())&&(t.filterCellTemplate=o.first),e.iGM(o=e.CRH())&&(t.filterMenuTemplate=o.first)}},inputs:{sortable:"sortable",groupable:"groupable",editor:"editor",filter:"filter",filterable:"filterable",editable:"editable",field:"field",format:"format"},features:[e._Bn([{provide:ta,useExisting:(0,e.Gpc)(()=>B7)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],jr.prototype,"field",void 0),p([(0,e.IIB)(),r("design:type",Object)],jr.prototype,"format",void 0),p([(0,e.IIB)(),r("design:type",Object)],jr.prototype,"sortable",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],jr.prototype,"groupable",void 0),p([(0,e.IIB)(),r("design:type",String)],jr.prototype,"editor",void 0),p([(0,e.IIB)(),r("design:type",String)],jr.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],jr.prototype,"filterable",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],jr.prototype,"editable",void 0),p([(0,e.aQ5)(rh,{static:!1}),r("design:type",rh)],jr.prototype,"template",void 0),p([(0,e.aQ5)(b_,{static:!1}),r("design:type",b_)],jr.prototype,"groupHeaderTemplate",void 0),p([(0,e.aQ5)(C_,{static:!1}),r("design:type",C_)],jr.prototype,"groupHeaderColumnTemplate",void 0),p([(0,e.aQ5)(S_,{static:!1}),r("design:type",S_)],jr.prototype,"groupFooterTemplate",void 0),p([(0,e.aQ5)(m6,{static:!1}),r("design:type",m6)],jr.prototype,"editTemplate",void 0),p([(0,e.aQ5)(x_,{static:!1}),r("design:type",x_)],jr.prototype,"filterCellTemplate",void 0),p([(0,e.aQ5)(M_,{static:!1}),r("design:type",M_)],jr.prototype,"filterMenuTemplate",void 0),jr=B7=p([K(0,(0,e.tp0)()),K(0,(0,e.AA_)()),K(0,(0,e.FiY)()),K(1,(0,e.FiY)()),r("design:paramtypes",[ta,nc])],jr);let oh=N7=class extends ta{constructor(i,t){if(super(i,t),this.isSpanColumn=!0,this.template=new e.n_E,this.editTemplate=new e.n_E,this.childColumns=new e.n_E,this.includeInChooser=!1,this._editable=!0,this._locked=!1,i&&i.isSpanColumn)throw new Error("SpanColumn cannot be nested inside another SpanColumn")}set editable(i){this._editable=i}get editable(){return Gi(this.editTemplateRef)&&this._editable}set width(i){}get width(){return this.childColumns.reduce((i,t)=>i+t.width,0)}get leafIndex(){return this.childColumns.first.leafIndex}get templateRef(){const i=this.template.first;return i?i.templateRef:void 0}get editTemplateRef(){const i=this.editTemplate.first;return i?i.templateRef:void 0}get colspan(){return this.childColumns.filter(i=>i.isVisible).length}set locked(i){this._locked=i}get locked(){return this._locked||this.childColumns.some(i=>i.locked)}get childrenArray(){return this.childColumns.toArray()}get hasChildren(){return this.childColumns.length>0}};oh.\u0275fac=function(i){return new(i||oh)(e.Y36(ta,13),e.Y36(nc,8))},oh.\u0275cmp=e.Xpm({type:oh,selectors:[["kendo-grid-span-column"]],contentQueries:function(i,t,s){if(1&i&&(e.Suo(s,rh,4),e.Suo(s,m6,4),e.Suo(s,jr,4)),2&i){let o;e.iGM(o=e.CRH())&&(t.template=o),e.iGM(o=e.CRH())&&(t.editTemplate=o),e.iGM(o=e.CRH())&&(t.childColumns=o)}},inputs:{editable:"editable",locked:"locked"},features:[e._Bn([{provide:ta,useExisting:(0,e.Gpc)(()=>N7)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),p([(0,e.AcB)(rh,{descendants:!1}),r("design:type",e.n_E)],oh.prototype,"template",void 0),p([(0,e.AcB)(m6,{descendants:!1}),r("design:type",e.n_E)],oh.prototype,"editTemplate",void 0),p([(0,e.AcB)(jr),r("design:type",e.n_E)],oh.prototype,"childColumns",void 0),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],oh.prototype,"editable",null),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],oh.prototype,"locked",null),oh=N7=p([K(0,(0,e.tp0)()),K(0,(0,e.AA_)()),K(0,(0,e.FiY)()),K(1,(0,e.FiY)()),r("design:paramtypes",[ta,nc])],oh);const nf=n=>n.reduce((i,t)=>i.concat(ab(t)?t.childrenArray:[t]),[]),w0=n=>nf(n).filter(i=>i.isVisible),Qw=n=>i=>(i||[]).reduce((t,s)=>t+(s[n]||0),0),lb=(Qw("width"),Qw("colspan")),D_=(new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),n=>n.reduce((i,t)=>(t.isColumnGroup?i=i.concat(D_((n=>n.children.filter(i=>i!==n))(t))):t.isSpanColumn?i=i.concat(t.childrenArray):i.push(t),i),[]).filter(i=>i.isVisible)),z7=(n,...i)=>D_(i).some(n),Ww=n=>ih(n.parent)&&ab(n.parent);var H7;function B3(n){return n.isColumnGroup}let sf=H7=class extends ta{constructor(i,t){if(super(i,t),this.parent=i,this.includeInChooser=!1,this.isColumnGroup=!0,this.minResizableWidth=10,i&&i.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent")}rowspan(){return 1}get colspan(){return this.children&&1!==this.children.length?lb(this.children.filter(i=>i!==this&&i.isVisible)):1}get leafIndex(){return this.children?(this.firstChild||{}).leafIndex:-1}get childrenArray(){return this.children.filter(i=>i!==this)}get hasChildren(){return Boolean(this.firstChild)}get firstChild(){return this.children.find(i=>i!==this)}};sf.\u0275fac=function(i){return new(i||sf)(e.Y36(ta,13),e.Y36(nc,8))},sf.\u0275cmp=e.Xpm({type:sf,selectors:[["kendo-grid-column-group"]],contentQueries:function(i,t,s){if(1&i&&e.Suo(s,ta,4),2&i){let o;e.iGM(o=e.CRH())&&(t.children=o)}},features:[e._Bn([{provide:ta,useExisting:(0,e.Gpc)(()=>H7)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),p([(0,e.AcB)(ta),r("design:type",e.n_E)],sf.prototype,"children",void 0),sf=H7=p([K(0,(0,e.tp0)()),K(0,(0,e.AA_)()),K(0,(0,e.FiY)()),K(1,(0,e.FiY)()),r("design:paramtypes",[ta,nc])],sf);let rf=(()=>{let n=class{constructor(t){this.templateRef=t,this._condition=()=>!0}set showIf(t){if("function"!=typeof t)throw new Error(`showIf must be a function, but received ${JSON.stringify(t)}.`);this._condition=t}get showIf(){return this._condition}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridDetailTemplate",""]],inputs:{showIf:["kendoGridDetailTemplateShowIf","showIf"]}}),p([(0,e.IIB)("kendoGridDetailTemplateShowIf"),r("design:type",Function),r("design:paramtypes",[Function])],n.prototype,"showIf",null),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})();class db{constructor(i){this.columns=i,this.allColumns=new e.n_E,this.leafColumns=new e.n_E,this.lockedColumns=new e.n_E,this.nonLockedColumns=new e.n_E,this.lockedLeafColumns=new e.n_E,this.nonLockedLeafColumns=new e.n_E,this.totalLevels=0,this.changes=new e.vpe,this.leafColumnsToRender=[],this.lockedColumnsToRender=[],this.nonLockedColumnsToRender=[],this.hasGroupHeaderColumn=!1,this.hasGroupFooter=!1,this.hasFooter=!1,this.unlockedWidth=0}refresh(){const i=this.totalLevels,t=new Array,s=new Array,o=new Array,u=new Array,b=new Array,k=new Array,ae=new Array,q=new Array,Se=new Array;let yt=!1,at=!1,Ht=!1,sn=0,jn=0;this.totalLevels=0,this.columns().forEach(Pn=>{const Dn=!0===Pn.isLocked?s:o,fi=!0===Pn.isLocked?u:b,zn=!0===Pn.isLocked?q:Se;B3(Pn)||(Dn.push(Pn),t.push(Pn),ae.push.apply(ae,w0([Pn])),zn.push.apply(zn,w0([Pn])),yt=yt||z7(Vn=>Boolean(Vn.groupHeaderColumnTemplateRef),Pn),at=at||z7(Vn=>Boolean(Vn.groupFooterTemplateRef),Pn),Ht=Ht||z7(Vn=>Boolean(Vn.footerTemplateRef),Pn),Pn.isLocked||(sn+=Pn.width||0),Pn.isSpanColumn?Pn.childColumns.forEach(Vn=>{Vn.leafIndex=jn++}):Pn.leafIndex=jn++),fi.push(Pn),k.push(Pn),this.totalLevels=Pn.level>this.totalLevels?Pn.level:this.totalLevels}),this.hasGroupHeaderColumn=yt,this.hasGroupFooter=at,this.hasFooter=Ht,this.leafColumnsToRender=ae,this.lockedColumnsToRender=q,this.nonLockedColumnsToRender=Se,this.unlockedWidth=sn;const oi=((...n)=>{let i=!1;for(let t=0;t{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridNoRecordsTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})();let wc=(()=>{let n=class{constructor(){this.isColumnMenu=!1,this.isPopupOpen=!1}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})(),Yo=(()=>{let n=class{constructor(t){this.changes=new Te.x,this.menuTabbingService=t}filter(t){this.changes.next(t)}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(wc,8))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[wc])],n),n})(),k_=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoPagerTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})();let C6=(()=>{let n=class{constructor(t){this.ngZone=t,this.changes=new Te.x,this.elements=[],this.subscriptions=new he.w0,this.headerSubscription=new he.w0,this.bodySubscription=new he.w0,this.subscriptions.add(this.changes.subscribe(s=>this.scrollLeft(s)))}registerEmitter(t,s){this.unregister(s),this.elements.push({element:t,sourceType:s}),("body"===s||"header"===s)&&this.ngZone.runOutsideAngular(()=>{const o=(0,Me.R)(t,"scroll").pipe((0,Sn.U)(({target:{scrollLeft:b}})=>({scrollLeft:b,sourceType:s}))),u=o.pipe((0,Nt.x)((b,k)=>b.scrollLeft===k.scrollLeft),(0,ye.h)(b=>!this.source||this.source===b.sourceType),(0,$t.b)(b=>this.source=b.sourceType)).subscribe(b=>this.changes.next(b));u.add(o.pipe((0,ye.h)(b=>this.source&&this.source!==b.sourceType)).subscribe(()=>this.source=void 0)),"body"===s?this.bodySubscription.add(u):this.headerSubscription.add(u)})}destroy(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}scrollLeft({scrollLeft:t,sourceType:s}){this.ngZone.runOutsideAngular(()=>{this.elements.filter(o=>s!==o.sourceType).forEach(({element:o})=>o.scrollLeft=t)})}unregister(t){const s=this.elements.findIndex(o=>o.sourceType===t);s>-1&&("header"===t?(this.headerSubscription.unsubscribe(),this.headerSubscription=new he.w0):"body"===t&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new he.w0),this.elements.splice(s,1))}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([r("design:paramtypes",[e.R0b])],n),n})();class FF extends h6{constructor(i){super(),this.originalEvent=i}}let I0=(()=>{let n=class{constructor(t,s,o,u,b){this.popupService=t,this.renderer=s,this.ngZone=o,this.localization=b,this.onClose=new Te.x,this.scrollSubscription=u.changes.subscribe(()=>this.destroy())}open(t,s,o,u="k-grid-filter-popup"){const b=Gi(o)&&this.popupRef===o;if(this.destroy(),!b){const k=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:k},popupAlign:{vertical:"top",horizontal:k},anchor:t,popupClass:u,content:s,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(t)}return this.popupRef}destroy(){this.popupRef&&(this.detachClose(),this.popupRef.close(),this.popupRef=null)}ngOnDestroy(){this.destroy(),this.scrollSubscription.unsubscribe()}detachClose(){this.removeClick&&this.removeClick()}attachClose(t){this.detachClose(),this.ngZone.runOutsideAngular(()=>this.removeClick=this.renderer.listen("document","click",s=>{if(!((n,i)=>{for(;n;){if(i(n))return!0;n=n.parentNode}return!1})(s.target,o=>this.popupRef.popupElement===o||o===t)){const o=new FF(s);this.onClose.next(o),o.isDefaultPrevented()||this.destroy()}}))}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(un.qL),e.LFG(e.Qsj),e.LFG(e.R0b),e.LFG(C6),e.LFG(G.oQ))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([r("design:paramtypes",[un.qL,e.Qsj,e.R0b,C6,G.oQ])],n),n})();const VF={left:"0px",right:"0px"};let ll=(()=>{let n=class{constructor(){this.visibilityChange=new e.vpe,this.lockedChange=new e.vpe,this.stickyChange=new e.vpe,this.columnRangeChange=new e.vpe,this.columnsContainer=new db(()=>[])}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get isLocked(){return this.lockedLeafColumns.length>0}get totalLevels(){return this.columnsContainer.totalLevels}get leafNamedColumns(){const t=nf(this.list().filterSort(s=>!s.isColumnGroup)).filter(s=>s.matchesMedia&&s.displayTitle);return _l(t,[{field:"locked",dir:"desc"}])}get unlockedRootCount(){return this.list().rootColumns().filter(t=>!t.locked&&t.isVisible).length}stickyColumnsStyles(t){if(this.stickyColumns||(this.stickyColumns=this.list().rootColumns().filter(o=>o.sticky&&!o.locked&&o.isVisible)),0===this.stickyColumns.length)return VF;const s=this.stickyColumns.reduce((o,u)=>(u.leafIndext.leafIndex&&(o.right+=u.width),o),{left:0,right:0});return{left:`${s.left}px`,right:`${s.right}px`}}init(t,s){this.columnsContainer=t,this.list=s,this.stickyColumns=null}changeVisibility(t){this.stickyColumns=null,this.visibilityChange.emit(t)}changeLocked(t){this.stickyColumns=null,this.lockedChange.emit(t)}changeStuck(t){this.stickyColumns=null,this.stickyChange.emit(t)}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n})(),x6=(()=>{class n{constructor(){this.changes=new Te.x}sort(t){this.changes.next(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n})();let gb=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridCellLoadingTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})();new e.OlP("grid-scroll-service-factory");let vb=(()=>{class n extends G.Z1{}return n.\u0275fac=function(){let i;return function(s){return(i||(i=e.n5z(n)))(s||n)}}(),n.\u0275dir=e.lG2({type:n,inputs:{groupPanelEmpty:"groupPanelEmpty",noRecords:"noRecords",pagerLabel:"pagerLabel",pagerFirstPage:"pagerFirstPage",pagerLastPage:"pagerLastPage",pagerPreviousPage:"pagerPreviousPage",pagerNextPage:"pagerNextPage",pagerPage:"pagerPage",pagerItemsPerPage:"pagerItemsPerPage",pagerOf:"pagerOf",pagerItems:"pagerItems",pagerPageNumberInputTitle:"pagerPageNumberInputTitle",filter:"filter",filterInputLabel:"filterInputLabel",filterMenuTitle:"filterMenuTitle",filterMenuOperatorsDropDownLabel:"filterMenuOperatorsDropDownLabel",filterMenuLogicDropDownLabel:"filterMenuLogicDropDownLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterGteOperator:"filterGteOperator",filterGtOperator:"filterGtOperator",filterLteOperator:"filterLteOperator",filterLtOperator:"filterLtOperator",filterIsTrue:"filterIsTrue",filterIsFalse:"filterIsFalse",filterBooleanAll:"filterBooleanAll",filterAfterOrEqualOperator:"filterAfterOrEqualOperator",filterAfterOperator:"filterAfterOperator",filterBeforeOperator:"filterBeforeOperator",filterBeforeOrEqualOperator:"filterBeforeOrEqualOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",filterAndLogic:"filterAndLogic",filterOrLogic:"filterOrLogic",loading:"loading",gridLabel:"gridLabel",columnMenu:"columnMenu",setColumnPosition:"setColumnPosition",columns:"columns",lock:"lock",unlock:"unlock",stick:"stick",unstick:"unstick",sortable:"sortable",sortAscending:"sortAscending",sortDescending:"sortDescending",sortedAscending:"sortedAscending",sortedDescending:"sortedDescending",sortedDefault:"sortedDefault",columnsApply:"columnsApply",columnsReset:"columnsReset",detailExpand:"detailExpand",detailCollapse:"detailCollapse",filterDateToday:"filterDateToday",filterDateToggle:"filterDateToggle",filterNumericDecrement:"filterNumericDecrement",filterNumericIncrement:"filterNumericIncrement",selectionCheckboxLabel:"selectionCheckboxLabel",selectAllCheckboxLabel:"selectAllCheckboxLabel",groupCollapse:"groupCollapse",groupExpand:"groupExpand"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"groupPanelEmpty",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"noRecords",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerLabel",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerFirstPage",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerLastPage",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerPreviousPage",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerNextPage",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerPage",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerItemsPerPage",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerOf",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerItems",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"pagerPageNumberInputTitle",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterInputLabel",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterMenuTitle",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterMenuOperatorsDropDownLabel",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterMenuLogicDropDownLabel",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterEqOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterNotEqOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterIsNullOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterIsNotNullOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterIsEmptyOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterIsNotEmptyOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterStartsWithOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterContainsOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterNotContainsOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterEndsWithOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterGteOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterGtOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterLteOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterLtOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterIsTrue",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterIsFalse",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterBooleanAll",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterAfterOrEqualOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterAfterOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterBeforeOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterBeforeOrEqualOperator",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterFilterButton",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterClearButton",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterAndLogic",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterOrLogic",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"loading",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"gridLabel",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"columnMenu",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"setColumnPosition",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"columns",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"lock",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"unlock",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"stick",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"unstick",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"sortable",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"sortAscending",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"sortDescending",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"sortedAscending",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"sortedDescending",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"sortedDefault",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"columnsApply",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"columnsReset",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"detailExpand",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"detailCollapse",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterDateToday",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterDateToggle",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterNumericDecrement",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterNumericIncrement",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"selectionCheckboxLabel",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"selectAllCheckboxLabel",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"groupCollapse",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"groupExpand",void 0),n})();var K7;let gg=K7=class extends vb{constructor(i){super(),this.service=i}};var q7;gg.\u0275fac=function(i){return new(i||gg)(e.Y36(G.oQ))},gg.\u0275dir=e.lG2({type:gg,selectors:[["","kendoGridLocalizedMessages",""]],features:[e._Bn([{provide:vb,useExisting:(0,e.Gpc)(()=>K7)}]),e.qOj]}),gg=K7=p([r("design:paramtypes",[G.oQ])],gg);let mg=q7=class extends vb{constructor(i){super(),this.service=i}get override(){return!0}};mg.\u0275fac=function(i){return new(i||mg)(e.Y36(G.oQ))},mg.\u0275cmp=e.Xpm({type:mg,selectors:[["kendo-grid-messages"]],features:[e._Bn([{provide:vb,useExisting:(0,e.Gpc)(()=>q7)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),mg=q7=p([r("design:paramtypes",[G.oQ])],mg);let X7=(()=>{let n=class{constructor(t,s){this.localization=t,this.columnInfoService=s,this.columns=[],this.groups=[],this.filterRowClass=!0}addStickyStyles(t){const s=t.sticky?this.columnInfoService.stickyColumnsStyles(t):null;return Object.assign({},s,t.filterStyle)}filterLabel(t){const s=this.localization.get("filterInputLabel")||"";return Qc(s,"columnName",t.title||t.field)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(ll))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-filter-row",s.filterRowClass)},inputs:{columns:"columns",groups:"groups",filter:"filter",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:$T,decls:3,vars:3,consts:[["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"k-grid-header-sticky","ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex"]],template:function(t,s){1&t&&(e.YNc(0,YT,1,2,"td",0),e.YNc(1,QT,1,2,"td",1),e.YNc(2,WT,1,9,"td",2)),2&t&&(e.Q6J("ngForOf",s.groups),e.xp6(1),e.Q6J("ngIf",null==s.detailTemplate?null:s.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",s.columns))},directives:function(){return[Re.sg,Re.O5,e9,G3,Re.PC,Re.mk]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Array)],n.prototype,"columns",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",Array)],n.prototype,"groups",void 0),p([(0,e.IIB)(),r("design:type",rf)],n.prototype,"detailTemplate",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"logicalRowIndex",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"lockedColumnsCount",void 0),p([(0,e.pfw)("class.k-filter-row"),r("design:type",Boolean)],n.prototype,"filterRowClass",void 0),n=p([r("design:paramtypes",[G.oQ,ll])],n),n})();const P_=n=>{if(n)return Ft(n)?{filters:P_(n.filters),logic:n.logic}:Array.isArray(n)?n.map(P_):(n=>(n=>{const i={};if(Object.assign(i,n),n.constructor!==Object){const t=n.constructor.prototype;Object.getOwnPropertyNames(t).forEach(s=>{"constructor"!==s&&t.hasOwnProperty(s)&&(i[s]=n[s])})}return i})(n))(n)};let e9=(()=>{let n=class{constructor(){this._templateContext={}}get filter(){return this._filter}set filter(t){this._filter=P_(t)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}get hasTemplate(){return Gi(this.column.filterCellTemplateRef)}get isFilterable(){return Gi(this.column)&&!Tl(this.column.field)&&this.column.filterable}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["","kendoGridFilterCell",""]],inputs:{filter:"filter",column:"column"},attrs:ZT,decls:1,vars:1,consts:[[3,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,s){1&t&&e.YNc(0,eE,3,3,"ng-template",0),2&t&&e.Q6J("ngIf",s.isFilterable)},directives:function(){return[Re.O5,Re.RF,Re.n9,Nx,Re.tP]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],n.prototype,"filter",null),n})();const Ix=(n=>i=>Object.keys(n).reduce((t,s)=>(t[n[s]]=i.get(s),t),{}))({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterAfterOrEqualOperator:"after-eq",filterAfterOperator:"after",filterBeforeOrEqualOperator:"before-eq",filterBeforeOperator:"before"}),_b=n=>n.map(i=>i.toJSON());let oo=(()=>{class n{constructor(t,s){this.operator=t,this.localization=s,this.messages=Ix(this.localization),this._text=this.messages[this.operator],this.localization.changes.subscribe(this.refreshText.bind(this))}get text(){return this._text}set text(t){this._text=Tl(t)?this.messages[this.operator]:t}toJSON(){return{text:this.text,value:this.operator}}refreshText(){const t=this._text===this.messages[this.operator];this.messages=Ix(this.localization),t&&(this._text=this.messages[this.operator])}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n,inputs:{text:"text"}}),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],n.prototype,"text",null),n})();const z3=(n,i,t,s)=>Gi(i)&&Gi(i.filters)&&i.filters.length>n?i.filters[n]:((n,i,t)=>((i=i||{filters:[],logic:"and"}).filters[n]=t,t))(n,i,{field:t,operator:s}),H3=n=>[{text:n.get("filterAndLogic"),value:"and"},{text:n.get("filterOrLogic"),value:"or"}],t9=n=>Gi(n.filters)?n.filters.reduce((i,t)=>i.concat(Ft(t)?t9(t):[t]),[]):[],Dx=(n,i)=>{Gi(n)&&Gi(n.filters)&&(n.filters=n.filters.filter(t=>Ft(t)?(Dx(t,i),t.filters.length):t.field!==i))},L_=(n,i)=>t9(n||{}).filter(t=>t.field===i),n9=(n,i)=>(Dx(n,i),n),yb=n=>i=>Object.keys(n).map(t=>({text:i.get(t),value:n[t]}));let V3=(()=>{class n{constructor(t){this.filterService=t,this.operatorList=new e.n_E}get hostClasses(){return!0}get operators(){return this._operators.length?this._operators:this.defaultOperators}set operators(t){this._operators=t}ngAfterContentInit(){this.operationListSubscription=tb(this.operatorList).pipe((0,Sn.U)(t=>t.toArray()),(0,Sn.U)(_b)).subscribe(t=>{this.operators=t})}ngOnDestroy(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}filterByField(t){return((n,i)=>{let[t]=L_(n,i);return t})(this.filter,t)}filtersByField(t){return L_(this.filter,t)}removeFilter(t){return n9(this.filter,t)}updateFilter(t){const s=this.filter||{filters:[],logic:"and"};let[o]=t9(s).filter(u=>u.field===t.field);return Gi(o)?Object.assign(o,t):s.filters.push(t),s}applyFilter(t){this.filterService.filter(t)}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n,contentQueries:function(t,s,o){if(1&t&&e.Suo(o,oo,4),2&t){let u;e.iGM(u=e.CRH())&&(s.operatorList=u)}},hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-filtercell",s.hostClasses)}}),p([(0,e.pfw)("class.k-filtercell"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"hostClasses",null),p([(0,e.AcB)(oo),r("design:type",e.n_E)],n.prototype,"operatorList",void 0),n})();const Tx=yb({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"});let Ex=(()=>{class n extends V3{constructor(t,s){super(t),this.localization=s,this.operator="eq",this.step=1,this.spinners=!0,this.defaultOperators=Tx(this.localization)}set format(t){this._format=t}get format(){return Tl(this._format)?this.columnFormat:this._format}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!Tl(this.column.format)?E7(this.column.format):"n2"}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=Tx(this.localization),this.operatorList.length&&(this.operators=_b(this.operatorList.toArray()))}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n,inputs:{operator:"operator",step:"step",spinners:"spinners",format:"format",column:"column",filter:"filter",min:"min",max:"max",decimals:"decimals"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"operator",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"step",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"min",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"max",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"spinners",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"decimals",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],n.prototype,"format",null),n})(),bb=(()=>{let n=class extends Ex{constructor(t,s){super(t,s),this.localization=s,this.filterDelay=500,this.showOperators=!0}messageFor(t){return this.localization.get(t)}get columnLabel(){const t=this.localization.get("filterInputLabel")||"";return Qc(t,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Yo),e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[e.qOj],decls:3,vars:17,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e.TgZ(1,"kendo-numerictextbox",1),e._UZ(2,"kendo-numerictextbox-messages",2),e.qZA(),e.qZA()),2&t&&(e.Q6J("column",s.column)("filter",s.filter)("operators",s.operators)("defaultOperator",s.operator)("showOperators",s.showOperators),e.xp6(1),e.Q6J("columnLabel",s.columnLabel)("filterDelay",s.filterDelay)("autoCorrect",!0)("value",null==s.currentFilter?null:s.currentFilter.value)("format",s.format)("decimals",s.decimals)("spinners",s.spinners)("min",s.min)("max",s.max)("step",s.step),e.xp6(1),e.Q6J("increment",s.messageFor("filterNumericIncrement"))("decrement",s.messageFor("filterNumericDecrement")))},directives:function(){return[j3,Fi.Uw,Sd,Wh,Fi.wS]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"filterDelay",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showOperators",void 0),n=p([r("design:paramtypes",[Yo,G.oQ])],n),n})(),Wh=(()=>{let n=class{constructor(t,s,o,u){this.element=o,this.renderer=u,this.change=new e.vpe,this.composing=!1,this.filterDelay=500,this.changeRequests=new Te.x,this.accessor=t[0],s.runOutsideAngular(()=>{const b=u.listen(o.nativeElement,"compositionstart",()=>this.composing=!0),k=u.listen(o.nativeElement,"compositionend",()=>this.composing=!1);this.unsubscribeEvents=()=>{b(),k()}})}set value(t){this.accessor.writeValue(t)}set disabled(t){this.accessor.setDisabledState(t)}ngAfterViewInit(){this.addAriaAttributes(),this.accessor.registerOnChange(t=>this.filterDelay>0?this.changeRequests.next(t):this.change.emit(t)),this.subscribeChanges()}ngOnChanges(t){(0,z.ln)("filterDelay",t)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.unsubscribeChanges(),this.unsubscribeEvents()}subscribeChanges(){this.changeRequestsSubscription=this.changeRequests.pipe((0,mt.b)(this.filterDelay),(0,ye.h)(()=>!this.composing)).subscribe(t=>this.change.emit(t))}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}addAriaAttributes(){const t=this.columnLabel;if(this.kendoInput&&this.kendoInput.focusableId&&(0,z.X_)()){const s=this.element.nativeElement.querySelector(`#${this.kendoInput.focusableId}`);this.renderer.setAttribute(s,"aria-label",t)}else this.renderer.setAttribute(this.element.nativeElement,"aria-label",t)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(zt.JU,2),e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoFilterInput",""]],contentQueries:function(t,s,o){if(1&t&&e.Suo(o,z.GX,7),2&t){let u;e.iGM(u=e.CRH())&&(s.kendoInput=u.first)}},inputs:{filterDelay:"filterDelay",value:"value",columnLabel:"columnLabel"},features:[e.TTD]}),p([(0,e.aQ5)(z.GX,{static:!0}),r("design:type",Object)],n.prototype,"kendoInput",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"filterDelay",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"columnLabel",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],n.prototype,"value",null),n=p([K(0,(0,e.PiD)()),K(0,(0,e.tBr)(zt.JU)),r("design:paramtypes",[Array,e.R0b,e.SBq,e.Qsj])],n),n})();const vR=new Set(["isnull","isnotnull","isempty","isnotempty"]),Cb=n=>vR.has(n);let kx=(()=>{class n extends V3{constructor(t){super(t),this.operators=[]}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){const t=this.currentFilter;return this._operator||(this._operator=t?t.operator:this.defaultOperator),this._operator}set currentOperator(t){this._operator=t;const s=Cb(t);this.filterInputDisabled=s,s?this.applyNoValueFilter(t):!I7(t)&&Gi(this.currentFilter)&&this.onChange(this.currentFilter.value)}get defaultOperator(){return Tl(this._defaultOperator)?this.operators&&this.operators.length?this.operators[0].value:"eq":this._defaultOperator}set defaultOperator(t){this._defaultOperator=t}set filterInputDisabled(t){!this.input||(this.input.disabled=t)}ngAfterContentInit(){Gi(this.input)&&(this.changeSubscription=this.input.change.subscribe(this.onChange.bind(this)),this.filterInputDisabled=Cb(this.currentOperator))}ngOnDestroy(){super.ngOnDestroy(),this.changeSubscription&&this.changeSubscription.unsubscribe()}onChange(t){(!Tl(t)||this.filterByField(this.column.field))&&this.filterChange(Tl(t)?this.removeFilter(this.column.field):this.updateFilter({field:this.column.field,operator:this.currentOperator,value:t}))}onClear(){this.onChange(null),this.filterInputDisabled=Cb(this.defaultOperator)}applyNoValueFilter(t){this.filterChange(this.updateFilter({field:this.column.field,operator:t,value:null}))}ngOnChanges(t){(0,z.ln)("filter",t,!1)&&(this._operator=null,this.filterInputDisabled=Cb(this.currentOperator))}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n,contentQueries:function(t,s,o){if(1&t&&e.Suo(o,Wh,5),2&t){let u;e.iGM(u=e.CRH())&&(s.input=u.first)}},inputs:{operators:"operators",defaultOperator:"defaultOperator",column:"column",filter:"filter"},features:[e.qOj,e.TTD]}),p([(0,e.IIB)(),r("design:type",Array)],n.prototype,"operators",void 0),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.aQ5)(Wh,{static:!1}),r("design:type",Wh)],n.prototype,"input",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],n.prototype,"defaultOperator",null),n})();const _R=["isnull","isnotnull","isempty","isnotempty"];let j3=(()=>{let n=class extends kx{constructor(t){super(t),this.showOperators=!0}get hostClasses(){return!0}get overrideBaseClasses(){return!1}get showButton(){const t=this.currentFilter;return Gi(t)&&(!Tl(t.value)||_R.indexOf(String(t.operator))>=0)}filterChange(t){this.applyFilter(t)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Yo))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(t,s){2&t&&e.ekj("k-filtercell-wrapper",s.hostClasses)("k-filtercell",s.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[e.qOj],ngContentSelectors:M7,decls:2,vars:4,consts:[[3,"showOperators","operators","showButton","value","clear","valueChange"]],template:function(t,s){1&t&&(e.F$t(),e.Hsn(0),e.TgZ(1,"kendo-grid-filter-cell-operators",0),e.NdJ("clear",function(){return s.onClear()})("valueChange",function(u){return s.currentOperator=u}),e.qZA()),2&t&&(e.xp6(1),e.Q6J("showOperators",s.showOperators)("operators",s.operators)("showButton",s.showButton)("value",s.currentOperator))},directives:function(){return[s9]},encapsulation:2}),p([(0,e.pfw)("class.k-filtercell-wrapper"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"hostClasses",null),p([(0,e.pfw)("class.k-filtercell"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"overrideBaseClasses",null),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showOperators",void 0),n=p([r("design:paramtypes",[Yo])],n),n})();const yR=yb({filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"});let Ax=(()=>{class n extends V3{constructor(t,s){super(t),this.localization=s,this.operator="contains"}get currentFilter(){return this.filterByField((this.column||{}).field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=yR(this.localization),this.operatorList.length&&(this.operators=_b(this.operatorList.toArray()))}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n,inputs:{operator:"operator",column:"column",filter:"filter"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"operator",void 0),n})(),B_=(()=>{let n=class extends Ax{constructor(t,s){super(t,s),this.filterDelay=500,this.showOperators=!0}get columnLabel(){const t=this.localization.get("filterInputLabel")||"";return Qc(t,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Yo),e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[e.qOj],decls:2,vars:8,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",1,"k-textbox",3,"columnLabel","filterDelay","ngModel"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"input",1),e.qZA()),2&t&&(e.Q6J("column",s.column)("filter",s.filter)("operators",s.operators)("defaultOperator",s.operator)("showOperators",s.showOperators),e.xp6(1),e.Q6J("columnLabel",s.columnLabel)("filterDelay",s.filterDelay)("ngModel",null==s.currentFilter?null:s.currentFilter.value))},directives:[j3,zt.Fj,Sd,Wh,zt.JJ,zt.On],encapsulation:2}),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"filterDelay",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showOperators",void 0),n=p([r("design:paramtypes",[Yo,G.oQ])],n),n})(),s9=(()=>{let n=class{constructor(t){this.localization=t,this.clearText="Clear",this.operators=[],this.showOperators=!0,this.valueChange=new e.vpe,this.clear=new e.vpe}get hostClasses(){return!0}onChange(t){this.valueChange.emit(t)}clearClick(){return this.clear.emit(),!1}clearKeydown(t){(t.keyCode===z.R8.Enter||t.keyCode===z.R8.Space)&&this.clear.emit()}dropdownKeydown(t){t.defaultPrevented||t.keyCode===z.R8.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),t.preventDefault())}ngOnInit(){this.localization.changes.subscribe(()=>this.clearText=this.localization.get("filterClearButton"))}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(t,s){if(1&t&&e.Gf(tE,5),2&t){let o;e.iGM(o=e.CRH())&&(s.dropdown=o.first)}},hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-filtercell-operator",s.hostClasses)},inputs:{operators:"operators",showOperators:"showOperators",showButton:"showButton",value:"value"},outputs:{valueChange:"valueChange",clear:"clear"},decls:3,vars:5,consts:[["kendoGridFocusable","","class","k-dropdown-operator","iconClass","k-i-filter","textField","text","valueField","value",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown",4,"ngIf"],["type","button","kendoGridFocusable","",1,"k-button","k-button-icon",3,"ngClass","title","click","keydown"],[1,"k-icon","k-i-filter-clear"],["kendoGridFocusable","","iconClass","k-i-filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown"],["dropdown",""]],template:function(t,s){1&t&&(e.YNc(0,nE,2,5,"kendo-dropdownlist",0),e.TgZ(1,"button",1),e.NdJ("click",function(){return s.clearClick()})("keydown",function(u){return s.clearKeydown(u)}),e._UZ(2,"span",2),e.qZA()),2&t&&(e.Q6J("ngIf",s.showOperators),e.xp6(1),e.Q6J("ngClass",e.VKq(3,iE,s.showButton))("title",s.clearText))},directives:[Re.O5,Sd,Re.mk,gi.rI],encapsulation:2}),p([(0,e.pfw)("class.k-filtercell-operator"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"hostClasses",null),p([(0,e.i9L)("dropdown",{static:!1}),r("design:type",gi.rI)],n.prototype,"dropdown",void 0),p([(0,e.IIB)(),r("design:type",Array)],n.prototype,"operators",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showButton",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showOperators",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"value",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"clear",void 0),n=p([r("design:paramtypes",[G.oQ])],n),n})();const bR=yb({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"});let Ox=(()=>{let n=class extends V3{constructor(t,s,o){super(t),this.localization=o,this.showOperators=!0,this.defaultOperators=bR(this.localization),this.column=s}set valueField(t){this._valueField=t}get valueField(){return this._valueField?this._valueField:this.column.field}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:"contains"}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Yo),e.Y36(jr),e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",valueField:"valueField",filter:"filter",data:"data"},features:[e.qOj],decls:2,vars:7,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","valueField","value"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"kendo-autocomplete",1),e.qZA()),2&t&&(e.Q6J("column",s.column)("filter",s.filter)("operators",s.operators)("showOperators",s.showOperators),e.xp6(1),e.Q6J("data",s.data)("valueField",s.valueField)("value",null==s.currentFilter?null:s.currentFilter.value))},directives:[j3,gi.jf,Wh],encapsulation:2}),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showOperators",void 0),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",Array)],n.prototype,"data",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],n.prototype,"valueField",null),n=p([r("design:paramtypes",[Yo,jr,G.oQ])],n),n})(),Fx=(()=>{class n extends V3{constructor(t,s){super(t),this.localization=s,this.operator="eq",this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}get hostClasses(){return!0}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n,hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-filtercell-boolean",s.hostClasses)},inputs:{column:"column",filter:"filter"},features:[e.qOj]}),p([(0,e.pfw)("class.k-filtercell-boolean"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"hostClasses",null),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),n})(),Sb=(()=>{let n=class extends Fx{constructor(t,s,o){super(t,s),this.cd=o}localizationChange(){super.localizationChange(),this.cd.markForCheck()}get columnLabel(){const t=this.localization.get("filterInputLabel")||"";return Qc(t,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Yo),e.Y36(G.oQ),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-boolean-filter-cell"]],features:[e.qOj],decls:2,vars:11,consts:[[3,"column","filter","showOperators","defaultOperator"],["kendoFilterInput","","kendoGridFocusable","","textField","text","valueField","value",3,"columnLabel","defaultItem","data","popupSettings","valuePrimitive","value"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"kendo-dropdownlist",1),e.qZA()),2&t&&(e.Q6J("column",s.column)("filter",s.filter)("showOperators",!1)("defaultOperator",s.operator),e.xp6(1),e.Q6J("columnLabel",s.columnLabel)("defaultItem",s.defaultItem)("data",s.items)("popupSettings",e.DdM(10,Tw))("valuePrimitive",!0)("value",null==s.currentFilter?null:s.currentFilter.value))},directives:[j3,gi.rI,Wh,Sd],encapsulation:2}),n=p([r("design:paramtypes",[Yo,G.oQ,e.sBO])],n),n})();const Rx=yb({filterEqOperator:"eq",filterNotEqOperator:"neq",filterAfterOrEqualOperator:"gte",filterAfterOperator:"gt",filterBeforeOrEqualOperator:"lte",filterBeforeOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"});let Px=(()=>{class n extends V3{constructor(t,s){super(t),this.localization=s,this.operator="gte",this.activeView="month",this.bottomView="month",this.topView="century",this.weekNumber=!1,this.defaultOperators=Rx(this.localization)}get currentFilter(){return this.filterByField(this.column.field)}set format(t){this._format=t}get format(){return Tl(this._format)?this.columnFormat:this._format}get columnFormat(){return this.column&&!Tl(this.column.format)?E7(this.column.format):"d"}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=Rx(this.localization),this.operatorList.length&&(this.operators=_b(this.operatorList.toArray()))}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n,inputs:{operator:"operator",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",format:"format",column:"column",filter:"filter",min:"min",max:"max",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"operator",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],n.prototype,"format",null),p([(0,e.IIB)(),r("design:type",Date)],n.prototype,"min",void 0),p([(0,e.IIB)(),r("design:type",Date)],n.prototype,"max",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"formatPlaceholder",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"placeholder",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"activeView",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"bottomView",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"topView",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"weekNumber",void 0),n})(),wb=(()=>{let n=class extends Px{constructor(t,s){super(t,s),this.localization=s,this.showOperators=!0}messageFor(t){return this.localization.get(t)}get columnLabel(){const t=this.localization.get("filterInputLabel")||"";return Qc(t,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Yo),e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[e.qOj],decls:3,vars:18,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoFilterInput","","kendoGridFocusable","",3,"columnLabel","value","format","formatPlaceholder","placeholder","activeView","bottomView","topView","min","max","weekNumber"],[3,"toggle","today"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e.TgZ(1,"kendo-datepicker",1),e._UZ(2,"kendo-datepicker-messages",2),e.qZA(),e.qZA()),2&t&&(e.Q6J("column",s.column)("filter",s.filter)("operators",s.operators)("defaultOperator",s.operator)("showOperators",s.showOperators),e.xp6(1),e.Q6J("columnLabel",s.columnLabel)("value",null==s.currentFilter?null:s.currentFilter.value)("format",s.format)("formatPlaceholder",s.formatPlaceholder)("placeholder",s.placeholder)("activeView",s.activeView)("bottomView",s.bottomView)("topView",s.topView)("min",s.min)("max",s.max)("weekNumber",s.weekNumber),e.xp6(1),e.Q6J("toggle",s.messageFor("filterDateToggle"))("today",s.messageFor("filterDateToday")))},directives:[j3,Is,Wh,Sd,ud],encapsulation:2}),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showOperators",void 0),n=p([r("design:paramtypes",[Yo,G.oQ])],n),n})(),vg=(()=>{let n=class{constructor(t){this.root=t,this.active=!0,this.children=[],this.root.registerGroup(this)}get focusableChildren(){return this.children.filter(t=>t.canFocus())}get isActive(){return this.active}ngOnDestroy(){this.root.unregisterGroup(this)}registerElement(t){this.unregisterElement(t),this.children.push(t)}unregisterElement(t){this.children=this.children.filter(s=>s!==t)}isNavigable(){const t=this.focusableChildren;return 1===t.length&&t[0].isNavigable()}canFocus(){return this.focusableChildren.length>0}focus(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}activate(){this.toggleState(!0)}deactivate(){this.toggleState(!1)}hasFocus(){return this.children.reduce((t,s)=>t||s.hasFocus(),!1)}toggleState(t){this.active!==t&&(this.active=t,this.children.forEach(s=>s.toggle(t)))}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(Kp))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([r("design:paramtypes",[Kp])],n),n})(),CR=0,G3=(()=>{let n=class{constructor(t,s,o,u,b,k,ae,q){this.focusGroup=t,this.element=s,this.columnInfoService=o,this.idService=u,this.navigationService=b,this.renderer=k,this.zone=ae,this.cellContext=q,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=CR++}get id(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}get ariaColIndex(){if(!this.logicalSlaveCell&&-1!==this.logicalColIndex)return this.logicalColIndex+1}ngOnInit(){!this.navigationService.enabled||(this.navigationChange=this.navigationService.changes.subscribe(t=>this.onNavigationChange(t)))}ngDoCheck(){!this.navigationService.enabled||-1===this.logicalColIndex||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}ngOnChanges(t){if(!this.navigationService.enabled)return;const s=Object.keys(t);if(1===s.length&&"groupItem"===s[0]||-1===this.logicalColIndex)return;const o=t.logicalColIndex,u=t.logicalRowIndex,b=o&&!o.isFirstChange()?o.previousValue:this.logicalColIndex,k=u&&!u.isFirstChange()?u.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(b,k,this),this.registerChanges(),this.updateElement()}ngOnDestroy(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}onNavigationChange(t){(this.logicalColIndex===t.colIndex&&this.logicalRowIndex===t.rowIndex||this.logicalColIndex===t.prevColIndex&&this.logicalRowIndex===t.prevRowIndex)&&this.updateElement()}updateElement(){const t=this.element.nativeElement;this.renderer.setAttribute(t,"tabIndex",this.isFocusable()&&!this.logicalSlaveCell?"0":"-1"),this.isFocused()?(this.focusGroup.isNavigable()?this.focusGroup.focus():(!this.logicalSlaveCell&&this.navigationService.autoFocusCell(this.logicalColIndex,this.logicalColIndex+this.colSpan-1)&&this.microtask(()=>this.isFocused()&&t.focus()),this.renderer.addClass(t,"k-state-focused")),this.headerLabelText&&t.setAttribute("aria-label","")):(this.renderer.removeClass(t,"k-state-focused"),this.headerLabelText&&t.setAttribute("aria-label",this.headerLabelText))}microtask(t){this.zone.runOutsideAngular(()=>Promise.resolve(null).then(t))}registerChanges(){this.logicalSlaveCell||this.navigationService.registerCell(this)}registerNoChanges(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}isFocusable(){return this.navigationService.isCellFocusable(this)}isFocused(){return this.navigationService.isCellFocused(this)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(vg),e.Y36(e.SBq),e.Y36(ll),e.Y36(nc),e.Y36($o),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(Zc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(t,s){2&t&&e.uIk("id",s.id)("aria-colindex",s.ariaColIndex)},inputs:{logicalSlaveCell:"logicalSlaveCell",colSpan:"colSpan",rowSpan:"rowSpan",dataRowIndex:"dataRowIndex",detailExpandCell:"detailExpandCell",logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",colIndex:"colIndex",groupItem:"groupItem",dataItem:"dataItem",headerLabelText:"headerLabelText"},features:[e._Bn([{provide:vg,deps:[Kp],useClass:vg}]),e.TTD]}),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"logicalColIndex",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"logicalRowIndex",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"logicalSlaveCell",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"colIndex",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"colSpan",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"rowSpan",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"groupItem",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"dataRowIndex",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"dataItem",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"detailExpandCell",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"headerLabelText",void 0),p([(0,e.pfw)("attr.id"),r("design:type",String),r("design:paramtypes",[])],n.prototype,"id",null),p([(0,e.pfw)("attr.aria-colindex"),r("design:type",Number),r("design:paramtypes",[])],n.prototype,"ariaColIndex",null),n=p([K(7,(0,e.FiY)()),K(7,(0,e.tBr)(Zc)),r("design:paramtypes",[vg,e.SBq,ll,nc,$o,e.Qsj,e.R0b,Object])],n),n})();let D0=(()=>{let n=class{static exports(){return[jr,oh,sf,w_,rf,Sd]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez],z.QY,z.OY]}),n})();var h9;let M6=h9=class extends oo{constructor(i){super("contains",i)}};var p9;M6.\u0275fac=function(i){return new(i||M6)(e.Y36(G.oQ))},M6.\u0275cmp=e.Xpm({type:M6,selectors:[["kendo-filter-contains-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>h9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),M6=h9=p([r("design:paramtypes",[G.oQ])],M6);let I6=p9=class extends oo{constructor(i){super("doesnotcontain",i)}};var f9;I6.\u0275fac=function(i){return new(i||I6)(e.Y36(G.oQ))},I6.\u0275cmp=e.Xpm({type:I6,selectors:[["kendo-filter-not-contains-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>p9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),I6=p9=p([r("design:paramtypes",[G.oQ])],I6);let D6=f9=class extends oo{constructor(i){super("endswith",i)}};var g9;D6.\u0275fac=function(i){return new(i||D6)(e.Y36(G.oQ))},D6.\u0275cmp=e.Xpm({type:D6,selectors:[["kendo-filter-endswith-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>f9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),D6=f9=p([r("design:paramtypes",[G.oQ])],D6);let T6=g9=class extends oo{constructor(i){super("eq",i)}};var m9;T6.\u0275fac=function(i){return new(i||T6)(e.Y36(G.oQ))},T6.\u0275cmp=e.Xpm({type:T6,selectors:[["kendo-filter-eq-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>g9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),T6=g9=p([r("design:paramtypes",[G.oQ])],T6);let E6=m9=class extends oo{constructor(i){super("isempty",i)}};var v9;E6.\u0275fac=function(i){return new(i||E6)(e.Y36(G.oQ))},E6.\u0275cmp=e.Xpm({type:E6,selectors:[["kendo-filter-isempty-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>m9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),E6=m9=p([r("design:paramtypes",[G.oQ])],E6);let k6=v9=class extends oo{constructor(i){super("isnotempty",i)}};var _9;k6.\u0275fac=function(i){return new(i||k6)(e.Y36(G.oQ))},k6.\u0275cmp=e.Xpm({type:k6,selectors:[["kendo-filter-isnotempty-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>v9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),k6=v9=p([r("design:paramtypes",[G.oQ])],k6);let A6=_9=class extends oo{constructor(i){super("isnotnull",i)}};var y9;A6.\u0275fac=function(i){return new(i||A6)(e.Y36(G.oQ))},A6.\u0275cmp=e.Xpm({type:A6,selectors:[["kendo-filter-isnotnull-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>_9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),A6=_9=p([r("design:paramtypes",[G.oQ])],A6);let O6=y9=class extends oo{constructor(i){super("isnull",i)}};var b9;O6.\u0275fac=function(i){return new(i||O6)(e.Y36(G.oQ))},O6.\u0275cmp=e.Xpm({type:O6,selectors:[["kendo-filter-isnull-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>y9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),O6=y9=p([r("design:paramtypes",[G.oQ])],O6);let F6=b9=class extends oo{constructor(i){super("neq",i)}};var C9;F6.\u0275fac=function(i){return new(i||F6)(e.Y36(G.oQ))},F6.\u0275cmp=e.Xpm({type:F6,selectors:[["kendo-filter-neq-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>b9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),F6=b9=p([r("design:paramtypes",[G.oQ])],F6);let R6=C9=class extends oo{constructor(i){super("startswith",i)}};var S9;R6.\u0275fac=function(i){return new(i||R6)(e.Y36(G.oQ))},R6.\u0275cmp=e.Xpm({type:R6,selectors:[["kendo-filter-startswith-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>C9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),R6=C9=p([r("design:paramtypes",[G.oQ])],R6);let P6=S9=class extends oo{constructor(i){super("gt",i)}};var w9;P6.\u0275fac=function(i){return new(i||P6)(e.Y36(G.oQ))},P6.\u0275cmp=e.Xpm({type:P6,selectors:[["kendo-filter-gt-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>S9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),P6=S9=p([r("design:paramtypes",[G.oQ])],P6);let L6=w9=class extends oo{constructor(i){super("gte",i)}};var x9;L6.\u0275fac=function(i){return new(i||L6)(e.Y36(G.oQ))},L6.\u0275cmp=e.Xpm({type:L6,selectors:[["kendo-filter-gte-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>w9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),L6=w9=p([r("design:paramtypes",[G.oQ])],L6);let B6=x9=class extends oo{constructor(i){super("lt",i)}};var M9;B6.\u0275fac=function(i){return new(i||B6)(e.Y36(G.oQ))},B6.\u0275cmp=e.Xpm({type:B6,selectors:[["kendo-filter-lt-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>x9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),B6=x9=p([r("design:paramtypes",[G.oQ])],B6);let N6=M9=class extends oo{constructor(i){super("lte",i)}};var I9;N6.\u0275fac=function(i){return new(i||N6)(e.Y36(G.oQ))},N6.\u0275cmp=e.Xpm({type:N6,selectors:[["kendo-filter-lte-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>M9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),N6=M9=p([r("design:paramtypes",[G.oQ])],N6);let z6=I9=class extends oo{constructor(i){super("after",i)}toJSON(){return{text:this.text,value:"gt"}}};var D9;z6.\u0275fac=function(i){return new(i||z6)(e.Y36(G.oQ))},z6.\u0275cmp=e.Xpm({type:z6,selectors:[["kendo-filter-after-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>I9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),z6=I9=p([r("design:paramtypes",[G.oQ])],z6);let H6=D9=class extends oo{constructor(i){super("after-eq",i)}toJSON(){return{text:this.text,value:"gte"}}};var T9;H6.\u0275fac=function(i){return new(i||H6)(e.Y36(G.oQ))},H6.\u0275cmp=e.Xpm({type:H6,selectors:[["kendo-filter-after-eq-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>D9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),H6=D9=p([r("design:paramtypes",[G.oQ])],H6);let V6=T9=class extends oo{constructor(i){super("before-eq",i)}toJSON(){return{text:this.text,value:"lte"}}};var E9;V6.\u0275fac=function(i){return new(i||V6)(e.Y36(G.oQ))},V6.\u0275cmp=e.Xpm({type:V6,selectors:[["kendo-filter-before-eq-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>T9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),V6=T9=p([r("design:paramtypes",[G.oQ])],V6);let j6=E9=class extends oo{constructor(i){super("before",i)}toJSON(){return{text:this.text,value:"lt"}}};j6.\u0275fac=function(i){return new(i||j6)(e.Y36(G.oQ))},j6.\u0275cmp=e.Xpm({type:j6,selectors:[["kendo-filter-before-operator"]],features:[e._Bn([{provide:oo,useExisting:(0,e.Gpc)(()=>E9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),j6=E9=p([r("design:paramtypes",[G.oQ])],j6);const TR=[s9,M6,I6,D6,T6,E6,k6,A6,O6,F6,R6,P6,L6,B6,N6,z6,H6,V6,j6],ER=[Re.ez,zt.UX,zt.u5,gi.g9,gi.WN,Fi.rw,gu,un.Zj,D0];let U3=(()=>{let n=class{static exports(){return[...TR]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[...ER],Re.ez,zt.UX,zt.u5,gi.g9,gi.WN,Fi.rw,gu,un.Zj,D0]}),n})(),Bx=(()=>{class n{constructor(t,s){this.host=t,this.resolver=s}ngOnInit(){this.component=this.host.createComponent(this.resolver.resolveComponentFactory(this.componentType())),this.initComponent({column:this.column,filter:this.filter})}ngOnDestroy(){this.component&&(this.component.destroy(),this.component=null)}ngOnChanges(t){(0,z.aG)(["column","filter"],t)&&this.initComponent({column:this.column,filter:this.filter})}initComponent({column:t,filter:s}){const o=this.component.instance;o.column=t,o.filter=s}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n,inputs:{column:"column",filter:"filter"},features:[e.TTD]}),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),n})(),Nx=(()=>{let n=class extends Bx{constructor(t,s){super(t,s)}componentType(){return Tl(this.column.filter)?B_:(n=>({boolean:Sb,date:wb,numeric:bb,text:B_}[this.column.filter]))()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e._Vd))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoFilterCellHost",""]],features:[e.qOj]}),n=p([r("design:paramtypes",[e.s_b,e._Vd])],n),n})(),k9=(()=>{let n=class{static exports(){return[X7,e9,x_,s9,B_,bb,Ox,Sb,wb,U3.exports()]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[U3],U3]}),n})(),A9=(()=>{let n=class{constructor(t,s){this.host=t,this.renderer=s}ngAfterViewInit(){this.renderer.addClass(this.host.numericInput.nativeElement,"k-pager-nav")}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Fi.Uw),e.Y36(e.Qsj))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridPagerInput",""]]}),n=p([r("design:paramtypes",[Fi.Uw,e.Qsj])],n),n})(),O9=(()=>{let n=class{constructor(t){this.host=t,this.keydownHandler=s=>{s.keyCode===z.R8.Escape&&this.host.isOpen&&(s.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){this.host.wrapper.nativeElement.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(gi.rI))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridPagerDropDown",""]]}),n=p([r("design:paramtypes",[gi.rI])],n),n})();const zx=n=>(({buttonCount:n=10,info:i=!0,type:t="numeric",pageSizes:s=!1,previousNext:o=!0,responsive:u=!0,position:b="bottom"})=>({buttonCount:n,info:i,pageSizes:!0===s?[5,10,20]:s,previousNext:o,type:t,responsive:u,position:b}))(!0===n?{}:n);let F9=(()=>{let n=class{constructor(t,s,o,u,b,k,ae,q,Se){this.pagerContext=t,this.navigationService=s,this.element=o,this.renderer=u,this.zone=b,this.localizationService=k,this.cellContext=ae,this.focusRoot=q,this.focusGroup=Se,this.total=0,this.skip=1,this.pageChange=new e.vpe,this.pagerWrapClass=!0,this.gridPagerClass=!0,this.widgetClass=!0,this.settings=zx({}),this.subscriptions=new he.w0,this._templateContext={},this._isFocused=!1,this.resizeHandler=()=>{const yt=this.element.nativeElement;if(this.template||!yt)return;const at=yt.offsetWidth;at<600?(this.renderer.removeClass(yt,"k-pager-md"),this.renderer.addClass(yt,"k-pager-sm")):at>=600&&at<768?(this.renderer.addClass(yt,"k-pager-md"),this.renderer.removeClass(yt,"k-pager-sm")):this.clearResponsiveClasses()}}set options(t){this.settings=zx(t)}get isFocused(){return this._isFocused}get pagerAriaLabel(){return this.navigationService.enabled?this.pagerLabel:void 0}get pagerLabel(){const t=this.localizationService.get("pagerLabel")||"";return Qc(Qc(t,"currentPage",this.currentPage.toString()),"totalPages",this.totalPages.toString())}get focusTrapTabIndex(){return this.focusGroup.isActive?"0":"-1"}onFocusIn(t){this.navigationService.enabled&&(t.target===this.element.nativeElement?(this._isFocused=!0,this.focusRoot.deactivate()):this.focusRoot.activate())}onFocusOut(){this.navigationService.enabled&&(this._isFocused=!1)}onEscape(){this.navigationService.enabled&&(this.focusRoot.deactivate(),this.element.nativeElement.focus())}onEnter(t){this.navigationService.enabled&&t.target===this.element.nativeElement&&(this.focusRoot.activate(),this.focusFirstElement())}navigateToPreviousPage(t){this.shouldTriggerPageChange(t.target,this.currentPage>1)&&this.pagerContext.prevPage()}navigateToNextPage(t){this.shouldTriggerPageChange(t.target,this.currentPage1)&&this.pagerContext.changePage(0)}navigateToLastPage(t){this.shouldTriggerPageChange(t.target,this.currentPage{"start"===s?t.relatedTarget===this.element.nativeElement?this.focusFirstElement():this.focusLastElement():this.focusFirstElement()})}clearResponsiveClasses(){const t=this.element.nativeElement;this.renderer.removeClass(t,"k-pager-sm"),this.renderer.removeClass(t,"k-pager-md")}shouldTriggerPageChange(t,s){return this.navigationService.enabled&&t===this.element.nativeElement&&s}focusFirstElement(){const t=Nw(this.element.nativeElement,!0);t&&t.focus()}focusLastElement(){const t=((n,i=!0)=>((n,i,t=!0)=>{let s=null;return qp(n,o=>(i(o)&&(s=o),!1),t),s})(n,t=>y_(t,i),!1))(this.element.nativeElement,!0);t&&t.focus()}updateCellContext(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Jc),e.Y36($o),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(G.oQ),e.Y36(Zc,8),e.Y36(Kp),e.Y36(vg))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-pager"]],hostVars:9,hostBindings:function(t,s){1&t&&e.NdJ("focusin",function(u){return s.onFocusIn(u)})("focusout",function(){return s.onFocusOut()})("keydown.escape",function(){return s.onEscape()})("keydown.enter",function(u){return s.onEnter(u)})("keydown.arrowleft",function(u){return s.navigateToPreviousPage(u)})("keydown.pageup",function(u){return s.navigateToPreviousPage(u)})("keydown.arrowright",function(u){return s.navigateToNextPage(u)})("keydown.pagedown",function(u){return s.navigateToNextPage(u)})("keydown.home",function(u){return s.navigateToFirstPage(u)})("keydown.end",function(u){return s.navigateToLastPage(u)}),2&t&&(e.uIk("aria-label",s.pagerAriaLabel),e.ekj("k-pager-wrap",s.pagerWrapClass)("k-grid-pager",s.gridPagerClass)("k-widget",s.widgetClass)("k-state-focused",s.isFocused))},inputs:{total:"total",skip:"skip",options:"options",pageSize:"pageSize",template:"template"},outputs:{pageChange:"pageChange"},features:[e._Bn([{provide:sb,useValue:!0},{provide:Kp,deps:[sb],useClass:Kp},{provide:vg,deps:[Kp],useClass:vg}]),e.TTD],decls:5,vars:5,consts:[["class","k-sr-only",3,"tabindex","focusin",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"resize",4,"ngIf"],[1,"k-sr-only",3,"tabindex","focusin"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"buttonCount",4,"ngIf"],[3,"pageSizes",4,"ngIf"],[3,"buttonCount"],[3,"pageSizes"],["pageSizes",""],[3,"resize"]],template:function(t,s){1&t&&(e.YNc(0,dE,1,2,"div",0),e.YNc(1,uE,1,2,"ng-container",1),e.YNc(2,_E,7,6,"ng-container",2),e.YNc(3,yE,1,2,"div",0),e.YNc(4,bE,1,0,"kendo-resize-sensor",3)),2&t&&(e.Q6J("ngIf",s.navigationService.enabled),e.xp6(1),e.Q6J("ngIf",null==s.template?null:s.template.templateRef),e.xp6(1),e.Q6J("ngIf",!(null!=s.template&&s.template.templateRef)),e.xp6(1),e.Q6J("ngIf",s.navigationService.enabled),e.xp6(1),e.Q6J("ngIf",s.settings.responsive))},directives:function(){return[Re.O5,Re.tP,R9,L9,B9,P9,N9,z9,z.NG]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"total",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"skip",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"pageSize",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],n.prototype,"options",null),p([(0,e.IIB)(),r("design:type",k_)],n.prototype,"template",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"pageChange",void 0),p([(0,e.pfw)("class.k-pager-wrap"),r("design:type",Boolean)],n.prototype,"pagerWrapClass",void 0),p([(0,e.pfw)("class.k-grid-pager"),r("design:type",Boolean)],n.prototype,"gridPagerClass",void 0),p([(0,e.pfw)("class.k-widget"),r("design:type",Boolean)],n.prototype,"widgetClass",void 0),p([(0,e.pfw)("class.k-state-focused"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"isFocused",null),p([(0,e.pfw)("attr.aria-label"),r("design:type",String),r("design:paramtypes",[])],n.prototype,"pagerAriaLabel",null),p([(0,e.L6J)("focusin",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"onFocusIn",null),p([(0,e.L6J)("focusout"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],n.prototype,"onFocusOut",null),p([(0,e.L6J)("keydown.escape"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],n.prototype,"onEscape",null),p([(0,e.L6J)("keydown.enter",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"onEnter",null),p([(0,e.L6J)("keydown.arrowleft",["$event"]),(0,e.L6J)("keydown.pageup",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"navigateToPreviousPage",null),p([(0,e.L6J)("keydown.arrowright",["$event"]),(0,e.L6J)("keydown.pagedown",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"navigateToNextPage",null),p([(0,e.L6J)("keydown.home",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"navigateToFirstPage",null),p([(0,e.L6J)("keydown.end",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"navigateToLastPage",null),n=p([K(6,(0,e.FiY)()),K(6,(0,e.tBr)(Zc)),r("design:paramtypes",[Jc,$o,e.SBq,e.Qsj,e.R0b,G.oQ,Object,Kp,vg])],n),n})(),$3=(()=>{class n{constructor(t,s,o){this.localization=t,this.pagerContext=s,this.cd=o,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}textFor(t){return this.localization.get(t)}changePage(t){return this.pagerContext.changePage(t),!1}ngOnInit(){this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}}return n.\u0275fac=function(t){e.$Z()},n.\u0275dir=e.lG2({type:n}),n})(),R9=(()=>{let n=class extends $3{constructor(t,s,o,u){super(t,s,o),this.navigationService=u}get disabled(){return 1===this.currentPage||!this.total}onChanges({total:t,skip:s,pageSize:o}){this.total=t,this.skip=s,this.pageSize=o,this.cd.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(Jc),e.Y36(e.sBO),e.Y36($o))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-pager-prev-buttons"]],features:[e.qOj],decls:4,vars:16,consts:[[3,"kendoGridFocusable","title","ngClass","click","keydown.enter"],[3,"ngClass"]],template:function(t,s){1&t&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return 1!==s.currentPage&&s.changePage(0)})("keydown.enter",function(){return 1!==s.currentPage&&s.changePage(0)}),e._UZ(1,"span",1),e.qZA(),e.TgZ(2,"span",0),e.NdJ("click",function(){return 1!==s.currentPage&&s.changePage(s.currentPage-2)})("keydown.enter",function(){return 1!==s.currentPage&&s.changePage(s.currentPage-2)}),e._UZ(3,"span",1),e.qZA()),2&t&&(e.Q6J("kendoGridFocusable",!s.disabled)("title",s.textFor("pagerFirstPage"))("ngClass",e.VKq(10,CE,s.disabled)),e.xp6(1),e.Q6J("ngClass",e.DdM(12,SE)),e.uIk("aria-label",s.textFor("pagerFirstPage")),e.xp6(1),e.Q6J("kendoGridFocusable",!s.disabled)("title",s.textFor("pagerPreviousPage"))("ngClass",e.VKq(13,Ew,s.disabled)),e.xp6(1),e.Q6J("ngClass",e.DdM(15,wE)),e.uIk("aria-label",s.textFor("pagerPreviousPage")))},directives:[Sd,Re.mk],encapsulation:2,changeDetection:0}),n=p([r("design:paramtypes",[G.oQ,Jc,e.sBO,$o])],n),n})(),P9=(()=>{let n=class extends $3{constructor(t,s,o,u){super(t,s,o),this.navigationService=u}get disabled(){return this.currentPage===this.totalPages||!this.total}onChanges({total:t,skip:s,pageSize:o}){this.total=t,this.skip=s,this.pageSize=o,this.cd.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(Jc),e.Y36(e.sBO),e.Y36($o))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-pager-next-buttons"]],features:[e.qOj],decls:4,vars:16,consts:[["tabindex","0",3,"kendoGridFocusable","title","ngClass","click","keydown.enter"],[3,"ngClass"]],template:function(t,s){1&t&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return s.currentPage!==s.totalPages&&s.changePage(s.currentPage)})("keydown.enter",function(){return s.currentPage!==s.totalPages&&s.changePage(s.currentPage)}),e._UZ(1,"span",1),e.qZA(),e.TgZ(2,"span",0),e.NdJ("click",function(){return s.currentPage!==s.totalPages&&s.changePage(s.totalPages-1)})("keydown.enter",function(){return s.currentPage!==s.totalPages&&s.changePage(s.totalPages-1)}),e._UZ(3,"span",1),e.qZA()),2&t&&(e.Q6J("kendoGridFocusable",!s.disabled)("title",s.textFor("pagerNextPage"))("ngClass",e.VKq(10,Ew,s.disabled)),e.xp6(1),e.Q6J("ngClass",e.DdM(12,xE)),e.uIk("aria-label",s.textFor("pagerNextPage")),e.xp6(1),e.Q6J("kendoGridFocusable",!s.disabled)("title",s.textFor("pagerLastPage"))("ngClass",e.VKq(13,ME,s.disabled)),e.xp6(1),e.Q6J("ngClass",e.DdM(15,IE)),e.uIk("aria-label",s.textFor("pagerLastPage")))},directives:[Sd,Re.mk],encapsulation:2,changeDetection:0}),n=p([r("design:paramtypes",[G.oQ,Jc,e.sBO,$o])],n),n})(),L9=(()=>{let n=class extends $3{constructor(t,s,o){super(t,o,s),this.pagerContext=o,this.numbersWrapClass=!0}get buttons(){let t=[];for(let s=this.start;s<=this.end;s++)t.push(s);return t}get end(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}get start(){const t=this.currentPage,s=this.buttonCount;if(t>s){const o=t%s;return 0===o?t-s+1:t-o+1}return 1}pageLabel(t){const s=this.textFor("pagerPage");return s?s+" "+t:t.toString()}onSelectChange(t){const s=t.target,o=Number(s.value);Number.isNaN(o)?this.changePage("previousButtons"===s.value?this.start-2:this.end):this.changePage(o-1)}onChanges({total:t,skip:s,pageSize:o}){this.total=t,this.skip=s,this.pageSize=o,this.cd.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(e.sBO),e.Y36(Jc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-pager-numeric-buttons"]],hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-pager-numbers-wrap",s.numbersWrapClass)},inputs:{buttonCount:"buttonCount"},features:[e.qOj],decls:8,vars:9,consts:[["kendoGridFocusable","","tabindex","0",1,"k-dropdown","k-pager-nav",3,"value","change"],["class","k-link","value","previousButtons",4,"ngIf"],[3,"value","ngClass",4,"ngFor","ngForOf"],["value","nextButtons","class","k-link",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],["value","previousButtons",1,"k-link"],[3,"value","ngClass"],["value","nextButtons",1,"k-link"],["kendoGridFocusable","","tabindex","0",1,"k-link","k-pager-nav",3,"click","keydown.enter"],["kendoGridFocusable","","tabindex","0",3,"ngClass","click","keydown.enter"]],template:function(t,s){1&t&&(e.TgZ(0,"select",0),e.NdJ("change",function(u){return s.onSelectChange(u)}),e.YNc(1,DE,2,1,"option",1),e.YNc(2,EE,2,7,"option",2),e.YNc(3,kE,2,1,"option",3),e.qZA(),e.TgZ(4,"ul",4),e.YNc(5,AE,3,1,"li",5),e.YNc(6,FE,3,5,"li",6),e.YNc(7,RE,3,1,"li",5),e.qZA()),2&t&&(e.Q6J("value",s.currentPage.toString()),e.xp6(1),e.Q6J("ngIf",s.start>1),e.xp6(1),e.Q6J("ngForOf",s.buttons),e.xp6(1),e.Q6J("ngIf",s.end1),e.xp6(1),e.Q6J("ngForOf",s.buttons),e.xp6(1),e.Q6J("ngIf",s.end{let n=class extends $3{constructor(t,s,o,u,b){super(t,s,b),this.pagerContext=s,this.zone=o,this.navigationService=u,this.handleKeyDown=k=>{let ae=this.numericInput.value||this.current;k.keyCode===z.R8.Enter&&(k.preventDefault(),ae!==this.current&&this.zone.run(()=>{this.changePage(ae-1)}))},this.handleBlur=()=>{const k=this.numericInput.value;k?k!==this.current&&this.zone.run(()=>{this.changePage(k-1)}):this.numericInput.writeValue(this.current)}}get current(){return this.hasPages?this.currentPage:0}get hasPages(){return 0!==this.totalPages}onChanges({total:t,skip:s,pageSize:o}){this.total=t,this.skip=s,this.pageSize=o,this.cd.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(Jc),e.Y36(e.R0b),e.Y36($o),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-pager-input"]],viewQuery:function(t,s){if(1&t&&e.Gf(Fi.Uw,5),2&t){let o;e.iGM(o=e.CRH())&&(s.numericInput=o.first)}},features:[e.qOj],decls:4,vars:18,consts:[[3,"ngClass"],["kendoGridPagerInput","","tabindex","0","format","n0",3,"kendoGridFocusable","spinners","decimals","disabled","value","min","max","autoCorrect","title","kendoEventsOutsideAngular"]],template:function(t,s){1&t&&(e.TgZ(0,"span",0),e._uU(1),e._UZ(2,"kendo-numerictextbox",1),e._uU(3),e.qZA()),2&t&&(e.Q6J("ngClass",e.DdM(14,LE)),e.xp6(1),e.hij(" ",s.textFor("pagerPage")," "),e.xp6(1),e.Q6J("kendoGridFocusable",s.hasPages)("spinners",!1)("decimals",0)("disabled",!s.hasPages)("value",s.current)("min",s.hasPages?1:0)("max",s.totalPages)("autoCorrect",!0)("title",s.textFor("pagerPageNumberInputTitle"))("kendoEventsOutsideAngular",e.WLB(15,BE,s.handleKeyDown,s.handleBlur)),e.xp6(1),e.AsE(" ",s.textFor("pagerOf")," ",s.totalPages," "))},directives:[Re.mk,Fi.Uw,A9,Sd,z.nV],encapsulation:2}),p([(0,e.i9L)(Fi.Uw,{static:!1}),r("design:type",Fi.Uw)],n.prototype,"numericInput",void 0),n=p([r("design:paramtypes",[G.oQ,Jc,e.R0b,$o,e.sBO])],n),n})(),N9=(()=>{let n=class extends $3{constructor(t,s,o){super(t,o,s),this.pagerContext=o}get maxItems(){return Math.min(this.currentPage*this.pageSize,this.total)}get currentPageText(){return this.total?(this.currentPage-1)*this.pageSize+1:0}get classes(){return!0}onChanges({total:t,skip:s,pageSize:o}){this.total=t,this.skip=s,this.pageSize=o,this.cd.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(e.sBO),e.Y36(Jc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-pager-info"]],hostVars:4,hostBindings:function(t,s){2&t&&e.ekj("k-pager-info",s.classes)("k-label",s.classes)},features:[e.qOj],decls:1,vars:5,template:function(t,s){1&t&&e._uU(0),2&t&&e.xDo("",s.currentPageText," - ",s.maxItems," ",s.textFor("pagerOf")," ",s.total," ",s.textFor("pagerItems"),"")},encapsulation:2,changeDetection:0}),p([(0,e.pfw)("class.k-pager-info"),(0,e.pfw)("class.k-label"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"classes",null),n=p([r("design:paramtypes",[G.oQ,e.sBO,Jc])],n),n})(),z9=(()=>{let n=class extends $3{constructor(t,s,o,u){super(t,o,s),this.pagerContext=o,this.navigationService=u,this._pageSizes=[]}get pageSizes(){return this._pageSizes}set pageSizes(t){let s=[];t.forEach(o=>{s.push("number"==typeof o?{text:o.toString(),value:o}:o)}),this.pageSize&&!s.some(o=>o.value===this.pageSize)&&(s=[{text:this.pageSize.toString(),value:this.pageSize},...s]),this._pageSizes=s}get classes(){return!0}get showInitialPageSize(){return 0===this.pageSizes.filter(t=>"number"==typeof t.value?t.value===Number(this.pageSize):this.total===Number(this.pageSize)).length}pageSizeChange(t){this.pageSize="number"==typeof t?t:this.total,this.pagerContext.changePageSize(this.pageSize)}getValue(t){return"number"==typeof t.value?t.value:this.total}onChanges({total:t,skip:s,pageSize:o}){this.total=t,this.skip=s,this.pageSize="number"==typeof o?o:this.total,this.cd.markForCheck()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(e.sBO),e.Y36(Jc),e.Y36($o))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-pager-page-sizes"]],hostVars:4,hostBindings:function(t,s){2&t&&e.ekj("k-pager-sizes",s.classes)("k-label",s.classes)},inputs:{pageSizes:"pageSizes"},features:[e.qOj],decls:3,vars:5,consts:[["kendoGridPagerDropDown","","tabindex","0","kendoGridFocusable","","textField","text","valueField","value",3,"data","valuePrimitive","value","valueChange"],["dropdownlist",""],[3,"for","text"]],template:function(t,s){if(1&t&&(e.TgZ(0,"kendo-dropdownlist",0,1),e.NdJ("valueChange",function(u){return s.pageSizeChange(u)}),e.qZA(),e._UZ(2,"kendo-label",2)),2&t){const o=e.MAs(1);e.Q6J("data",s.pageSizes)("valuePrimitive",!0)("value",s.pageSize),e.xp6(2),e.Q6J("for",o)("text",s.textFor("pagerItemsPerPage"))}},directives:[gi.rI,O9,Sd,cr],encapsulation:2,changeDetection:0}),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],n.prototype,"pageSizes",null),p([(0,e.pfw)("class.k-pager-sizes"),(0,e.pfw)("class.k-label"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"classes",null),n=p([r("design:paramtypes",[G.oQ,e.sBO,Jc,$o])],n),n})();const OR=[Re.ez,Fi.rw,gl,gi.q2,z.uv,D0];let Hx=(()=>{let n=class{static exports(){return[F9,R9,P9,L9,B9,N9,z9,k_,O9,A9]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[...OR]]}),n})();nb(({target:n,field:i})=>n.field===i,k7(({target:n})=>n.lastTarget,({groups:n,field:i})=>n.map(t=>t.field).indexOf(i)===n.length-1));const Ib=n=>i=>new RegExp(`(^| )${n}( |$)`).test(i.className),jR=nb(Ib("k-i-group-delete"),Ib("k-button-icon")),GR=nb(Ib("k-i-sort-asc-sm"),Ib("k-i-sort-desc-sm"));k7(__(jR),__(GR),__(y_),__(Wc("label")));let $x=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n})(),Db=(()=>{let n=class{static exports(){return[b_,C_,S_]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez,D0,$x]]}),n})();const YR={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc"},V9=(...n)=>Object.assign({},YR,...n),Yx=(n,i)=>!1!==n.filter&&i.field&&i.filterable,Qx=(n,i)=>!1!==n.sort&&i.field&&i.sortable,Wx=(n,i)=>n.lock&&i.lockable&&!(i.parent&&!i.parent.isSpanColumn),Zx=n=>!1!==n.columnChooser;let U6=(()=>{let n=class{constructor(t){this.closeMenu=new e.vpe,this.menuTabbingService=t}close(){this.closeMenu.emit()}};return n.\u0275fac=function(t){return new(t||n)(e.LFG(wc))},n.\u0275prov=e.Yz7({token:n,factory:function(i){return n.\u0275fac(i)}}),n=p([r("design:paramtypes",[wc])],n),n})(),z_=(()=>{let n=class{constructor(t,s,o,u){this.popupService=t,this.localization=s,this.service=o,this.navigationService=u,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.closeSubscription=o.closeMenu.subscribe(this.close.bind(this))}get isActive(){return this.hasFilter&&L_(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(t=>t.field===this.column.field)}get hasFilter(){return Yx(this.settings,this.column)}get hasSort(){return Qx(this.settings,this.column)}get hasColumnChooser(){return Zx(this.settings)}get hasLock(){return Wx(this.settings,this.column)}get hasStick(){return((n,i)=>this.settings.stick&&i.stickable&&!(i.parent&&!i.parent.isSpanColumn))(0,this.column)}get hasPosition(){return((n,i)=>this.settings.setColumnPosition&&(i.stickable||i.lockable)&&!(i.parent&&!i.parent.isSpanColumn))(0,this.column)}ngOnChanges(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}ngOnDestroy(){this.close(),this.closeSubscription.unsubscribe()}toggle(t,s,o){t&&(t.preventDefault(),t.stopImmediatePropagation()),this.expandedFilter=this.getExpandedState(this.settings.filter),this.expandedColumns=this.getExpandedState(this.settings.columnChooser),this.expandedPosition=this.getExpandedState(this.settings.setColumnPosition),this.popupRef=this.popupService.open(s,o,this.popupRef,"k-grid-columnmenu-popup"),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}close(){this.popupService.destroy(),this.popupRef=null,this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}get columnMenuTitle(){const t=this.localization.get("columnMenu")||"";return Qc(t,"columnName",this.column.title||this.column.field)}getExpandedState(t){return"object"==typeof t&&t.expanded}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(I0),e.Y36(G.oQ),e.Y36(U6),e.Y36($o))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-column-menu"]],viewQuery:function(t,s){if(1&t&&(e.Gf(Aw,7),e.Gf(Ow,7,e.Rgc)),2&t){let o;e.iGM(o=e.CRH())&&(s.anchor=o.first),e.iGM(o=e.CRH())&&(s.template=o.first)}},hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-grid-column-menu-standalone",s.standalone)},inputs:{standalone:"standalone",settings:"settings",sortable:"sortable",tabIndex:"tabIndex",column:"column",sort:"sort",filter:"filter",columnMenuTemplate:"columnMenuTemplate"},features:[e._Bn([U6,wc]),e.TTD],decls:7,vars:5,consts:[["href","#",1,"k-grid-column-menu","k-grid-filter",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-more-vertical"],["template",""],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown.escape","keydown.enter"],[3,"kendoGridColumnMenuItem","service",4,"ngIf"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service"],["sortItem",""],["lockItem",""],["stickItem",""],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded"],["positionItem",""],[3,"kendoGridColumnMenuItem","service","expanded"],["chooserItem",""],["filterItem",""]],template:function(t,s){if(1&t){const o=e.EpF();e.TgZ(0,"a",0,1),e.NdJ("click",function(b){e.CHM(o);const k=e.MAs(1),ae=e.MAs(4);return s.toggle(b,k,ae)})("keydown.enter",function(b){return b.stopImmediatePropagation()}),e._UZ(2,"span",2),e.qZA(),e.YNc(3,ok,1,5,"ng-template",null,3,e.W1O),e.YNc(5,pk,7,6,"ng-template",null,4,e.W1O)}2&t&&(e.Q6J("ngClass",e.VKq(3,fk,s.isActive))("tabindex",s.tabIndex),e.uIk("title",s.columnMenuTitle))},directives:function(){return[Re.mk,Re.tP,Y9,Re.O5,$9,G_,Lb,Nb,Bb,Pb,j_]},encapsulation:2}),p([(0,e.pfw)("class.k-grid-column-menu-standalone"),(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"standalone",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"settings",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"sort",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"sortable",void 0),p([(0,e.IIB)(),r("design:type",e.Rgc)],n.prototype,"columnMenuTemplate",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"tabIndex",void 0),p([(0,e.i9L)("anchor",{static:!0}),r("design:type",e.SBq)],n.prototype,"anchor",void 0),p([(0,e.i9L)("template",{static:!0,read:e.Rgc}),r("design:type",e.Rgc)],n.prototype,"template",void 0),n=p([r("design:paramtypes",[I0,G.oQ,U6,$o])],n),n})();const Jx=(n,i)=>n.parent===i.parent||Ww(i)&&Jx(n,i.parent);k7(({draggable:n})=>["column","columnGroup"].indexOf(n.context.type)>=0,({draggable:n})=>n.context.column.reorderable,({draggable:n})=>!Ww(n.context.column),({draggable:n,target:i})=>n.element.nativeElement!==i.element.nativeElement,({draggable:n,target:i})=>Jx(n.context.column,i.context.column),__(({draggable:n})=>!ih(n.context.column.locked)&&(({parent:n})=>!ih(n))(n.context.column)&&n.context.lastColumn),({draggable:n,target:i})=>!1!==n.context.column.lockable||n.context.column.isLocked===i.context.column.isLocked);let j9=(()=>{let n=class{constructor(t,s,o,u){this.selectionService=t,this.el=s,this.renderer=o,this.ngZone=u,this.selectAllChange=new e.vpe,this.type="checkbox",this.stateSet=!1,this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this))})}ngAfterContentChecked(){this.setState()}ngOnChanges(){this.stateSet=!0}ngOnDestroy(){this.destroyClick&&this.destroyClick()}onClick(){const s=!(!(()=>{if(!(0,z.X_)())return;const n=window.navigator.userAgent,i=n.indexOf("MSIE "),t=n.indexOf("Trident/");return i>0||t>0})()||void 0!==this.selectionService.selectAllState)||this.el.nativeElement.checked,o=this.selectionService.options;this.selectAllChange.emit(s?"checked":"unchecked"),o.enabled&&"multiple"===o.mode&&this.ngZone.run(()=>{this.selectionService.updateAll(s)})}setState(){const t=this.stateSet?this.stateToBool():this.selectionService.selectAllState,s=this.el.nativeElement;this.renderer.setProperty(s,"indeterminate",!Gi(t)),this.renderer.setProperty(s,"checked",!!Gi(t)&&t)}stateToBool(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e1),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(t,s){2&t&&e.uIk("type",s.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[e.TTD]}),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"state",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"selectAllChange",void 0),p([(0,e.pfw)("attr.type"),r("design:type",String)],n.prototype,"type",void 0),n=p([r("design:paramtypes",[e1,e.SBq,e.Qsj,e.R0b])],n),n})();const nM=({value:n,operator:i})=>!Tl(n)||(n=>"isnull"===n||"isnotnull"===n||"isempty"===n||"isnotempty"===n)(i),iM=(n,i,t)=>n.reduce((s,o)=>s||(o.filters?iM(o.filters,i,o):o.field===i?t:s),void 0),gP=(n,i,t="and")=>{const s=iM((n||{}).filters||[],i);return Gi(s)?s.logic:t};let G9=(()=>{let n=class{constructor(t,s,o,u,b){this.parentService=t,this.childService=s,this.localization=o,this.cd=u,this.close=new e.vpe,this.actionsClass="k-action-buttons k-button-group",this._templateContext={},this.menuTabbingService=b}get filter(){return this._filter}set filter(t){this._filter=P_(t)}get childFilter(){return Gi(this._childFilter)||(this._childFilter={filters:L_(this.filter,(this.column||{}).field),logic:gP(this.filter,(this.column||{}).field)}),this._childFilter}ngOnInit(){this.subscription=this.childService.changes.subscribe(t=>this._childFilter=t),this.subscription.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngAfterViewChecked(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}get disabled(){return!this.childFilter.filters.some(nM)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}get hasTemplate(){return Gi(this.column)&&Gi(this.column.filterMenuTemplateRef)}submit(){const t=(n=>(n.filters=n.filters.filter(nM),n))(this.childFilter);if(t.filters.length){const s=this.filter||{filters:[],logic:"and"};n9(s,this.column.field),s.filters.push(t),this.parentService.filter(s)}return this.close.emit(),!1}reset(){const t=this.filter||{filters:[],logic:"and"};n9(t,this.column.field),this.parentService.filter(t),this.close.emit()}onTab(t,s){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(t.preventDefault(),"reset"===s?this.disabled?this.menuTabbingService.firstFocusable.focus():this.filterButton.nativeElement.focus():this.menuTabbingService.firstFocusable.focus())}get clearText(){return this.localization.get("filterClearButton")}get filterText(){return this.localization.get("filterFilterButton")}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(Yo,4),e.Y36(Yo),e.Y36(G.oQ),e.Y36(e.sBO),e.Y36(wc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(t,s){if(1&t&&(e.Gf(Gk,5),e.Gf(Uk,5)),2&t){let o;e.iGM(o=e.CRH())&&(s.resetButton=o.first),e.iGM(o=e.CRH())&&(s.filterButton=o.first)}},inputs:{actionsClass:"actionsClass",menuTabbingService:"menuTabbingService",filter:"filter",column:"column",isLast:"isLast",isExpanded:"isExpanded"},outputs:{close:"close"},features:[e._Bn([Yo,wc])],decls:12,vars:7,consts:[[1,"k-filter-menu","k-group","k-reset","k-state-border-up",3,"submit","reset"],[1,"k-filter-menu-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngClass"],["type","reset",1,"k-button",3,"keydown.tab"],["resetButton",""],["type","submit",1,"k-button","k-primary",3,"disabled","keydown.tab"],["filterButton",""],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,s){1&t&&(e.TgZ(0,"form",0),e.NdJ("submit",function(){return s.submit()})("reset",function(){return s.reset()}),e.TgZ(1,"div",1),e.ynx(2,2),e.YNc(3,$k,2,4,"ng-container",3),e.YNc(4,Wk,2,1,"ng-container",3),e.BQk(),e.TgZ(5,"div",4),e.TgZ(6,"button",5,6),e.NdJ("keydown.tab",function(u){return s.onTab(u,"reset")}),e._uU(8),e.qZA(),e.TgZ(9,"button",7,8),e.NdJ("keydown.tab",function(u){return s.onTab(u,"filter")}),e._uU(11),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("ngSwitch",s.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngClass",s.actionsClass),e.xp6(3),e.Oqu(s.clearText),e.xp6(1),e.Q6J("disabled",s.disabled),e.xp6(2),e.Oqu(s.filterText))},directives:function(){return[zt._Y,zt.JL,zt.F,Re.RF,Re.n9,Re.mk,oM,Re.O5,Re.tP]},encapsulation:2}),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"close",void 0),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isLast",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isExpanded",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],n.prototype,"filter",null),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"actionsClass",void 0),p([(0,e.i9L)("resetButton",{static:!1}),r("design:type",e.SBq)],n.prototype,"resetButton",void 0),p([(0,e.i9L)("filterButton",{static:!1}),r("design:type",e.SBq)],n.prototype,"filterButton",void 0),n=p([K(0,(0,e.tp0)()),r("design:paramtypes",[Yo,Yo,G.oQ,e.sBO,wc])],n),n})(),kb=(()=>{let n=class extends kx{constructor(t){super(null),this.localizationService=t}get hostClasses(){return!1}ngAfterViewInit(){this.isFirstDropDown&&this.filterService&&this.filterService.menuTabbingService&&(this.filterService.menuTabbingService.firstFocusable=this.firstOperatorDropDown,this.firstOperatorDropDown.focus())}operatorChange(t){this.currentOperator=t}filterChange(t){this.applyFilter(t)}get currentFilter(){return this._currentFilter}set currentFilter(t){this._currentFilter=t}updateFilter(t){return Object.assign(this.currentFilter,t),this.filter}onChange(t){this.filterChange(this.updateFilter({field:this.column.field,operator:this.currentOperator,value:t}))}onShiftTab(t){t.stopImmediatePropagation(),(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.isFirstDropDown&&this.filterService.menuTabbingService.lastFocusable&&(t.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get filterMenuDropDownLabel(){const t=this.localizationService.get("filterMenuOperatorsDropDownLabel")||"";return Qc(t,"columnName",this.column?this.column.title||this.column.field:"")}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-filter-menu-input-wrapper"]],viewQuery:function(t,s){if(1&t&&e.Gf(gi.rI,5),2&t){let o;e.iGM(o=e.CRH())&&(s.firstOperatorDropDown=o.first)}},inputs:{currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService"},features:[e.qOj],ngContentSelectors:M7,decls:2,vars:4,consts:[["kendoFilterMenuDropDown","","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","value","valuePrimitive","valueChange","keydown.shift.tab"]],template:function(t,s){1&t&&(e.F$t(),e.TgZ(0,"kendo-dropdownlist",0),e.NdJ("valueChange",function(u){return s.operatorChange(u)})("keydown.shift.tab",function(u){return s.onShiftTab(u)}),e.qZA(),e.Hsn(1)),2&t&&e.Q6J("filterMenuDropDownLabel",s.filterMenuDropDownLabel)("data",s.operators)("value",s.currentOperator)("valuePrimitive",!0)},directives:function(){return[gi.rI,Y3]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isFirstDropDown",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),p([(0,e.i9L)(gi.rI,{static:!1}),r("design:type",gi.rI)],n.prototype,"firstOperatorDropDown",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],n.prototype,"currentFilter",null),n=p([r("design:paramtypes",[G.oQ])],n),n})(),sM=(()=>{let n=class{constructor(t){this.localizationService=t,this.operators=[]}get columnLabel(){const t=this.localizationService.get("filterInputLabel")||"";return Qc(t,"columnName",this.column?this.column.title||this.column.field:"")}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-string-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService"},decls:2,vars:11,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",1,"k-textbox",3,"columnLabel","filterDelay","ngModel"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0),e._UZ(1,"input",1),e.qZA()),2&t&&(e.Q6J("column",s.column)("filter",s.filter)("operators",s.operators)("defaultOperator",s.operator)("currentFilter",s.currentFilter)("filterService",s.filterService)("isFirstDropDown",s.isFirstDropDown)("menuTabbingService",s.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",s.columnLabel)("filterDelay",0)("ngModel",null==s.currentFilter?null:s.currentFilter.value))},directives:[kb,zt.Fj,Wh,zt.JJ,zt.On],encapsulation:2}),p([(0,e.IIB)(),r("design:type",Array)],n.prototype,"operators",void 0),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"operator",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"currentFilter",void 0),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isFirstDropDown",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),n=p([r("design:paramtypes",[G.oQ])],n),n})(),H_=(()=>{let n=class extends Ax{constructor(t){super(null,t),this.logicOperators=H3(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return z3(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return z3(1,this.filter,(this.column||{}).field,this.operator)}logicChange(t){this.filter.logic=t}get filterMenuDropDownLabel(){const t=this.localization.get("filterMenuLogicDropDownLabel")||"";return Qc(t,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=H3(this.localization),super.localizationChange()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-string-filter-menu"]],hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-filtercell",s.hostClasses)},inputs:{filter:"filter",extra:"extra",column:"column",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:9,consts:[[3,"currentFilter","operators","filterService","column","filter","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService"]],template:function(t,s){1&t&&(e._UZ(0,"kendo-grid-string-filter-menu-input",0),e.YNc(1,Zk,1,4,"kendo-dropdownlist",1),e.YNc(2,Jk,1,6,"kendo-grid-string-filter-menu-input",2)),2&t&&(e.Q6J("currentFilter",s.firstFilter)("operators",s.operators)("filterService",s.filterService)("column",s.column)("filter",s.filter)("isFirstDropDown",!0)("menuTabbingService",s.menuTabbingService),e.xp6(1),e.Q6J("ngIf",s.extra),e.xp6(1),e.Q6J("ngIf",s.extra))},directives:function(){return[sM,Re.O5,gi.rI,Y3]},encapsulation:2}),p([(0,e.pfw)("class.k-filtercell"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"hostClasses",null),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"extra",void 0),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),n=p([r("design:paramtypes",[G.oQ])],n),n})(),Ab=(()=>{let n=class extends Ex{constructor(t){super(null,t),this.logicOperators=H3(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return z3(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return z3(1,this.filter,(this.column||{}).field,this.operator)}logicChange(t){this.filter.logic=t}get filterMenuDropDownLabel(){const t=this.localization.get("filterMenuLogicDropDownLabel")||"";return Qc(t,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=H3(this.localization),super.localizationChange()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-numeric-filter-menu"]],hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-filtercell",s.hostClasses)},inputs:{filter:"filter",extra:"extra",column:"column",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:15,consts:[[3,"currentFilter","operators","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService","isFirstDropDown"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService"]],template:function(t,s){1&t&&(e._UZ(0,"kendo-grid-numeric-filter-menu-input",0),e.YNc(1,Kk,1,4,"kendo-dropdownlist",1),e.YNc(2,qk,1,12,"kendo-grid-numeric-filter-menu-input",2)),2&t&&(e.Q6J("currentFilter",s.firstFilter)("operators",s.operators)("filterService",s.filterService)("column",s.column)("filter",s.filter)("format",s.format)("decimals",s.decimals)("spinners",s.spinners)("min",s.min)("max",s.max)("step",s.step)("menuTabbingService",s.menuTabbingService)("isFirstDropDown",!0),e.xp6(1),e.Q6J("ngIf",s.extra),e.xp6(1),e.Q6J("ngIf",s.extra))},directives:function(){return[rM,Re.O5,gi.rI,Y3]},encapsulation:2}),p([(0,e.pfw)("class.k-filtercell"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"hostClasses",null),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"extra",void 0),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),n=p([r("design:paramtypes",[G.oQ])],n),n})(),rM=(()=>{let n=class{constructor(t){this.localization=t,this.operators=[],this.step=1,this.spinners=!0}messageFor(t){return this.localization.get(t)}get columnLabel(){const t=this.localization.get("filterInputLabel")||"";return Qc(t,"columnName",this.column?this.column.title||this.column.field:"")}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-numeric-filter-menu-input"]],inputs:{operators:"operators",step:"step",spinners:"spinners",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService",min:"min",max:"max",decimals:"decimals",format:"format"},decls:3,vars:20,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0),e.TgZ(1,"kendo-numerictextbox",1),e._UZ(2,"kendo-numerictextbox-messages",2),e.qZA(),e.qZA()),2&t&&(e.Q6J("column",s.column)("filter",s.filter)("operators",s.operators)("defaultOperator",s.operator)("currentFilter",s.currentFilter)("filterService",s.filterService)("isFirstDropDown",s.isFirstDropDown)("menuTabbingService",s.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",s.columnLabel)("filterDelay",0)("autoCorrect",!0)("value",null==s.currentFilter?null:s.currentFilter.value)("format",s.format)("decimals",s.decimals)("spinners",s.spinners)("min",s.min)("max",s.max)("step",s.step),e.xp6(1),e.Q6J("increment",s.messageFor("filterNumericIncrement"))("decrement",s.messageFor("filterNumericDecrement")))},directives:[kb,Fi.Uw,Wh,Fi.wS],encapsulation:2}),p([(0,e.IIB)(),r("design:type",Array)],n.prototype,"operators",void 0),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"operator",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"currentFilter",void 0),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isFirstDropDown",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"step",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"min",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"max",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"spinners",void 0),p([(0,e.IIB)(),r("design:type",Number)],n.prototype,"decimals",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"format",void 0),n=p([r("design:paramtypes",[G.oQ])],n),n})(),Ob=(()=>{let n=class extends Px{constructor(t){super(null,t),this.logicOperators=H3(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return z3(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return z3(1,this.filter,(this.column||{}).field,this.operator)}logicChange(t){this.filter.logic=t}get filterMenuDropDownLabel(){const t=this.localization.get("filterMenuLogicDropDownLabel")||"";return Qc(t,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=H3(this.localization),super.localizationChange()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-date-filter-menu"]],hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-filtercell",s.hostClasses)},inputs:{filter:"filter",extra:"extra",column:"column",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:18,consts:[[3,"currentFilter","operators","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService"]],template:function(t,s){1&t&&(e._UZ(0,"kendo-grid-date-filter-menu-input",0),e.YNc(1,Xk,1,4,"kendo-dropdownlist",1),e.YNc(2,eA,1,15,"kendo-grid-date-filter-menu-input",2)),2&t&&(e.Q6J("currentFilter",s.firstFilter)("operators",s.operators)("filterService",s.filterService)("column",s.column)("filter",s.filter)("activeView",s.activeView)("bottomView",s.bottomView)("topView",s.topView)("format",s.format)("formatPlaceholder",s.formatPlaceholder)("placeholder",s.placeholder)("min",s.min)("max",s.max)("weekNumber",s.weekNumber)("isFirstDropDown",!0)("menuTabbingService",s.menuTabbingService),e.xp6(1),e.Q6J("ngIf",s.extra),e.xp6(1),e.Q6J("ngIf",s.extra))},directives:function(){return[aM,Re.O5,gi.rI,Y3]},encapsulation:2}),p([(0,e.pfw)("class.k-filtercell"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"hostClasses",null),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"extra",void 0),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),n=p([r("design:paramtypes",[G.oQ])],n),n})(),V_=(()=>{let n=class{constructor(t,s){this.hostElement=t,this.renderer=s}ngAfterViewInit(){this.radioButtonEl=this.hostElement.nativeElement,this.renderer.setAttribute(this.hostElement.nativeElement,"aria-label",this.columnLabel)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoFilterMenuRadioButton",""]],inputs:{columnLabel:"columnLabel"}}),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"columnLabel",void 0),n=p([r("design:paramtypes",[e.SBq,e.Qsj])],n),n})(),Fb=(()=>{let n=class extends Fx{constructor(t){super(null,t),this.filter={filters:[],logic:"and"},this.idPrefix=(0,z.M8)()}get hostClasses(){return!1}ngAfterViewInit(){this.filterService.menuTabbingService.firstFocusable=this.radioButtons.first.radioButtonEl,this.radioButtons.first.radioButtonEl.focus()}radioId(t){return`${this.idPrefix}_${t}`}onChange(t,s){this.applyFilter(this.updateFilter({field:this.column.field,operator:"eq",value:t})),this.filterService.menuTabbingService.firstFocusable=s}isSelected(t){return this.filtersByField(this.column.field).some(({value:s})=>s===t)}onShiftTab(t){(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.filterService.menuTabbingService.lastFocusable&&(t.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get columnLabel(){const t=this.localization.get("filterInputLabel")||"";return Qc(t,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-boolean-filter-menu"]],viewQuery:function(t,s){if(1&t&&e.Gf(V_,5),2&t){let o;e.iGM(o=e.CRH())&&(s.radioButtons=o)}},hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-filtercell",s.hostClasses)},inputs:{filter:"filter",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:2,vars:1,consts:[[1,"k-radio-list","k-reset"],[4,"ngFor","ngForOf"],["type","radio","kendoFilterMenuRadioButton","",1,"k-radio",3,"columnLabel","name","checked","change","keydown.shift.tab"],["input",""],[1,"k-radio-label"]],template:function(t,s){1&t&&(e.TgZ(0,"ul",0),e.YNc(1,tA,5,6,"li",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngForOf",s.items))},directives:[Re.sg,V_],encapsulation:2}),p([(0,e.pfw)("class.k-filtercell"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"hostClasses",null),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),p([(0,e.vR)(V_),r("design:type",e.n_E)],n.prototype,"radioButtons",void 0),n=p([r("design:paramtypes",[G.oQ])],n),n})(),oM=(()=>{let n=class extends Bx{constructor(t,s){super(t,s)}componentType(){return Gi(this.column)&&!Tl(this.column.filter)?(n=>({boolean:Fb,date:Ob,numeric:Ab,text:H_}[this.column.filter]))():H_}initComponent(t){super.initComponent(t),this.component.instance.filterService=this.filterService,this.component.instance.menuTabbingService=this.menuTabbingService}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e._Vd))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoFilterMenuHost",""]],inputs:{filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),n=p([r("design:paramtypes",[e.s_b,e._Vd])],n),n})(),aM=(()=>{let n=class{constructor(t,s){this.popupService=t,this.localizationService=s,this.operators=[]}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}open(t){this.subscription=this.popupService.onClose.pipe((0,ye.h)(()=>t.isActive)).subscribe(s=>s.preventDefault())}messageFor(t){return this.localizationService.get(t)}get columnLabel(){const t=this.localizationService.get("filterInputLabel")||"";return Qc(t,"columnName",this.column?this.column.title||this.column.field:"")}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(I0),e.Y36(G.oQ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-date-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",menuTabbingService:"menuTabbingService",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",isFirstDropDown:"isFirstDropDown"},decls:4,vars:22,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","value","placeholder","formatPlaceholder","format","min","max","activeView","bottomView","topView","weekNumber","open"],["picker",""],[3,"toggle","today"]],template:function(t,s){if(1&t){const o=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0),e.TgZ(1,"kendo-datepicker",1,2),e.NdJ("open",function(){e.CHM(o);const b=e.MAs(2);return s.open(b)}),e._UZ(3,"kendo-datepicker-messages",3),e.qZA(),e.qZA()}2&t&&(e.Q6J("column",s.column)("filter",s.filter)("operators",s.operators)("defaultOperator",s.operator)("currentFilter",s.currentFilter)("filterService",s.filterService)("isFirstDropDown",s.isFirstDropDown)("menuTabbingService",s.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",s.columnLabel)("filterDelay",0)("value",null==s.currentFilter?null:s.currentFilter.value)("placeholder",s.placeholder)("formatPlaceholder",s.formatPlaceholder)("format",s.format)("min",s.min)("max",s.max)("activeView",s.activeView)("bottomView",s.bottomView)("topView",s.topView)("weekNumber",s.weekNumber),e.xp6(2),e.Q6J("toggle",s.messageFor("filterDateToggle"))("today",s.messageFor("filterDateToday")))},directives:[kb,Is,Wh,ud],encapsulation:2}),p([(0,e.IIB)(),r("design:type",Array)],n.prototype,"operators",void 0),p([(0,e.IIB)(),r("design:type",jr)],n.prototype,"column",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"filter",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"operator",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"currentFilter",void 0),p([(0,e.IIB)(),r("design:type",Yo)],n.prototype,"filterService",void 0),p([(0,e.IIB)(),r("design:type",wc)],n.prototype,"menuTabbingService",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"format",void 0),p([(0,e.IIB)(),r("design:type",Object)],n.prototype,"formatPlaceholder",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"placeholder",void 0),p([(0,e.IIB)(),r("design:type",Date)],n.prototype,"min",void 0),p([(0,e.IIB)(),r("design:type",Date)],n.prototype,"max",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"activeView",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"bottomView",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"topView",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"weekNumber",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isFirstDropDown",void 0),n=p([r("design:paramtypes",[I0,G.oQ])],n),n})(),Y3=(()=>{let n=class{constructor(t){this.host=t,this.keydownHandler=s=>{s.keyCode===z.R8.Escape&&this.host.isOpen&&(s.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){const t=this.host.wrapper.nativeElement;t.setAttribute("aria-label",this.filterMenuDropDownLabel),t.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(gi.rI))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoFilterMenuDropDown",""]],inputs:{filterMenuDropDownLabel:"filterMenuDropDownLabel"}}),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"filterMenuDropDownLabel",void 0),n=p([r("design:paramtypes",[gi.rI])],n),n})(),Rb=(()=>{let n=class{static exports(){return[H_,M_,Ab,Ob,Fb,Y3,V_,U3.exports()]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[U3],U3]}),n})(),U9=(()=>{let n=class{constructor(t,s,o){this.element=t,this.ngZone=s,this.renderer=o,this.reset=new e.vpe,this.apply=new e.vpe,this.columnChange=new e.vpe,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-action-buttons",this.unlockedCount=0}get className(){return!0}set columns(t){this._columns=t.filter(s=>!1!==s.includeInChooser),this.allColumns=t,this.updateColumnState()}get columns(){return this._columns}isDisabled(t){return!(this.allowHideAll||this.hasFiltered||t.hidden||this.columns.find(s=>s!==t&&!s.hidden))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&1===this.unlockedCount&&!t.locked&&!t.hidden}ngOnInit(){!this.element||this.ngZone.runOutsideAngular(()=>{this.domSubscriptions=this.renderer.listen(this.element.nativeElement,"click",t=>{if(u6(t.target,"k-checkbox"))if(this.autoSync){const s=parseInt(t.target.getAttribute("data-index"),10),o=this.columns[s],u=!t.target.checked;Boolean(o.hidden)!==u&&this.ngZone.run(()=>{o.hidden=u,this.columnChange.emit([o])})}else this.updateDisabled()})})}ngOnChanges(t){!this.service||(t.isLast&&this.isLast&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement),t.isExpanded&&this.isExpanded&&this.isLast&&this.applyButton&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement))}ngOnDestroy(){this.domSubscriptions&&this.domSubscriptions()}cancelChanges(){this.forEachCheckBox((t,s)=>{t.checked=!this.columns[s].hidden}),this.updateDisabled(),this.reset.emit()}applyChanges(){const t=[];this.forEachCheckBox((s,o)=>{const u=this.columns[o],b=!s.checked;Boolean(u.hidden)!==b&&(u.hidden=b,t.push(u))}),this.updateDisabled(),this.apply.emit(t)}onTab(t){this.isLast&&(t.preventDefault(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}forEachCheckBox(t){const s=this.element.nativeElement.getElementsByClassName("k-checkbox"),o=s.length;for(let u=0;u{s.checked&&t.push({checkbox:s,index:o}),s.disabled=!1}),this.allowHideAll||1!==t.length||this.hasFiltered){if(this.hasLocked&&!this.hasUnlockedFiltered){const s=this.columns,o=t.filter(u=>!s[u.index].locked);1===o.length&&(o[0].checkbox.disabled=!0)}}else t[0].checkbox.disabled=!0}updateColumnState(){this.hasLocked=this.allColumns.filter(s=>s.locked&&(!s.hidden||!1!==s.includeInChooser)).length>0,this.hasVisibleLocked=this.allColumns.filter(s=>s.locked&&!s.hidden).length>0,this.unlockedCount=this.columns.filter(s=>!s.locked&&!s.hidden).length;const t=this.allColumns.filter(s=>!1===s.includeInChooser&&!s.hidden);t.length?(this.hasFiltered=t.length>0,this.hasUnlockedFiltered=t.filter(s=>!s.locked).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnlist"]],viewQuery:function(t,s){if(1&t&&e.Gf(nA,5),2&t){let o;e.iGM(o=e.CRH())&&(s.applyButton=o.first)}},hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-column-list-wrapper",s.className)},inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll",actionsClass:"actionsClass",columns:"columns",applyText:"applyText",resetText:"resetText",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[e.TTD],decls:3,vars:2,consts:[[1,"k-column-list"],["class","k-column-list-item",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],[1,"k-column-list-item"],["type","checkbox",1,"k-checkbox",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button",3,"click"],["type","button",1,"k-button","k-primary",3,"keydown.tab","click"],["applyButton",""]],template:function(t,s){1&t&&(e.TgZ(0,"div",0),e.YNc(1,iA,4,4,"label",1),e.qZA(),e.YNc(2,sA,6,3,"div",2)),2&t&&(e.xp6(1),e.Q6J("ngForOf",s.columns),e.xp6(1),e.Q6J("ngIf",!s.autoSync))},directives:[Re.sg,Re.O5,Re.mk],encapsulation:2}),p([(0,e.pfw)("class.k-column-list-wrapper"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"className",null),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"reset",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"apply",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"columnChange",void 0),p([(0,e.IIB)(),r("design:type",Array),r("design:paramtypes",[Array])],n.prototype,"columns",null),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"autoSync",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"allowHideAll",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"applyText",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"resetText",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"actionsClass",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isLast",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isExpanded",void 0),p([(0,e.IIB)(),r("design:type",U6)],n.prototype,"service",void 0),p([(0,e.i9L)("applyButton",{static:!1}),r("design:type",e.SBq)],n.prototype,"applyButton",void 0),n=p([r("design:paramtypes",[e.SBq,e.R0b,e.Qsj])],n),n})(),lM=(()=>{let n=class{constructor(t,s,o,u,b,k){this.localization=t,this.columnInfoService=s,this.popupService=o,this.ngZone=u,this.renderer=b,this.changeDetector=k,this.autoSync=!1,this.allowHideAll=!0}get columns(){return this.columnInfoService.leafNamedColumns}ngOnDestroy(){this.close()}toggle(t,s){if(this.popupRef)this.close();else{const o=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:t,content:s,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:o},popupAlign:{vertical:"top",horizontal:o}}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.ngZone.runOutsideAngular(()=>this.closeClick=this.renderer.listen("document","click",({target:u})=>{Cd(u,b=>b===this.popupRef.popupElement||b===t)||this.close()}))}}onApply(t){this.close(),t.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(t))}onChange(t){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(t)}close(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.detachClose()}detachClose(){this.closeClick&&(this.closeClick(),this.closeClick=null)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(ll),e.Y36(un.qL),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-column-chooser"]],inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:5,vars:1,consts:[["type","button",1,"k-button","k-bare","k-button-icon",3,"click"],["anchor",""],[1,"k-icon","k-i-columns"],["template",""],[1,"k-column-chooser-title"],[3,"columns","applyText","resetText","autoSync","allowHideAll","apply","columnChange"]],template:function(t,s){if(1&t){const o=e.EpF();e.TgZ(0,"button",0,1),e.NdJ("click",function(){e.CHM(o);const b=e.MAs(1),k=e.MAs(4);return s.toggle(b,k)}),e._UZ(2,"span",2),e.qZA(),e.YNc(3,rA,3,6,"ng-template",null,3,e.W1O)}2&t&&e.uIk("title",s.localization.get("columns"))},directives:[U9],encapsulation:2}),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"autoSync",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"allowHideAll",void 0),n=p([r("design:paramtypes",[G.oQ,ll,un.qL,e.R0b,e.Qsj,e.sBO])],n),n})(),Q3=(()=>{class n{constructor(){this.hostClass=!0}ngOnInit(){if((0,e.X6Q)()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}close(){this.service.close()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,hostVars:2,hostBindings:function(t,s){2&t&&e.ekj("k-columnmenu-item-wrapper",s.hostClass)},inputs:{service:"service"}}),p([(0,e.IIB)(),r("design:type",U6)],n.prototype,"service",void 0),p([(0,e.pfw)("class.k-columnmenu-item-wrapper"),r("design:type",Boolean)],n.prototype,"hostClass",void 0),n})(),Pb=(()=>{let n=class extends Q3{constructor(t,s,o,u){super(),this.localization=t,this.columnInfoService=s,this.changeDetector=o,this.hostElement=u,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.isLast=!1,this.actionsClass="k-columnmenu-actions"}get columns(){return this.columnInfoService.leafNamedColumns}onApply(t){this.close(),t.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(t))}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(ll),e.Y36(e.sBO),e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:2,consts:[["icon","columns",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"applyText","resetText","columns","autoSync","allowHideAll","actionsClass","isLast","isExpanded","service","apply"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("collapse",function(){return s.onCollapse()})("expand",function(){return s.onExpand()}),e.YNc(1,oA,1,9,"ng-template",1),e.qZA()),2&t&&e.Q6J("text",s.localization.get("columns"))("expanded",s.expanded)},directives:function(){return[yg,_g,U9]},encapsulation:2}),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"expand",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"collapse",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"expanded",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isLast",void 0),n=p([r("design:paramtypes",[G.oQ,ll,e.sBO,e.SBq])],n),n})(),j_=(()=>{let n=class extends Q3{constructor(t,s){super(),this.localization=t,this.hostElement=s,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.isLast=!1,this.actionsClass="k-columnmenu-actions"}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:2,consts:[["icon","filter",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"column","menuTabbingService","filter","actionsClass","isLast","isExpanded","keydown.shift.tab","close"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("collapse",function(){return s.onCollapse()})("expand",function(){return s.onExpand()}),e.YNc(1,aA,1,6,"ng-template",1),e.qZA()),2&t&&e.Q6J("text",s.localization.get("filter"))("expanded",s.expanded)},directives:function(){return[yg,_g,G9]},encapsulation:2}),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"expand",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"collapse",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"expanded",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"isLast",void 0),n=p([r("design:paramtypes",[G.oQ,e.SBq])],n),n})(),_g=(()=>{let n=class{constructor(t){this.templateRef=t}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),n=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],n),n})(),yg=(()=>{let n=class{constructor(){this.itemClick=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.contentState="collapsed"}get iconClass(){return`k-i-${this.icon}`}ngOnChanges(t){t.expanded&&this.updateContentState()}onClick(t){this.itemClick.emit(t),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}updateContentState(){this.contentState=this.expanded?"expanded":"collapsed"}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(t,s,o){if(1&t&&e.Suo(o,_g,5),2&t){let u;e.iGM(u=e.CRH())&&(s.contentTemplate=u.first)}},inputs:{expanded:"expanded",icon:"icon",text:"text",selected:"selected",disabled:"disabled"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[e.TTD],decls:4,vars:8,consts:[["role","button",1,"k-columnmenu-item",3,"click","keydown.enter"],["class","k-icon",3,"ngClass",4,"ngIf"],["style","overflow:hidden;","class","k-columnmenu-item-content",4,"ngIf"],[1,"k-icon",3,"ngClass"],[1,"k-columnmenu-item-content",2,"overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(t,s){1&t&&(e.TgZ(0,"div",0),e.NdJ("click",function(u){return s.onClick(u)})("keydown.enter",function(u){return s.onClick(u)}),e.YNc(1,lA,1,1,"span",1),e._uU(2),e.qZA(),e.YNc(3,cA,3,2,"div",2)),2&t&&(e.ekj("k-state-selected",s.selected)("k-state-disabled",s.disabled),e.uIk("aria-expanded",s.expanded),e.xp6(1),e.Q6J("ngIf",s.icon),e.xp6(1),e.hij(" ",s.text," "),e.xp6(1),e.Q6J("ngIf",s.contentTemplate))},directives:[Re.O5,Re.mk,Re.tP],encapsulation:2,data:{animation:[(0,mo.X$)("state",[(0,mo.SB)("collapsed",(0,mo.oB)({display:"none"})),(0,mo.SB)("expanded",(0,mo.oB)({display:"block"})),(0,mo.eR)("collapsed => expanded",[(0,mo.oB)({height:"0px",display:"block"}),(0,mo.jt)("100ms ease-in",(0,mo.oB)({height:"*"}))]),(0,mo.eR)("expanded => collapsed",[(0,mo.oB)({height:"*"}),(0,mo.jt)("100ms ease-in",(0,mo.oB)({height:"0px"}))])])]}}),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"itemClick",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"expand",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"collapse",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"icon",void 0),p([(0,e.IIB)(),r("design:type",String)],n.prototype,"text",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"selected",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"expanded",void 0),p([(0,e.aQ5)(_g,{static:!1}),r("design:type",_g)],n.prototype,"contentTemplate",void 0),n})(),$9=(()=>{let n=class extends Q3{constructor(t,s,o){super(),this.localization=t,this.sortService=s,this.renderer=o}get sortedAsc(){const t=this.descriptor;return t&&(!t.dir||"asc"===t.dir)}get sortedDesc(){const t=this.descriptor;return t&&"desc"===t.dir}toggleSort(t){const s=this.service.column.field,{mode:o,allowUnsort:u}=V9(this.service.sortable),b=this.descriptor,k="multiple"===o?this.service.sort.filter(ae=>ae.field!==s):[];if(b&&b.dir===t){if(!u)return}else k.push({field:s,dir:t});this.sortService.sort(k),this.close()}get descriptor(){return[].concat(this.service.sort||[]).find(t=>t.field===this.service.column.field)}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(x6),e.Y36(e.Qsj))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnmenu-sort"]],features:[e.qOj],decls:2,vars:4,consts:[["icon","sort-asc-sm",3,"text","selected","itemClick"],["icon","sort-desc-sm",3,"text","selected","itemClick"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return s.toggleSort("asc")}),e.qZA(),e.TgZ(1,"kendo-grid-columnmenu-item",1),e.NdJ("itemClick",function(){return s.toggleSort("desc")}),e.qZA()),2&t&&(e.Q6J("text",s.localization.get("sortAscending"))("selected",s.sortedAsc),e.xp6(1),e.Q6J("text",s.localization.get("sortDescending"))("selected",s.sortedDesc))},directives:[yg],encapsulation:2}),n=p([r("design:paramtypes",[G.oQ,x6,e.Qsj])],n),n})(),Lb=(()=>{let n=class extends Q3{constructor(t,s,o){super(),this.localization=t,this.columnInfoService=s,this.changeDetector=o}get text(){return this.localization.get(this.locked?"unlock":"lock")}get icon(){return this.locked?"unlock":"lock"}get disabled(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(t){let s=this.service.column;for(;s.parent;)s=s.parent;const o=[s],u=[];for(;o.length;){const b=o.shift();b.locked=t,u.push(b),b.hasChildren&&o.push(...b.childrenArray)}this.columnInfoService.changeLocked(u)}get locked(){return this.service.column.locked}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(ll),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnmenu-lock"]],features:[e.qOj],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return s.toggleColumn()}),e.qZA()),2&t&&e.Q6J("text",s.text)("icon",s.icon)("disabled",s.disabled)},directives:[yg],encapsulation:2}),n=p([r("design:paramtypes",[G.oQ,ll,e.sBO])],n),n})(),Bb=(()=>{let n=class extends Q3{constructor(t,s){super(),this.localization=t,this.hostElement=s,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.actionsClass="k-columnmenu-actions",this._isLast=!1}set isLast(t){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=t}get isLast(){return this._isLast}onTab(t,s){this.isLast&&s&&(t.preventDefault(),t.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}onExpand(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}getLastFocusableItem(){const t=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item");return t[this.expanded?t.length-1:0]}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",isLast:"isLast",showLock:"showLock",showStick:"showStick"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:2,consts:[["icon","set-column-position",3,"text","expanded","keydown.tab","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"service","keydown.tab",4,"ngIf"],[3,"service","keydown.tab"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("keydown.tab",function(u){return s.onTab(u,!s.expanded)})("collapse",function(){return s.onCollapse()})("expand",function(){return s.onExpand()}),e.YNc(1,hA,2,2,"ng-template",1),e.qZA()),2&t&&e.Q6J("text",s.localization.get("setColumnPosition"))("expanded",s.expanded)},directives:function(){return[yg,_g,Re.O5,Lb,Nb]},encapsulation:2}),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"expand",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],n.prototype,"collapse",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"expanded",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showLock",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],n.prototype,"showStick",void 0),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],n.prototype,"isLast",null),n=p([r("design:paramtypes",[G.oQ,e.SBq])],n),n})(),G_=(()=>{let n=class{constructor(t,s,o){this.hostElement=t,this.renderer=s,this.ngZone=o,this._isFirst=!1,this._isLast=!1,this.subs=new he.w0,this.onTab=u=>{if(u.keyCode===z.R8.Tab&&(this.isFirst&&u.shiftKey&&u.target===this.columnMenuItems[0]&&(u.preventDefault(),this.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),this.isLast&&!u.shiftKey)){const b=this.getLastColumnMenuItem(),k=this.menuItemComponent.expanded;b===u.target&&!k&&(u.preventDefault(),this.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}}set isFirst(t){if(t){const s=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=s,this.ngZone.runOutsideAngular(()=>{const o=this.renderer.listen(s,"keydown",this.onTab);this.subs.add(o)})}this._isFirst=t}get isFirst(){return this._isFirst}set isLast(t){if(this.columnMenuItems){if(t){const s=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=s,this.ngZone.runOutsideAngular(()=>{const o=this.renderer.listen(s,"keydown",this.onTab);this.subs.add(o)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=t}}get isLast(){return this._isLast}ngAfterViewInit(){this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(t=>this.renderer.setAttribute(t,"tabindex","0")),this.menuItemComponent instanceof j_&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}getLastColumnMenuItem(){return 1===this.columnMenuItems.length?this.columnMenuItems[0]:this.columnMenuItems[1]}isExpandableItem(){return this.menuItemComponent instanceof j_||this.menuItemComponent instanceof Pb||this.menuItemComponent instanceof Bb}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:["kendoGridColumnMenuItem","menuItemComponent"]}}),p([(0,e.IIB)("kendoGridColumnMenuItem"),r("design:type",Object)],n.prototype,"menuItemComponent",void 0),n=p([r("design:paramtypes",[e.SBq,e.Qsj,e.R0b])],n),n})(),Y9=(()=>{let n=class{constructor(t,s){this.service=t,this.ngZone=s}ngAfterContentInit(){!this.columnMenuItems.length||(this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0,this.ngZone.onStable.pipe((0,Wt.q)(1)).subscribe(()=>this.service.menuTabbingService.firstFocusable.focus()))}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(U6),e.Y36(e.R0b))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(t,s,o){if(1&t&&e.Suo(o,G_,5),2&t){let u;e.iGM(u=e.CRH())&&(s.columnMenuItems=u)}},ngContentSelectors:M7,decls:1,vars:0,template:function(t,s){1&t&&(e.F$t(),e.Hsn(0))},encapsulation:2}),p([(0,e.AcB)(G_,{descendants:!0}),r("design:type",e.n_E)],n.prototype,"columnMenuItems",void 0),n=p([r("design:paramtypes",[U6,e.R0b])],n),n})(),Nb=(()=>{let n=class extends Q3{constructor(t,s,o){super(),this.localization=t,this.columnInfoService=s,this.changeDetector=o}get text(){return this.localization.get(this.sticky?"unstick":"stick")}get icon(){return this.sticky?"unstick":"stick"}get disabled(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(t){let s=this.service.column;for(;s.parent;)s=s.parent;const o=[s],u=[];for(;o.length;){const b=o.shift();b.sticky=t,u.push(b),b.hasChildren&&o.push(...b.childrenArray)}this.columnInfoService.changeStuck(u)}get sticky(){return this.service.column.sticky}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.oQ),e.Y36(ll),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["kendo-grid-columnmenu-stick"]],features:[e.qOj],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,s){1&t&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return s.toggleColumn()}),e.qZA()),2&t&&e.Q6J("text",s.text)("icon",s.icon)("disabled",s.disabled)},directives:[yg],encapsulation:2}),n=p([r("design:paramtypes",[G.oQ,ll,e.sBO])],n),n})(),Q9=(()=>{let n=class{static exports(){return[lM,j_,yg,_g,$9,Lb,Nb,Bb,Pb,L3,Y9,G_,z_]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez,Rb]]}),n})();const vP=[Re.ez,Db,k9,Rb,D0,$x,Q9];let cM=(()=>{let n=class{static exports(){return[ob,j9]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[...vP]]}),n})();var W9;let af=W9=class extends ta{constructor(i,t){super(i,t),this.parent=i}get templateRef(){return this.template?this.template.templateRef:void 0}};var Z9;af.\u0275fac=function(i){return new(i||af)(e.Y36(ta,13),e.Y36(nc,8))},af.\u0275cmp=e.Xpm({type:af,selectors:[["kendo-grid-command-column"]],contentQueries:function(i,t,s){if(1&i&&e.Suo(s,rh,5),2&i){let o;e.iGM(o=e.CRH())&&(t.template=o.first)}},features:[e._Bn([{provide:ta,useExisting:(0,e.Gpc)(()=>W9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),p([(0,e.aQ5)(rh,{static:!1}),r("design:type",rh)],af.prototype,"template",void 0),af=W9=p([K(0,(0,e.tp0)()),K(0,(0,e.AA_)()),K(0,(0,e.FiY)()),K(1,(0,e.FiY)()),r("design:paramtypes",[ta,nc])],af);let lf=Z9=class extends ta{constructor(i,t){super(i,t),this.parent=i,this.isCheckboxColumn=!0}get templateRef(){return this.template?this.template.templateRef:void 0}};lf.\u0275fac=function(i){return new(i||lf)(e.Y36(ta,13),e.Y36(nc,8))},lf.\u0275cmp=e.Xpm({type:lf,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(i,t,s){if(1&i&&e.Suo(s,rh,5),2&i){let o;e.iGM(o=e.CRH())&&(t.template=o.first)}},inputs:{showSelectAll:"showSelectAll"},features:[e._Bn([{provide:ta,useExisting:(0,e.Gpc)(()=>Z9)}]),e.qOj],decls:0,vars:0,template:function(i,t){},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Boolean)],lf.prototype,"showSelectAll",void 0),p([(0,e.aQ5)(rh,{static:!1}),r("design:type",rh)],lf.prototype,"template",void 0),lf=Z9=p([K(0,(0,e.tp0)()),K(0,(0,e.AA_)()),K(0,(0,e.FiY)()),K(1,(0,e.FiY)()),r("design:paramtypes",[ta,nc])],lf);let J9=(()=>{let n=class{constructor(t,s,o,u){this.selectionService=t,this.el=s,this.renderer=o,this.ngZone=u,this.type="checkbox",this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this)),this.destroyKeyDown=this.renderer.listen(this.el.nativeElement,"keydown",this.onKeyDown.bind(this))})}ngAfterContentChecked(){this.setCheckedState()}ngOnDestroy(){this.destroyClick&&this.destroyClick(),this.destroyKeyDown&&this.destroyKeyDown()}onClick(){this.selectionService.options.enabled&&this.ngZone.run(()=>{const t=this.selectionService.toggleByIndex(this.itemIndex);t.ctrlKey=!0,t.shiftKey=!1,this.selectionService.changes.emit(t)})}onKeyDown(t){t.keyCode===z.R8.Enter&&this.onClick()}setCheckedState(){this.renderer.setProperty(this.el.nativeElement,"checked",this.selectionService.isSelected(this.itemIndex))}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e1),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridSelectionCheckbox",""]],hostVars:1,hostBindings:function(t,s){2&t&&e.uIk("type",s.type)},inputs:{itemIndex:["kendoGridSelectionCheckbox","itemIndex"]}}),p([(0,e.IIB)("kendoGridSelectionCheckbox"),r("design:type",Number)],n.prototype,"itemIndex",void 0),p([(0,e.pfw)("attr.type"),r("design:type",String)],n.prototype,"type",void 0),n=p([r("design:paramtypes",[e1,e.SBq,e.Qsj,e.R0b])],n),n})(),uM=(()=>{let n=class extends pd.zx{constructor(t,s,o,u,b,k){super(o,u,null,b,k),this.editService=t,this.cellContext=s,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(t){t.preventDefault(),this.editService.beginEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(El),e.Y36(Zc),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(G.oQ),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(t,s){1&t&&e.NdJ("click",function(u){return s.onClick(u)}),2&t&&(e.Udp("display",s.visible),e.ekj("k-grid-edit-command",s.commandClass))},features:[e.qOj]}),p([(0,e.pfw)("style.display"),r("design:type",String),r("design:paramtypes",[])],n.prototype,"visible",null),p([(0,e.pfw)("class.k-grid-edit-command"),r("design:type",Boolean)],n.prototype,"commandClass",void 0),p([(0,e.L6J)("click",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"onClick",null),n=p([K(1,(0,e.tBr)(Zc)),r("design:paramtypes",[El,Object,e.SBq,e.Qsj,G.oQ,e.R0b])],n),n})(),hM=(()=>{let n=class extends pd.zx{constructor(t,s,o,u,b,k){super(o,u,null,b,k),this.editService=t,this.cellContext=s,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(t){t.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(El),e.Y36(Zc),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(G.oQ),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(t,s){1&t&&e.NdJ("click",function(u){return s.onClick(u)}),2&t&&(e.Udp("display",s.visible),e.ekj("k-grid-cancel-command",s.commandClass))},features:[e.qOj]}),p([(0,e.pfw)("style.display"),r("design:type",String),r("design:paramtypes",[])],n.prototype,"visible",null),p([(0,e.pfw)("class.k-grid-cancel-command"),r("design:type",Boolean)],n.prototype,"commandClass",void 0),p([(0,e.L6J)("click",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"onClick",null),n=p([K(1,(0,e.tBr)(Zc)),r("design:paramtypes",[El,Object,e.SBq,e.Qsj,G.oQ,e.R0b])],n),n})(),pM=(()=>{let n=class extends pd.zx{constructor(t,s,o,u,b,k){super(o,u,null,b,k),this.editService=t,this.cellContext=s,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(t){t.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(El),e.Y36(Zc),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(G.oQ),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(t,s){1&t&&e.NdJ("click",function(u){return s.onClick(u)}),2&t&&(e.Udp("display",s.visible),e.ekj("k-grid-save-command",s.commandClass))},features:[e.qOj]}),p([(0,e.pfw)("style.display"),r("design:type",String),r("design:paramtypes",[])],n.prototype,"visible",null),p([(0,e.pfw)("class.k-grid-save-command"),r("design:type",Boolean)],n.prototype,"commandClass",void 0),p([(0,e.L6J)("click",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"onClick",null),n=p([K(1,(0,e.tBr)(Zc)),r("design:paramtypes",[El,Object,e.SBq,e.Qsj,G.oQ,e.R0b])],n),n})(),fM=(()=>{let n=class extends pd.zx{constructor(t,s,o,u,b,k){super(o,u,null,b,k),this.editService=t,this.cellContext=s,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(t){t.preventDefault(),this.editService.remove(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(El),e.Y36(Zc),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(G.oQ),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(t,s){1&t&&e.NdJ("click",function(u){return s.onClick(u)}),2&t&&(e.Udp("display",s.visible),e.ekj("k-grid-remove-command",s.commandClass))},features:[e.qOj]}),p([(0,e.pfw)("style.display"),r("design:type",String),r("design:paramtypes",[])],n.prototype,"visible",null),p([(0,e.pfw)("class.k-grid-remove-command"),r("design:type",Boolean)],n.prototype,"commandClass",void 0),p([(0,e.L6J)("click",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"onClick",null),n=p([K(1,(0,e.tBr)(Zc)),r("design:paramtypes",[El,Object,e.SBq,e.Qsj,G.oQ,e.R0b])],n),n})(),gM=(()=>{let n=class extends pd.zx{constructor(t,s,o,u,b){super(s,o,null,u,b),this.editService=t}onClick(t){t.preventDefault(),this.editService.beginAdd()}get commandClass(){return!0}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(El),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(G.oQ),e.Y36(e.R0b))},n.\u0275dir=e.lG2({type:n,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(t,s){1&t&&e.NdJ("click",function(u){return s.onClick(u)}),2&t&&e.ekj("k-grid-add-command",s.commandClass)},features:[e.qOj]}),p([(0,e.L6J)("click",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],n.prototype,"onClick",null),p([(0,e.pfw)("class.k-grid-add-command"),r("design:type",Boolean),r("design:paramtypes",[])],n.prototype,"commandClass",null),n=p([r("design:paramtypes",[El,e.SBq,e.Qsj,G.oQ,e.R0b])],n),n})();const yP=[Re.ez,zt.UX,zt.u5,D0,Db,Fi.Ln,gu,z.uv];let mM=(()=>{let n=class{static exports(){return[af,lf,J9,rh,N3,m6,uM,hM,pM,fM,gM,gb]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[...yP]]}),n})();const bP=[Re.ez,D0];let _M=(()=>{let n=class{static exports(){return[]}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[...bP]]}),n})();Db.exports(),D0.exports(),mM.exports(),cM.exports(),_M.exports(),Hx.exports(),k9.exports(),Rb.exports(),Q9.exports();let IP=(()=>{let n=class{};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Re.ez,Db,D0,mM,cM,_M,Hx,k9,Rb,z.uv,Q9]]}),n})();Wc("KENDO-GRID-LIST"),Wc("TABLE")},9788:(St,oe,S)=>{"use strict";function p(j,T,D,pe){var Tn,lt=arguments.length,Lt=lt<3?T:null===pe?pe=Object.getOwnPropertyDescriptor(T,D):pe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Lt=Reflect.decorate(j,T,D,pe);else for(var ei=j.length-1;ei>=0;ei--)(Tn=j[ei])&&(Lt=(lt<3?Tn(Lt):lt>3?Tn(T,D,Lt):Tn(T,D))||Lt);return lt>3&&Lt&&Object.defineProperty(T,D,Lt),Lt}function K(j,T){return function(D,pe){T(D,pe,j)}}function r(j,T){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(j,T)}S.d(oe,{rw:()=>Ql,Uw:()=>En,wS:()=>as,Ln:()=>Qe,PL:()=>Ai,Em:()=>Kn});var e=S(5e3),z=S(2382),je=S(727),rt=S(4968),it=S(7445),ct=S(6451),qe=(S(8306),S(7579)),Ve=S(5698),He=S(9300),X=S(4351),Le=S(8675),Te=S(2722),Ze=S(5684),he=S(8372),Ne=S(3239),Me=S(9352),ke=S(3911),G=S(3710),ot=S(9912),We=S(5422),ut=S(9808),Mt=S(4743),At=S(1211),Jt=S(6211),Wt=S(1174);const be=(()=>{class j extends At.Z{constructor(D){if(super(),1===arguments.length){const pe=j.formats,lt=this.resolveColor(D);for(let Lt=0;Lt255?255:D}padDigit(D){return 1===D.length?"0"+D:D}brightness(D){const pe=Math.round;return this.r=pe(this.normalizeByte(this.r*D)),this.g=pe(this.normalizeByte(this.g*D)),this.b=pe(this.normalizeByte(this.b*D)),this}percBrightness(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}isDark(){return this.percBrightness()<180}static fromBytes(D,pe,lt,Lt){return new Wt.Jj(D,pe,lt,null!=Lt?Lt:1)}static fromRGB(D,pe,lt,Lt){return new Wt.eX(D,pe,lt,null!=Lt?Lt:1)}static fromHSV(D,pe,lt,Lt){return new Wt.kz(D,pe,lt,null!=Lt?Lt:1)}static fromHSL(D,pe,lt,Lt){return new Wt.wA(D,pe,lt,null!=Lt?Lt:1)}}return j.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(T){return[parseInt(T[1],10),parseInt(T[2],10),parseInt(T[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(T){return[parseInt(T[1],16),parseInt(T[2],16),parseInt(T[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(T){return[parseInt(T[1]+T[1],16),parseInt(T[2]+T[2],16),parseInt(T[3]+T[3],16)]}}],j.namedColors=Jt.Z,j})(),Je=["wrap"],gt=["track"],Nt=["sliderSelection"],$t=["ticks"],ft=["draghandle"],mt=["decreaseButton"],Re=["increaseButton"];function zt(j,T){if(1&j&&(e.TgZ(0,"span",13,14),e._UZ(2,"span",15),e.qZA()),2&j){const D=e.oxw();e.Q6J("title",D.decrementMessage),e.xp6(2),e.ekj("k-i-arrow-w",!D.vertical)("k-i-arrow-s",D.vertical)}}function Kt(j,T){if(1&j&&(e.TgZ(0,"span",16,17),e.NdJ("click",function(pe){return pe.preventDefault()}),e._UZ(2,"span",15),e.qZA()),2&j){const D=e.oxw();e.Q6J("title",D.incrementMessage),e.uIk("aria-label",D.currentValue),e.xp6(2),e.ekj("k-i-arrow-e",!D.vertical)("k-i-arrow-n",D.vertical)}}function hn(j,T){if(1&j&&e._UZ(0,"ul",18,19),2&j){const D=e.oxw();e.Q6J("tickTitle",D.title)("vertical",D.vertical)("step",D.smallStep)("largeStep",D.largeStep)("min",D.min)("max",D.max)("labelTemplate",null==D.labelTemplate?null:D.labelTemplate.templateRef),e.uIk("aria-hidden",!0)}}const xn=function(j,T){return{click:j,keydown:T}},Mn=["draghandleStart"],Hn=["draghandleEnd"];function pn(j,T){if(1&j&&e._UZ(0,"ul",12,13),2&j){const D=e.oxw();e.Q6J("tickTitle",D.title)("vertical",D.vertical)("step",D.smallStep)("largeStep",D.largeStep)("min",D.min)("max",D.max)("labelTemplate",null==D.labelTemplate?null:D.labelTemplate.templateRef),e.uIk("aria-hidden",!0)}}const Yn=["wrapper"],_t=function(j,T,D,pe){return{click:j,keydown:T,focus:D,blur:pe}},Rt=["numericInput"],Ft=["numericWrap"],F=function(j,T){return{mouseup:j,mouseleave:T}},V=function(j){return{mousedown:j}};function Q(j,T){if(1&j&&(e.TgZ(0,"span",6),e.TgZ(1,"span",7),e._UZ(2,"span",8),e.qZA(),e.TgZ(3,"span",9),e._UZ(4,"span",10),e.qZA(),e.qZA()),2&j){const D=e.oxw();e.Q6J("kendoEventsOutsideAngular",e.WLB(11,F,D.releaseArrow,D.releaseArrow)),e.xp6(1),e.ekj("k-state-active",D.arrowDirection===D.ArrowDirection.Up),e.Q6J("kendoEventsOutsideAngular",e.VKq(14,V,D.increasePress))("title",D.incrementTitle),e.uIk("aria-label",D.incrementTitle),e.xp6(2),e.ekj("k-state-active",D.arrowDirection===D.ArrowDirection.Down),e.Q6J("kendoEventsOutsideAngular",e.VKq(16,V,D.decreasePress))("title",D.decrementTitle),e.uIk("aria-label",D.decrementTitle)}}const ie=function(j,T){return{mousewheel:j,DOMMouseScroll:T}},nt=function(j,T,D,pe,lt,Lt,Tn){return{mousedown:j,dragenter:T,keydown:D,input:pe,focus:lt,blur:Lt,paste:Tn}},bt=["input"],an=function(j,T,D,pe,lt){return{focus:j,blur:T,click:D,dragstart:pe,drop:lt}},Qn=["tickElement"],ni=["kendoSliderTicks",""];function An(j,T){if(1&j&&(e.TgZ(0,"span",7),e.GkF(1,8),e.qZA()),2&j){const D=e.oxw().$implicit,pe=e.oxw(),lt=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",pe.labelTemplate||lt)("ngTemplateOutletContext",D)}}function Ii(j,T){1&j&&(e.ynx(0),e._uU(1,"\xa0"),e.BQk())}function Zi(j,T){if(1&j&&(e.TgZ(0,"li",2,3),e.ynx(2,4),e.YNc(3,An,2,2,"span",5),e.YNc(4,Ii,2,0,"ng-container",6),e.BQk(),e.qZA()),2&j){const D=T.$implicit,pe=e.oxw();e.s9C("title",pe.tickTitle(D.value)),e.Q6J("ngClass",D.classes),e.xp6(2),e.Q6J("ngSwitch",D.large),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1)}}function Ti(j,T){if(1&j&&e._uU(0),2&j){const D=T.value,pe=e.oxw();e.hij(" ",pe.tickTitle(D)," ")}}function yn(j,T){}function qt(j,T){if(1&j&&e.YNc(0,yn,0,0,"ng-template",8),2&j){const D=e.oxw();e.Q6J("ngTemplateOutlet",null==D.prefixTemplate?null:D.prefixTemplate.templateRef)}}function jt(j,T){if(1&j&&e._UZ(0,"span",9),2&j){const D=e.oxw();e.Q6J("ngClass",D.errorIconClasses)}}function on(j,T){if(1&j&&e._UZ(0,"span",9),2&j){const D=e.oxw();e.Q6J("ngClass",D.successIconClasses)}}function kn(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(){return e.CHM(D),e.oxw().clearValue()})("mousedown",function(lt){return lt.preventDefault()})("keydown.enter",function(lt){return e.CHM(D),e.oxw().clearValue(lt)})("keydown.space",function(lt){return e.CHM(D),e.oxw().clearValue(lt)}),e._UZ(1,"span",9),e.qZA()}if(2&j){const D=e.oxw();e.Q6J("tabindex",D.tabIndex)("title",D.clearTitle()),e.uIk("aria-label",D.clearTitle()),e.xp6(1),e.Q6J("ngClass",D.clearButtonClasses)}}function xi(j,T){}function Ei(j,T){if(1&j&&e.YNc(0,xi,0,0,"ng-template",8),2&j){const D=e.oxw();e.Q6J("ngTemplateOutlet",null==D.suffixTemplate?null:D.suffixTemplate.templateRef)}}const ps=function(j,T,D){return{focus:j,blur:T,input:D}},fs=[[["kendo-textarea-suffix"]]],gr=["opacityInput"],Nr=["toggleFormatButton"];function Vs(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"input",6,7),e.NdJ("blur",function(){return e.CHM(D),e.oxw().handleHexInputBlur()})("input",function(){e.CHM(D);const lt=e.MAs(1);return e.oxw().handleHexValueChange(lt.value)}),e.qZA()}if(2&j){const D=e.oxw();e.Q6J("disabled",D.disabled)("readonly",D.readonly)("value",D.hex||"")("placeholder",D.textFor("hexInputPlaceholder"))}}function js(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"kendo-numerictextbox",14,15),e.NdJ("valueChange",function(lt){return e.CHM(D),e.oxw(2).rgba.a=lt})("blur",function(){return e.CHM(D),e.oxw(2).handleRgbaInputBlur()})("valueChange",function(){return e.CHM(D),e.oxw(2).handleRgbaValueChange()}),e.qZA(),e.TgZ(4,"label",10),e._uU(5,"A"),e.qZA(),e.qZA()}if(2&j){const D=e.MAs(3),pe=e.oxw(2);e.xp6(1),e.Q6J("disabled",pe.disabled)("readonly",pe.readonly)("min",0)("max",1)("placeholder",pe.textFor("alphaInputPlaceholder"))("value",pe.rgba.a)("autoCorrect",!0)("spinners",!1)("step",.01)("format","n2")("decimals",2),e.xp6(3),e.Q6J("for",D.focusableId)}}function vs(j,T){if(1&j){const D=e.EpF();e.ynx(0),e.TgZ(1,"div",0),e.TgZ(2,"kendo-numerictextbox",8,9),e.NdJ("valueChange",function(lt){return e.CHM(D),e.oxw().rgba.r=lt})("blur",function(){return e.CHM(D),e.oxw().handleRgbaInputBlur()})("valueChange",function(){return e.CHM(D),e.oxw().handleRgbaValueChange()}),e.qZA(),e.TgZ(4,"label",10),e._uU(5,"R"),e.qZA(),e.qZA(),e.TgZ(6,"div",0),e.TgZ(7,"kendo-numerictextbox",8,11),e.NdJ("valueChange",function(lt){return e.CHM(D),e.oxw().rgba.g=lt})("blur",function(){return e.CHM(D),e.oxw().handleRgbaInputBlur()})("valueChange",function(){return e.CHM(D),e.oxw().handleRgbaValueChange()}),e.qZA(),e.TgZ(9,"label",10),e._uU(10,"G"),e.qZA(),e.qZA(),e.TgZ(11,"div",0),e.TgZ(12,"kendo-numerictextbox",8,12),e.NdJ("valueChange",function(lt){return e.CHM(D),e.oxw().rgba.b=lt})("blur",function(){return e.CHM(D),e.oxw().handleRgbaInputBlur()})("valueChange",function(){return e.CHM(D),e.oxw().handleRgbaValueChange()}),e.qZA(),e.TgZ(14,"label",10),e._uU(15,"B"),e.qZA(),e.qZA(),e.YNc(16,js,6,12,"div",13),e.BQk()}if(2&j){const D=e.MAs(3),pe=e.MAs(8),lt=e.MAs(13),Lt=e.oxw();e.xp6(2),e.Q6J("disabled",Lt.disabled)("readonly",Lt.readonly)("min",0)("max",255)("placeholder",Lt.textFor("redInputPlaceholder"))("value",Lt.rgba.r)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),e.xp6(2),e.Q6J("for",D.focusableId),e.xp6(3),e.Q6J("disabled",Lt.disabled)("readonly",Lt.readonly)("min",0)("max",255)("placeholder",Lt.textFor("greenInputPlaceholder"))("value",Lt.rgba.g)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),e.xp6(2),e.Q6J("for",pe.focusableId),e.xp6(3),e.Q6J("disabled",Lt.disabled)("readonly",Lt.readonly)("min",0)("max",255)("placeholder",Lt.textFor("blueInputPlaceholder"))("value",Lt.rgba.b)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),e.xp6(2),e.Q6J("for",lt.focusableId),e.xp6(2),e.Q6J("ngIf",Lt.opacity)}}const mr=["gradientDragHandle"],vi=["inputs"],Hi=["alphaSlider"],Ms=["gradientWrapper"];function ur(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"span",13),e.NdJ("click",function(){return e.CHM(D),e.oxw().reset()})("keydown.enter",function(){return e.CHM(D),e.oxw().reset()})("keydown.space",function(){return e.CHM(D),e.oxw().reset()}),e._UZ(1,"span",14),e.qZA()}if(2&j){const D=e.oxw();e.uIk("aria-label",D.clearButtonTitle)("title",D.clearButtonTitle)}}const pr=function(j){return{"k-align-self-end":j}};function Ps(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"kendo-slider",15,16),e.NdJ("valueChange",function(lt){return e.CHM(D),e.oxw().handleAlphaSliderChange(lt)}),e.qZA()}if(2&j){const D=e.oxw();e.Q6J("ngClass",e.VKq(12,pr,D.clearButton))("dragHandleTitle",D.opacitySliderTitle)("disabled",D.disabled)("readonly",D.readonly)("showButtons",!1)("tickPlacement","none")("vertical",!0)("min",0)("max",100)("smallStep",1)("largeStep",10)("value",D.alphaSliderValue)}}function Sr(j,T){if(1&j&&e._UZ(0,"div",17),2&j){const D=e.oxw();e.Q6J("value",D.value)("ratio",D.contrastTool)}}const Ns=["palette"],Or=["container"],$r=["popupTemplate"],Ri=["colorGradient"];function Pr(j,T){1&j&&e._UZ(0,"span",11)}function tn(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"span",9),e.NdJ("click",function(){return e.CHM(D),e.oxw().handleActiveColorClick()}),e.YNc(1,Pr,1,0,"span",10),e.qZA()}if(2&j){const D=e.oxw();e.Udp("background-color",D.value),e.xp6(1),e.Q6J("ngIf",!D.value)}}function Zn(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){return e.CHM(D),e.oxw().handleActiveColorClick()}),e._UZ(1,"span",13),e.qZA()}if(2&j){const D=e.oxw();e.Q6J("ngClass",D.iconStyles),e.xp6(1),e.Udp("background-color",D.value)}}function wn(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"kendo-colorgradient",16,17),e.NdJ("focusout",function(lt){return e.CHM(D),e.oxw(2).handlePopupBlur(lt)})("valueChange",function(lt){return e.CHM(D),e.oxw(2).handleValueChange(lt,!1)})("keydown",function(lt){return e.CHM(D),e.oxw(2).handlePopupKeyDown(lt)}),e.qZA()}if(2&j){const D=e.oxw(2);e.Q6J("value",D.value)("format",D.format)("opacity",D.gradientSettings.opacity)("clearButton",D.gradientSettings.clearButton)("delay",D.gradientSettings.delay)}}function On(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"kendo-colorpalette",18,19),e.NdJ("blur",function(lt){return e.CHM(D),e.oxw(2).handlePopupBlur(lt)})("cellSelection",function(lt){return e.CHM(D),e.oxw(2).handleValueChange(lt,!0)})("mousedown",function(lt){return lt.preventDefault()})("keydown",function(lt){return e.CHM(D),e.oxw(2).handlePopupKeyDown(lt)}),e.qZA()}if(2&j){const D=e.oxw(2);e.Q6J("palette",D.paletteSettings.palette)("columns",D.paletteSettings.columns)("tileSize",D.paletteSettings.tileSize)("format",D.format)("value",D.value)}}function _i(j,T){if(1&j&&(e.YNc(0,wn,2,5,"kendo-colorgradient",14),e.YNc(1,On,2,5,"kendo-colorpalette",15)),2&j){const D=e.oxw();e.Q6J("ngIf","gradient"===D.view||"combo"===D.view),e.xp6(1),e.Q6J("ngIf","palette"===D.view||"combo"===D.view)}}const vn=function(j,T){return{"k-picker-wrap":!0,"k-state-disabled":j,"k-state-focused":T}},qi=function(j,T,D,pe){return{backgroundColor:j,width:T,height:D,minWidth:pe}};function Qi(j,T){if(1&j){const D=e.EpF();e.TgZ(0,"td",5),e.NdJ("click",function(){const lt=e.CHM(D),Lt=lt.$implicit,Tn=lt.index,ei=e.oxw().index;return e.oxw().handleCellSelection(Lt,{row:ei,col:Tn})}),e.qZA()}if(2&j){const D=T.$implicit,pe=T.index,lt=e.oxw().index,Lt=e.oxw();e.ekj("k-state-selected",(null==Lt.selectedCell?null:Lt.selectedCell.row)===lt&&(null==Lt.selectedCell?null:Lt.selectedCell.col)===pe)("k-state-focus",Lt.focusInComponent&&(null==Lt.focusedCell?null:Lt.focusedCell.row)===lt&&(null==Lt.focusedCell?null:Lt.focusedCell.col)===pe),e.Q6J("id",lt+"-"+pe)("ngStyle",e.l5B(9,qi,D,Lt.tileLayout.width+"px",Lt.tileLayout.height+"px",Lt.tileLayout.width+"px")),e.uIk("aria-selected",(null==Lt.selectedCell?null:Lt.selectedCell.row)===lt&&(null==Lt.selectedCell?null:Lt.selectedCell.col)===pe)("aria-label",D)("value",D)}}function Us(j,T){if(1&j&&(e.TgZ(0,"tr"),e.YNc(1,Qi,1,14,"td",4),e.qZA()),2&j){const D=T.$implicit;e.xp6(1),e.Q6J("ngForOf",D)}}const vr=["kendoContrastValidation",""];function Ss(j,T){if(1&j&&(e.TgZ(0,"span",2),e._uU(1),e._UZ(2,"span",3),e.qZA()),2&j){const D=e.oxw();e.xp6(1),e.hij(" ",D.passMessage," ")}}function ds(j,T){if(1&j&&(e.TgZ(0,"span",4),e._uU(1),e._UZ(2,"span",5),e.qZA()),2&j){const D=e.oxw();e.xp6(1),e.hij(" ",D.failMessage," ")}}const Yr=["kendoContrastTool",""];function Fr(j,T){1&j&&e._UZ(0,"span",7)}function Tr(j,T){if(1&j&&(e.TgZ(0,"span",6),e._UZ(1,"span",7),e.YNc(2,Fr,1,0,"span",8),e.qZA()),2&j){const D=e.oxw();e.xp6(2),e.Q6J("ngIf",D.satisfiesAAACondition)}}function Lr(j,T){1&j&&(e.TgZ(0,"span",9),e._UZ(1,"span",10),e.qZA())}const $i=j=>null!=j,Ws=(j,T)=>j===T||null===j&&void 0===T||void 0===j&&null===T,Qr=j=>j&&(!j.touched||j.control&&"blur"===j.control.updateOn),er=(j,T,D)=>!$i(j)||isNaN(j)||j<=T?T:j>=D?D:j,so=j=>Math.min(j,20),ao=j=>(String(j).split(".")[1]||"").length,vo=(j,T)=>Math.max(ao(j),ao(T)),zo=(j,T)=>{const D=so(T);return parseFloat(j.toFixed(D))},Wr=(j,T)=>{const D=vo(j,T);return zo(j+T,D)},Zr=(j,T)=>Wr(j,-T),Ie=(j,T)=>{const D=ao(j)+ao(T);return zo(j*T,D)},ln=(j,T)=>{if(0===T)return NaN;const D=vo(j,T),pe=Math.pow(10,D);return pe*j/(pe*T)},de=(j,T)=>Math.abs(Zr(j,Ie(T,Math.floor(ln(j,T))))),ht=({max:j,min:T,smallStep:D,fixedTickWidth:pe})=>(j-T)/D*pe,cn=(j,T,D=!0)=>{const lt=D?2*parseFloat(T):0;return Math.floor(j-lt)},Be=(j=0,T=0,D=1)=>{if(D<=0)throw new Error("Invalid argument: smallStep must be a positive number");const pe=Math.abs(Zr(T,j)),lt=Math.floor(ln(pe,D));return Wr(lt,1)},Dt=(j,{max:T,min:D,smallStep:pe,reverse:lt,vertical:Lt})=>{const Tn=Wr(D,Ie(j,pe));return Lt||lt?Math.abs(Zr(Tn,T)):Tn},xt=({handleWidth:j,trackWidth:T,min:D,max:pe,reverse:lt,value:Lt})=>{const Tn=Math.floor(j/2),ei=T/Math.abs(pe-D);let ri=$i(Lt)?ei*(Lt-D):D;return lt&&(ri=T-ri),Math.floor(ri-Tn)},Yt=(j,{max:T,min:D,smallStep:pe,largeStep:lt},Lt=!1)=>{const Tn=Lt&<?Ie(pe,lt):pe,ei=Zr(j,D);let ri;const hi=de(ei,Tn);return ri=Zr(ei,0===hi?Tn:hi),ws(Wr(ri,D),D,T)},en=(j,{max:T,min:D,smallStep:pe,largeStep:lt},Lt=!1)=>{const Tn=Lt&<?Ie(pe,lt):pe,ei=Zr(j,D),ri=de(ei,Tn),hi=Wr(Zr(ei,ri),Tn);return ws(Wr(hi,D),D,T)},Cn=j=>j.id.indexOf("k-start-handle")>-1,ii=(j,T,D)=>D>j?j:DD?[ii(j,T,D[0]),ii(j,T,D[1])]:[T,T],Ci=j=>j,ws=(j,T,D)=>Math.max(Math.min(j,D),T),Es=(j,T,D)=>{const{min:pe,max:lt,vertical:Lt,rtl:Tn}=D,ei=(j=>{const T=j.getBoundingClientRect(),D=document.documentElement;return{left:T.left+(window.pageXOffset||D.scrollLeft)-(D.clientLeft||0),top:T.top+(window.pageYOffset||D.scrollTop)-(D.clientTop||0)}})(T),Gs=(lt-pe)/(Lt?T.clientHeight:T.clientWidth)*(Lt?j.pageY-ei.top:j.pageX-ei.left);let lr=Tn||Lt?lt-Gs:pe+Gs;const Mi=ao(D.smallStep);return lr=zo(lr,Mi+1),((j,T)=>{const{smallStep:D,min:pe,max:lt}=T,Lt=ws(j,pe,lt);if(j!==Lt)return Lt;const Tn=Yt(j,T),ei=en(j,T);return(j-pe)%D==0?j:ei-j<=(ei-Tn)/2?ei:Tn})(lr,D)},ir=j=>j.className.indexOf("k-button-increase")>=0||j.className.indexOf("k-button-decrease")>=0,hr=j=>en(j.value,j),Hr=j=>Yt(j.value,j),qr=j=>en(j.value,j,!0),$s=j=>Yt(j.value,j,!0),Ds=j=>{if(e.X6Q&&j&&j[0]>j[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")};class So{constructor(T,D,pe,lt){this.props=T,this.wrapper=D,this.track=pe,this.renderer=lt,this.props=T,this.wrapper=D,this.track=pe,this.tickSizes=this.getTickSizes()}resizeTrack(){const T=this.props.vertical?"height":"width",D=this.trackWidth();this.track.style[T]=`${D}px`}resizeTicks(T,D){const pe=this.props.vertical?"height":"width";[...D].map((lt,Lt)=>lt.style[pe]=`${this.tickSizes[Lt]}px`),this.props.vertical&&this.adjustPadding(T)}resizeWrapper(){const T=this.props.vertical?"height":"width",D=this.elementSize(this.wrapper),pe=cn(D,this.elementOffset(this.track)),lt=ht(this.props);this.wrapper.parentElement.style[T]=pe>lt?D-(pe-lt)+"px":`${D+(lt-pe)}px`}trackWidth(){return this.props.fixedTickWidth?ht(this.props):cn(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)}getTickSizes(){const{min:T,max:D,smallStep:pe}=this.props,lt=Be(T,D,pe),Lt=this.trackWidth(),Tn=Lt/Zr(D,T),ei=[];let ri=0,hi=0;for(let Gs=0;Gs=Lt&&(ei[ei.length-1]-=1),ei}adjustPadding(T){const D=this.tickSizes.reduce((Lt,Tn)=>Lt+Tn,0),lt=this.trackWidth()-D;if(0!==lt){const Lt=lt+this.elementOffset(this.track);T.style.paddingTop=`${Lt}px`}}elementOffset(T){const{vertical:D}=this.props,pe=getComputedStyle(T);return parseInt(D?pe.bottom:pe.left,10)}elementSize(T){const{vertical:D}=this.props;return D?T.clientHeight:T.clientWidth}}class yr extends So{positionHandle(T){const{max:D,min:pe,reverse:lt,vertical:Lt}=this.props,Tn=Lt?"bottom":"left",ei=this.trackWidth(),ri=ii(D,pe,this.props.value);this.handlePosition=xt({min:pe,max:D,reverse:lt,value:ri,trackWidth:ei,handleWidth:T.offsetWidth}),this.renderer.setStyle(T,Tn,`${this.handlePosition}px`)}positionSelection(T,D){const{reverse:pe,vertical:lt}=this.props,Lt=lt?"height":"width",Tn=Math.floor(T.offsetWidth/2);let ei=this.handlePosition+Tn;pe&&(ei=this.trackWidth()-ei),this.renderer.setStyle(D,Lt,`${ei}px`)}}function Et(j,T,...D){if(j&&j.nativeElement)return j.nativeElement[T].apply(j.nativeElement,D)}const dn=(j,T)=>{for(;j&&!T(j);)j=j.parentNode;return j},$n={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1637576485,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let li=(()=>{let j=class{constructor(D){this.templateRef=D}};return j.\u0275fac=function(D){return new(D||j)(e.Y36(e.Rgc,8))},j.\u0275dir=e.lG2({type:j,selectors:[["","kendoSliderLabelTemplate",""]]}),j=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],j),j})(),Bi=(()=>{class j{constructor(D,pe,lt,Lt,Tn,ei){this.localizationService=D,this.injector=pe,this.renderer=lt,this.ngZone=Lt,this.changeDetector=Tn,this.hostElement=ei,this.title=Ci,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.valueChange=new e.vpe,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new je.w0,this.ifEnabled=(ri,hi)=>{this.isDisabled||ri.call(this,hi)},(0,G.s)($n),this.direction=D.rtl?"rtl":"ltr"}get horizontalClass(){return!this.vertical}get verticalClass(){return this.vertical}get disabledClass(){return this.disabled}setDisabledState(D){this.changeDetector.markForCheck(),this.disabled=D}ngOnInit(){this.subscriptions.add(this.localizationService.changes.subscribe(({rtl:D})=>{this.direction=D?"rtl":"ltr",this.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(z.a5,null)}get isDisabled(){return this.disabled||this.readonly}isEmpty(){return!1}get reverse(){return this.localizationService.rtl&&!this.vertical}get keyBinding(){const D=this.reverse;return{[ke.R8.ArrowLeft]:D?hr:Hr,[ke.R8.ArrowRight]:D?Hr:hr,[ke.R8.ArrowDown]:Hr,[ke.R8.ArrowUp]:hr,[ke.R8.PageUp]:qr,[ke.R8.PageDown]:$s,[ke.R8.Home]:({min:pe})=>pe,[ke.R8.End]:({max:pe})=>pe}}resetStyles(D){D.forEach(pe=>{pe&&(this.vertical?(this.renderer.removeStyle(pe,"width"),this.renderer.removeStyle(pe,"left"),this.renderer.removeStyle(pe,"right")):(this.renderer.removeStyle(pe,"height"),this.renderer.removeStyle(pe,"bottom")),this.renderer.removeStyle(pe,"padding-top"))})}}return j.\u0275fac=function(D){e.$Z()},j.\u0275dir=e.lG2({type:j,contentQueries:function(D,pe,lt){if(1&D&&e.Suo(lt,li,5),2&D){let Lt;e.iGM(Lt=e.CRH())&&(pe.labelTemplate=Lt.first)}},viewQuery:function(D,pe){if(1&D&&(e.Gf(Je,7),e.Gf(gt,7),e.Gf(Nt,7),e.Gf($t,5,e.SBq),e.Gf($t,5)),2&D){let lt;e.iGM(lt=e.CRH())&&(pe.wrapper=lt.first),e.iGM(lt=e.CRH())&&(pe.track=lt.first),e.iGM(lt=e.CRH())&&(pe.sliderSelection=lt.first),e.iGM(lt=e.CRH())&&(pe.ticksContainer=lt.first),e.iGM(lt=e.CRH())&&(pe.ticks=lt.first)}},hostVars:11,hostBindings:function(D,pe){2&D&&(e.uIk("dir",pe.direction),e.ekj("k-slider",pe.sliderClass)("k-widget",pe.widgetClass)("k-slider-horizontal",pe.horizontalClass)("k-slider-vertical",pe.verticalClass)("k-state-disabled",pe.disabledClass))},inputs:{title:"title",tickPlacement:"tickPlacement",vertical:"vertical",min:"min",max:"max",smallStep:"smallStep",largeStep:"largeStep",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",fixedTickWidth:"fixedTickWidth"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"}}),p([(0,e.IIB)(),r("design:type",Function)],j.prototype,"title",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"tickPlacement",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"vertical",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"min",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"max",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"smallStep",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"largeStep",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"fixedTickWidth",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"tabindex",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],j.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],j.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],j.prototype,"valueChange",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],j.prototype,"direction",void 0),p([(0,e.pfw)("class.k-slider-horizontal"),r("design:type",Boolean),r("design:paramtypes",[])],j.prototype,"horizontalClass",null),p([(0,e.pfw)("class.k-slider-vertical"),r("design:type",Boolean),r("design:paramtypes",[])],j.prototype,"verticalClass",null),p([(0,e.pfw)("class.k-slider"),r("design:type",Boolean)],j.prototype,"sliderClass",void 0),p([(0,e.pfw)("class.k-widget"),r("design:type",Boolean)],j.prototype,"widgetClass",void 0),p([(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],j.prototype,"disabledClass",null),p([(0,e.i9L)("wrap",{static:!0}),r("design:type",e.SBq)],j.prototype,"wrapper",void 0),p([(0,e.i9L)("track",{static:!0}),r("design:type",e.SBq)],j.prototype,"track",void 0),p([(0,e.i9L)("sliderSelection",{static:!0}),r("design:type",e.SBq)],j.prototype,"sliderSelection",void 0),p([(0,e.i9L)("ticks",{read:e.SBq,static:!1}),r("design:type",e.SBq)],j.prototype,"ticksContainer",void 0),p([(0,e.i9L)("ticks",{static:!1}),r("design:type",Object)],j.prototype,"ticks",void 0),p([(0,e.aQ5)(li,{static:!1}),r("design:type",li)],j.prototype,"labelTemplate",void 0),j})();var tt;const $e="k-pressed";let De=tt=class extends Bi{constructor(T,D,pe,lt,Lt,Tn){super(T,D,pe,lt,Lt,Tn),this.localization=T,this.injector=D,this.renderer=pe,this.ngZone=lt,this.changeDetector=Lt,this.hostElement=Tn,this.focusableId=`k-${(0,ke.M8)()}`,this.animate=!0,this.showButtons=!0,this.value=this.min,this.focusChangedProgrammatically=!1,this.onWrapClick=ei=>{const ri=ei.target;if(!this.isDisabled&&!ir(ri)&&!ir(ri.parentNode)){const hi=Es(ei,this.track.nativeElement,this.getProps());this.changeValue(hi)}Et(this.draghandle,"focus")},this.onKeyDown=ei=>{const ri=this.getProps(),{max:hi,min:Gs}=ri,lr=this.keyBinding[ei.keyCode];if(this.isDisabled||!lr)return;const Mi=lr(ri);this.changeValue(ii(hi,Gs,Mi)),ei.preventDefault()},this.ngChange=ei=>{},this.ngTouched=()=>{},this.decreaseValue=()=>{this.changeValue(Yt(this.value,this.getProps()))},this.increaseValue=()=>{this.changeValue(en(this.value,this.getProps()))},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,((0,ke.g$)(this.onBlur)||Qr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.focusChangedProgrammatically||this.onBlur.emit()})}}set tabIndex(T){this.tabindex=T}get tabIndex(){return this.tabindex}get currentValue(){return $i(this.value)?this.value.toString():""}focus(){this.disabled||(this.focusChangedProgrammatically=!0,Et(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0,Et(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1}ngOnChanges(T){(0,ke.aG)(["value","fixedTickWidth","tickPlacement"],T,!0)&&this.ngZone.onStable.asObservable().pipe((0,Ve.q)(1)).subscribe(()=>{this.sizeComponent(!1)})}ngAfterViewInit(){!(0,ke.X_)()||(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,()=>this.increaseValue()),this.setValueChangeInterval(this.decreaseButton.nativeElement,()=>this.decreaseValue())),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe(()=>this.sizeComponent(!1)),this.attachElementEventHandlers())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get incrementMessage(){return this.incrementTitle||this.localizationService.get("increment")}get decrementMessage(){return this.decrementTitle||this.localizationService.get("decrement")}get dragHandleMessage(){return this.dragHandleTitle||this.localizationService.get("dragHandle")}handleDragPress(T){T.originalEvent&&T.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")}onHandleDrag(T){this.dragging=!0,this.changeValue(Es(T,this.track.nativeElement,this.getProps()))}onHandleRelease(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")}writeValue(T){this.changeDetector.markForCheck(),this.value=T,this.sizeComponent(this.animate)}registerOnChange(T){this.ngChange=T}registerOnTouched(T){this.ngTouched=T}changeValue(T){Ws(this.value,T)||this.ngZone.run(()=>{this.value=T,this.ngChange(T),this.valueChange.emit(T),this.sizeComponent(this.animate),this.changeDetector.markForCheck()})}sizeComponent(T){if(!(0,ke.X_)())return;const D=this.wrapper.nativeElement,pe=this.track.nativeElement,lt=this.sliderSelection.nativeElement,Lt=this.draghandle.nativeElement,Tn=this.ticks?this.ticksContainer.nativeElement:null;T||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([pe,lt,Lt,Tn,this.hostElement.nativeElement]);const ei=this.getProps(),ri=new yr(ei,D,pe,this.renderer);ri.resizeTrack(),this.ticks&&ri.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(hi=>hi.nativeElement)),ri.positionHandle(Lt),ri.positionSelection(Lt,lt),T||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&ri.resizeWrapper()}set focused(T){this.isFocused!==T&&this.hostElement&&(this.isFocused=T)}set dragging(T){if(this.isDragged!==T&&this.sliderSelection&&this.draghandle){const D=this.sliderSelection.nativeElement,pe=this.draghandle.nativeElement;T?(this.renderer.addClass(D,$e),this.renderer.addClass(pe,$e)):(this.renderer.removeClass(D,$e),this.renderer.removeClass(pe,$e)),this.isDragged=T}}setValueChangeInterval(T,D){this.ngZone.runOutsideAngular(()=>{const pe=(0,rt.R)(T,"mousedown"),lt=(0,rt.R)(T,"mouseup"),Lt=(0,rt.R)(T,"mouseout"),Tn=pe.pipe((0,He.h)(ei=>0===ei.button&&!this.isDisabled),(0,X.b)(()=>(0,it.F)(150).pipe((0,Le.O)(-1),(0,Te.R)((0,ct.T)(lt,Lt))))).subscribe(()=>{this.isFocused||Et(this.draghandle,"focus"),D()});this.subscriptions.add(Tn)})}getProps(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:ii(this.max,this.min,this.value),vertical:this.vertical}}attachElementEventHandlers(){const T=this.hostElement.nativeElement;let D=!1,pe=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(T,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onFocus.emit(),this.focused=!0})})),this.subscriptions.add(this.renderer.listen(T,"focusout",lt=>{!this.isFocused||(D?(lt.relatedTarget!==this.draghandle.nativeElement&&this.handleBlur(),D=!1):pe||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(T,"mouseenter",()=>{pe=!0})),this.subscriptions.add(this.renderer.listen(T,"mouseleave",()=>{pe=!1})),this.subscriptions.add(this.renderer.listen(T,"keydown",lt=>{D=lt.keyCode===ke.R8.Tab}))})}};De.\u0275fac=function(T){return new(T||De)(e.Y36(Me.oQ),e.Y36(e.zs3),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.SBq))},De.\u0275cmp=e.Xpm({type:De,selectors:[["kendo-slider"]],viewQuery:function(T,D){if(1&T&&(e.Gf(ft,7),e.Gf(mt,5),e.Gf(Re,5)),2&T){let pe;e.iGM(pe=e.CRH())&&(D.draghandle=pe.first),e.iGM(pe=e.CRH())&&(D.decreaseButton=pe.first),e.iGM(pe=e.CRH())&&(D.increaseButton=pe.first)}},inputs:{focusableId:"focusableId",animate:"animate",showButtons:"showButtons",value:"value",tabIndex:"tabIndex",dragHandleTitle:"dragHandleTitle",incrementTitle:"incrementTitle",decrementTitle:"decrementTitle"},exportAs:["kendoSlider"],features:[e._Bn([Me.oQ,{provide:Me.mM,useValue:"kendo.slider"},{multi:!0,provide:z.JU,useExisting:(0,e.Gpc)(()=>tt)},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>tt)}]),e.qOj,e.TTD],decls:13,vars:25,consts:function(){let j,T,D;return j=$localize`:kendo.slider.increment|The title of the **Increase** button of the Slider.␟0fa71630d40c425b9c366afd7f6c3cecc5bef59d␟8302125540024939132:increment`,T=$localize`:kendo.slider.decrement|The title of the **Decrease** button of the Slider.␟042c26f68d78afd6834ea46a5f7533850fe8c800␟652458644240352212:decrement`,D=$localize`:kendo.slider.dragHandle|The title of the drag handle of the Slider.␟481eb98e9cd8ef8e8b22051796441901e883763d␟9117416417579607469:Drag`,[["kendoSliderLocalizedMessages","","increment",j,"decrement",T,"dragHandle",D],[1,"k-slider-wrap",3,"kendoEventsOutsideAngular"],["wrap",""],["class","k-button k-button-decrease","role","presentation",3,"title",4,"ngIf"],["class","k-button k-button-increase",3,"title","click",4,"ngIf"],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate",4,"ngIf"],[1,"k-slider-track"],["track",""],[1,"k-slider-selection"],["sliderSelection",""],["role","slider","kendoDraggable","",1,"k-draghandle",3,"title","id","kendoPress","kendoDrag","kendoRelease"],["draghandle",""],[3,"resize"],["role","presentation",1,"k-button","k-button-decrease",3,"title"],["decreaseButton",""],[1,"k-icon"],[1,"k-button","k-button-increase",3,"title","click"],["increaseButton",""],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate"],["ticks",""]]},template:function(T,D){1&T&&(e.ynx(0,0),e.TgZ(1,"div",1,2),e.YNc(3,zt,3,5,"span",3),e.YNc(4,Kt,3,6,"span",4),e.YNc(5,hn,2,8,"ul",5),e.TgZ(6,"div",6,7),e._UZ(8,"div",8,9),e.TgZ(10,"a",10,11),e.NdJ("kendoPress",function(lt){return D.ifEnabled(D.handleDragPress,lt)})("kendoDrag",function(lt){return D.ifEnabled(D.onHandleDrag,lt)})("kendoRelease",function(lt){return D.ifEnabled(D.onHandleRelease,lt)}),e.qZA(),e.qZA(),e.TgZ(12,"kendo-resize-sensor",12),e.NdJ("resize",function(){return D.sizeComponent(!1)}),e.qZA(),e.qZA(),e.BQk()),2&T&&(e.xp6(1),e.ekj("k-slider-buttons",D.showButtons)("k-slider-topleft","before"===D.tickPlacement)("k-slider-bottomright","after"===D.tickPlacement),e.Q6J("kendoEventsOutsideAngular",e.WLB(22,xn,D.onWrapClick,D.onKeyDown)),e.xp6(2),e.Q6J("ngIf",D.showButtons),e.xp6(1),e.Q6J("ngIf",D.showButtons),e.xp6(1),e.Q6J("ngIf","none"!==D.tickPlacement),e.xp6(5),e.Udp("touch-action",D.isDisabled?"":"none"),e.Q6J("title",D.dragHandleMessage)("id",D.focusableId),e.uIk("aria-valuemin",D.min)("aria-valuemax",D.max)("aria-valuenow",D.currentValue)("aria-valuetext",D.currentValue)("aria-disabled",!!D.disabled||void 0)("aria-readonly",!!D.readonly||void 0)("aria-orientation",D.vertical?"vertical":"horizontal")("tabindex",D.disabled?"-1":D.tabIndex))},directives:function(){return[kl,ke.nV,ut.O5,ke.pD,ke.NG,na]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],De.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",String)],De.prototype,"dragHandleTitle",void 0),p([(0,e.IIB)(),r("design:type",String)],De.prototype,"incrementTitle",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],De.prototype,"animate",void 0),p([(0,e.IIB)(),r("design:type",String)],De.prototype,"decrementTitle",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],De.prototype,"showButtons",void 0),p([(0,e.IIB)(),r("design:type",Number)],De.prototype,"value",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],De.prototype,"tabIndex",null),p([(0,e.i9L)("draghandle",{static:!0}),r("design:type",e.SBq)],De.prototype,"draghandle",void 0),p([(0,e.i9L)("decreaseButton",{static:!1}),r("design:type",e.SBq)],De.prototype,"decreaseButton",void 0),p([(0,e.i9L)("increaseButton",{static:!1}),r("design:type",e.SBq)],De.prototype,"increaseButton",void 0),De=tt=p([r("design:paramtypes",[Me.oQ,e.zs3,e.Qsj,e.R0b,e.sBO,e.SBq])],De);class kt extends So{positionHandle(T){if(!T.id)return;const{max:D,min:pe,reverse:lt,vertical:Lt}=this.props,Tn=Lt?"bottom":"left",ei=this.trackWidth(),ri=Cn(T)?ki(D,pe,this.props.value)[0]:ki(D,pe,this.props.value)[1];Cn(T)?(this.startHandlePosition=xt({min:pe,max:D,reverse:lt,value:ri,trackWidth:ei,handleWidth:T.offsetWidth}),this.renderer.setStyle(T,Tn,`${this.startHandlePosition}px`)):(this.endHandlePosition=xt({min:pe,max:D,reverse:lt,value:ri,trackWidth:ei,handleWidth:T.offsetWidth}),this.renderer.setStyle(T,Tn,`${this.endHandlePosition}px`))}positionSelection(T,D){const{reverse:pe,vertical:lt}=this.props,Lt=lt?"height":"width",Tn=lt?"bottom":pe?"right":"left",ei=Math.floor(T.offsetWidth/2),ri=Math.abs(this.endHandlePosition-this.startHandlePosition),hi=lt?T.style.bottom:T.style.left;this.renderer.setStyle(D,Lt,`${ri}px`),this.renderer.setStyle(D,Tn,pe?this.trackWidth()-parseFloat(hi)-ei+"px":parseFloat(hi)+ei+"px")}}var Ln;const Si="k-pressed";let gs=Ln=class extends Bi{constructor(T,D,pe,lt,Lt,Tn){super(T,D,pe,lt,Lt,Tn),this.localization=T,this.injector=D,this.renderer=pe,this.ngZone=lt,this.changeDetector=Lt,this.hostElement=Tn,this.startHandleId=`k-start-handle-${(0,ke.M8)()}`,this.endHandleId=`k-end-handle-${(0,ke.M8)()}`,this.focusableId=this.startHandleId,this.handleZIndex=0,this.activeHandle="startHandle",this.focusChangedProgrammatically=!1,this.onWrapClick=ei=>{if(!this.isDisabled){this.value=this.value||[this.min,this.min];const ri=Es(ei,this.track.nativeElement,this.getProps());let hi;const[Gs,lr]=hi=this.value;ri<=Gs?(hi=[ri,lr],this.activeHandle="startHandle"):Gs=lr&&(hi=[Gs,ri],this.activeHandle="endHandle"),Et("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"focus"),this.changeValue(hi)}},this.onKeyDown=ei=>{this.value=this.value||[this.min,this.min];const ri=this.getProps(),{max:hi,min:Gs}=ri,lr=this.keyBinding[ei.keyCode];if(this.isDisabled||!lr)return;this.renderer.setStyle(ei.target,"zIndex",++this.handleZIndex);const Mi=Cn(ei.target),Er=lr(Object.assign({},ri,{value:Mi?this.value[0]:this.value[1]}));Mi?Er>this.value[1]&&(this.value[1]=Er):Er{},this.ngTouched=()=>{},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,((0,ke.g$)(this.onBlur)||Qr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.focusChangedProgrammatically||this.onBlur.emit()})}}focus(){this.focusChangedProgrammatically=!0,Et(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1}blur(){this.focusChangedProgrammatically=!0,Et("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1}ngOnInit(){this.value||(this.value=[this.min,this.max]),super.ngOnInit()}ngOnChanges(T){(0,ke.aG)(["value","fixedTickWidth","tickPlacement"],T,!0)&&(T.value&&T.value.currentValue&&Ds(T.value.currentValue),this.ngZone.onStable.asObservable().pipe((0,Ve.q)(1)).subscribe(()=>{this.sizeComponent()}))}ngAfterViewInit(){!(0,ke.X_)()||(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(()=>this.sizeComponent()),this.attachElementEventHandlers())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}textFor(T){return this.localization.get(T)}get valueText(){return this.value?`${this.value[0]} - ${this.value[1]}`:""}handleDragPress(T){T.originalEvent&&T.originalEvent.preventDefault();const D=T.originalEvent.target;this.draggedHandle=D,this.renderer.setStyle(D,"zIndex",++this.handleZIndex)}onHandleDrag(T){this.value=this.value||[this.min,this.min];const D=T.originalEvent.target,pe=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:pe.left,y:pe.top},this.dragging={value:!0,target:D};const lt=T.pageXthis.lastHandlePosition.x,Tn=T.pageY>this.lastHandlePosition.y,ei=()=>this.changeValue([Es(T,this.track.nativeElement,this.getProps()),this.value[1]]),ri=()=>this.changeValue([this.value[0],Es(T,this.track.nativeElement,this.getProps())]),hi=()=>this.changeValue([Es(T,this.track.nativeElement,this.getProps()),Es(T,this.track.nativeElement,this.getProps())]),Gs=Cn(this.draggedHandle),lr=this.vertical,Mi=!lr;this.value[0]===this.value[1]?lr&&Tn||(this.reverse?Mi&&Lt:Mi&<)?Gs?ei():hi():Gs?hi():ri():Gs?ei():ri()}onHandleRelease(T){this.dragging={value:!1,target:T.originalEvent.target},this.draggedHandle=void 0}writeValue(T){Ds(T),this.value=T,this.sizeComponent()}registerOnChange(T){this.ngChange=T}registerOnTouched(T){this.ngTouched=T}changeValue(T){(!this.value||!((j,T)=>Ws(j[0],T[0])&&Ws(j[1],T[1]))(this.value,T))&&this.ngZone.run(()=>{this.value=T,this.ngChange(T),this.value&&this.valueChange.emit(T),this.sizeComponent()})}sizeComponent(){if(!(0,ke.X_)())return;const T=this.wrapper.nativeElement,D=this.track.nativeElement,pe=this.sliderSelection.nativeElement,lt=this.draghandleStart.nativeElement,Lt=this.draghandleEnd.nativeElement;this.resetStyles([D,pe,lt,Lt,this.ticks?this.ticksContainer.nativeElement:null,this.hostElement.nativeElement]);const ei=this.getProps(),ri=new kt(ei,T,D,this.renderer);ri.resizeTrack(),this.ticks&&ri.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(hi=>hi.nativeElement)),ri.positionHandle(lt),ri.positionHandle(Lt),ri.positionSelection(lt,pe),this.fixedTickWidth&&ri.resizeWrapper()}get isDisabled(){return this.disabled||this.readonly}isEmpty(){return!1}set focused(T){this.isFocused!==T&&this.hostElement&&(this.isFocused=T)}set dragging(T){if(this.isDragged!==T.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){const D=this.sliderSelection.nativeElement,pe=T.target;T.value?(this.renderer.addClass(D,Si),this.renderer.addClass(pe,Si)):(this.renderer.removeClass(D,Si),this.renderer.removeClass(pe,Si)),this.isDragged=T.value}}getProps(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:ki(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}}attachElementEventHandlers(){const T=this.hostElement.nativeElement;let D=!1,pe=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(T,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onFocus.emit(),this.focused=!0})})),this.subscriptions.add(this.renderer.listen(T,"focusout",lt=>{!this.isFocused||(D?(lt.relatedTarget!==this.draghandleStart.nativeElement&<.relatedTarget!==this.draghandleEnd.nativeElement&&this.handleBlur(),D=!1):pe||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(T,"mouseenter",()=>{pe=!0})),this.subscriptions.add(this.renderer.listen(T,"mouseleave",()=>{pe=!1})),this.subscriptions.add(this.renderer.listen(T,"keydown",lt=>{D=lt.keyCode===ke.R8.Tab}))})}};var Ni;gs.\u0275fac=function(T){return new(T||gs)(e.Y36(Me.oQ),e.Y36(e.zs3),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.SBq))},gs.\u0275cmp=e.Xpm({type:gs,selectors:[["kendo-rangeslider"]],viewQuery:function(T,D){if(1&T&&(e.Gf(Mn,7),e.Gf(Hn,7)),2&T){let pe;e.iGM(pe=e.CRH())&&(D.draghandleStart=pe.first),e.iGM(pe=e.CRH())&&(D.draghandleEnd=pe.first)}},inputs:{value:"value"},exportAs:["kendoRangeSlider"],features:[e._Bn([Me.oQ,{provide:Me.mM,useValue:"kendo.rangeslider"},{multi:!0,provide:z.JU,useExisting:(0,e.Gpc)(()=>Ln)},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>Ln)}]),e.qOj,e.TTD],decls:13,vars:33,consts:function(){let j,T;return j=$localize`:kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider.␟4487c64285c2d8cdb336be783b6cb9304ce86007␟1512034289801794423:Drag`,T=$localize`:kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider.␟d6af522570cc1aff06104cee4b7780d6835e01d1␟6915505327582510906:Drag`,[["kendoSliderLocalizedMessages","","dragHandleStart",j,"dragHandleEnd",T],[1,"k-slider-wrap",3,"kendoEventsOutsideAngular"],["wrap",""],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate",4,"ngIf"],[1,"k-slider-track"],["track",""],[1,"k-slider-selection"],["sliderSelection",""],["role","slider","kendoDraggable","",1,"k-draghandle",3,"id","title","kendoPress","kendoDrag","kendoRelease"],["draghandleStart",""],["draghandleEnd",""],[3,"resize"],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate"],["ticks",""]]},template:function(T,D){1&T&&(e.ynx(0,0),e.TgZ(1,"div",1,2),e.YNc(3,pn,2,8,"ul",3),e.TgZ(4,"div",4,5),e._UZ(6,"div",6,7),e.TgZ(8,"a",8,9),e.NdJ("kendoPress",function(lt){return D.ifEnabled(D.handleDragPress,lt)})("kendoDrag",function(lt){return D.ifEnabled(D.onHandleDrag,lt)})("kendoRelease",function(lt){return D.ifEnabled(D.onHandleRelease,lt)}),e.qZA(),e.TgZ(10,"a",8,10),e.NdJ("kendoPress",function(lt){return D.ifEnabled(D.handleDragPress,lt)})("kendoDrag",function(lt){return D.ifEnabled(D.onHandleDrag,lt)})("kendoRelease",function(lt){return D.ifEnabled(D.onHandleRelease,lt)}),e.qZA(),e.qZA(),e.TgZ(12,"kendo-resize-sensor",11),e.NdJ("resize",function(){return D.sizeComponent()}),e.qZA(),e.qZA(),e.BQk()),2&T&&(e.xp6(1),e.ekj("k-slider-topleft","before"===D.tickPlacement)("k-slider-bottomright","after"===D.tickPlacement),e.Q6J("kendoEventsOutsideAngular",e.WLB(30,xn,D.onWrapClick,D.onKeyDown)),e.xp6(2),e.Q6J("ngIf","none"!==D.tickPlacement),e.xp6(5),e.Udp("touch-action",D.isDisabled?"":"none"),e.Q6J("id",D.startHandleId)("title",D.textFor("dragHandleStart")),e.uIk("tabindex",D.disabled?void 0:D.tabindex)("aria-valuemin",D.min)("aria-valuemax",D.max)("aria-valuenow",D.value?D.value[0]:null)("aria-valuetext",D.valueText)("aria-disabled",!!D.disabled||void 0)("aria-readonly",!!D.readonly||void 0)("aria-orientation",D.vertical?"vertical":"horizontal"),e.xp6(2),e.Udp("touch-action",D.isDisabled?"":"none"),e.Q6J("id",D.endHandleId)("title",D.textFor("dragHandleEnd")),e.uIk("tabindex",D.disabled?void 0:D.tabindex)("aria-valuemin",D.min)("aria-valuemax",D.max)("aria-valuenow",D.value?D.value[1]:null)("aria-valuetext",D.valueText)("aria-disabled",!!D.disabled||void 0)("aria-readonly",!!D.readonly||void 0)("aria-orientation",D.vertical?"vertical":"horizontal"))},directives:function(){return[el,ke.nV,ut.O5,ke.pD,ke.NG,na]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",Array)],gs.prototype,"value",void 0),p([(0,e.i9L)("draghandleStart",{static:!0}),r("design:type",e.SBq)],gs.prototype,"draghandleStart",void 0),p([(0,e.i9L)("draghandleEnd",{static:!0}),r("design:type",e.SBq)],gs.prototype,"draghandleEnd",void 0),gs=Ln=p([r("design:paramtypes",[Me.oQ,e.zs3,e.Qsj,e.R0b,e.sBO,e.SBq])],gs);const wr="k-state-focused";let Qs=Ni=class{constructor(T,D,pe,lt,Lt,Tn){this.renderer=T,this.hostElement=D,this.localizationService=pe,this.injector=lt,this.changeDetector=Lt,this.ngZone=Tn,this.focusableId=`k-${(0,ke.M8)()}`,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.valueChange=new e.vpe,this.hostClasses=!0,this.initialized=!1,this._checked=!1,this.ngChange=ei=>{},this.ngTouched=()=>{},this.handleFocus=()=>{this.focused=!0,(0,ke.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,((0,ke.g$)(this.onBlur)||Qr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},(0,G.s)($n),this.direction=pe.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}set checked(T){this.setHostClasses(T),this._checked=T}get checked(){return this._checked}set tabIndex(T){this.tabindex=T}get tabIndex(){return this.tabindex}get ieClass(){return ot.Xh&&ot.Xh.msie}get ariaDisabled(){return!!this.disabled||void 0}get ariaReadonly(){return this.readonly}get disabledClass(){return this.disabled}get onLabelMessage(){return this.onLabel||this.localizationService.get("on")}get offLabelMessage(){return this.offLabel||this.localizationService.get("off")}get isEnabled(){return!this.disabled&&!this.readonly}ngOnInit(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangeSubscription=this.localizationService.changes.pipe((0,Ze.T)(1)).subscribe(({rtl:T})=>{this.direction=T?"rtl":"ltr"}),this.control=this.injector.get(z.a5,null),this.ngZone.onStable.pipe((0,Ve.q)(1)).subscribe(()=>this.initialized=!0)}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}focus(){!this.wrapper||this.wrapper.nativeElement.focus()}blur(){!this.wrapper||this.wrapper.nativeElement.blur()}setDisabledState(T){this.disabled=T,this.changeDetector.markForCheck()}writeValue(T){this.checked=null!==T&&T,this.changeDetector.markForCheck()}registerOnChange(T){this.ngChange=T}registerOnTouched(T){this.ngTouched=T}keyDownHandler(T){const D=T.keyCode;this.isEnabled&&(D===ke.R8.Space||D===ke.R8.Enter)&&(this.changeValue(!this.checked),T.preventDefault())}clickHandler(){this.isEnabled&&this.changeValue(!this.checked)}isEmpty(){return!1}changeValue(T){this.checked!==T&&this.ngZone.run(()=>{this.checked=T,this.ngChange(T),this.valueChange.emit(T),this.changeDetector.markForCheck()})}set focused(T){if(this.isFocused!==T&&this.hostElement){const D=this.hostElement.nativeElement;T?this.renderer.addClass(D,wr):this.renderer.removeClass(D,wr),this.isFocused=T}}setHostClasses(T){T?(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-off"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-on")):(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-on"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-off"))}};var Vr;Qs.\u0275fac=function(T){return new(T||Qs)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(Me.oQ),e.Y36(e.zs3),e.Y36(e.sBO),e.Y36(e.R0b))},Qs.\u0275cmp=e.Xpm({type:Qs,selectors:[["kendo-switch"]],viewQuery:function(T,D){if(1&T&&e.Gf(Yn,7),2&T){let pe;e.iGM(pe=e.CRH())&&(D.wrapper=pe.first)}},hostVars:9,hostBindings:function(T,D){2&T&&(e.uIk("dir",D.direction)("aria-disabled",D.ariaDisabled)("aria-readonly",D.ariaReadonly),e.ekj("k-switch",D.hostClasses)("k-ie",D.ieClass)("k-state-disabled",D.disabledClass))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",checked:"checked",tabIndex:"tabIndex",onLabel:"onLabel",offLabel:"offLabel"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoSwitch"],features:[e._Bn([Me.oQ,{provide:Me.mM,useValue:"kendo.switch"},{multi:!0,provide:z.JU,useExisting:(0,e.Gpc)(()=>Ni)},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>Ni)}])],decls:8,vars:17,consts:function(){let j,T;return j=$localize`:kendo.switch.on|The **On** label of the Switch.␟155f0a38198ffbf0429c5dbf9765e74f246a8617␟818154782831456441:ON`,T=$localize`:kendo.switch.off|The **Off** label of the Switch.␟79df1a6d2b35c32b2948e3cee56dd3ffe28127bc␟759820891948194060:OFF`,[["kendoSwitchLocalizedMessages","","on",j,"off",T],["role","switch",1,"k-switch-container",3,"id","kendoEventsOutsideAngular"],["wrapper",""],[1,"k-switch-label-on"],[1,"k-switch-label-off"],[1,"k-switch-handle"]]},template:function(T,D){1&T&&(e.ynx(0,0),e.TgZ(1,"span",1,2),e.TgZ(3,"span",3),e._uU(4),e.qZA(),e.TgZ(5,"span",4),e._uU(6),e.qZA(),e._UZ(7,"span",5),e.qZA(),e.BQk()),2&T&&(e.xp6(1),e.Udp("transition-duration",D.initialized?"200ms":"0ms"),e.Q6J("id",D.focusableId)("kendoEventsOutsideAngular",e.l5B(12,_t,D.clickHandler,D.keyDownHandler,D.handleFocus,D.handleBlur)),e.uIk("aria-checked",D.checked)("tabindex",D.disabled?void 0:D.tabIndex),e.xp6(2),e.uIk("aria-hidden",!0),e.xp6(1),e.Oqu(D.onLabelMessage),e.xp6(1),e.uIk("aria-hidden",!0),e.xp6(1),e.Oqu(D.offLabelMessage),e.xp6(1),e.Udp("transition-duration",D.initialized?"200ms":"0ms"))},directives:function(){return[la,ke.nV]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],Qs.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",String)],Qs.prototype,"onLabel",void 0),p([(0,e.IIB)(),r("design:type",String)],Qs.prototype,"offLabel",void 0),p([(0,e.IIB)(),r("design:type",Boolean),r("design:paramtypes",[Boolean])],Qs.prototype,"checked",null),p([(0,e.IIB)(),r("design:type",Boolean)],Qs.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Qs.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Number)],Qs.prototype,"tabindex",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],Qs.prototype,"tabIndex",null),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],Qs.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],Qs.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Qs.prototype,"valueChange",void 0),p([(0,e.i9L)("wrapper",{static:!0}),r("design:type",Object)],Qs.prototype,"wrapper",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],Qs.prototype,"direction",void 0),p([(0,e.pfw)("class.k-ie"),r("design:type",Boolean),r("design:paramtypes",[])],Qs.prototype,"ieClass",null),p([(0,e.pfw)("attr.aria-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],Qs.prototype,"ariaDisabled",null),p([(0,e.pfw)("attr.aria-readonly"),r("design:type",Boolean),r("design:paramtypes",[])],Qs.prototype,"ariaReadonly",null),p([(0,e.pfw)("class.k-switch"),r("design:type",Boolean)],Qs.prototype,"hostClasses",void 0),p([(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],Qs.prototype,"disabledClass",null),Qs=Ni=p([r("design:paramtypes",[e.Qsj,e.SBq,Me.oQ,e.zs3,e.sBO,e.R0b])],Qs);let us=Vr=class{constructor(T,D,pe,lt,Lt,Tn){this.renderer=T,this.element=D,this.zone=pe,this.changeDetector=lt,this.injector=Lt,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new e.vpe,this.autoSize=!1,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onValueChange=new e.vpe,this.autoFillStart=new e.vpe,this.autoFillEnd=new e.vpe,this.listeners=[],this.ngChange=ei=>{},this.ngTouched=()=>{},this.direction=Tn?"rtl":"ltr"}get id(){return this.element.nativeElement.id}set id(T){this.renderer.setAttribute(this.element.nativeElement,"id",T)}writeValue(T){this.elementValue=T,this.resize()}registerOnChange(T){this.ngChange=T}registerOnTouched(T){this.ngTouched=T}setDisabledState(T){this.setElementProperty("disabled",T)}ngOnInit(){const T=this.element.nativeElement;this.zone.runOutsideAngular(()=>{this.listeners=[this.renderer.listen(T,"focus",this.handleFocus.bind(this)),this.renderer.listen(T,"blur",this.handleBlur.bind(this)),this.renderer.listen(T,"animationstart",D=>{"autoFillStart"===D.animationName?this.autoFillStart.emit():"autoFillEnd"===D.animationName&&this.autoFillEnd.emit()})],(0,ke.X_)()&&this.autoSize&&(this.resizeSubscription=(0,rt.R)(window,"resize").pipe((0,he.b)(50)).subscribe(()=>this.resize())),this.inputSubscription=(0,rt.R)(T,"input").subscribe(this.handleInput.bind(this))}),this.control=this.injector.get(z.a5,null)}ngOnChanges(T){const D=this.element.nativeElement;T.value&&(this.elementValue=this.value),T.autoSize&&(this.autoSize?(this.initialHeight=D.offsetHeight,this.renderer.setStyle(D,"resize","none")):(this.renderer.setStyle(D,"overflow-y","auto"),this.renderer.setStyle(D,"resize","both"),D.style.height=`${this.initialHeight}px`)),this.resize()}ngOnDestroy(){this.listeners.forEach(T=>T()),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()}get elementValue(){return this.element?this.element.nativeElement.value:""}set elementValue(T){this.setElementProperty("value",null==T?"":T)}setElementProperty(T,D){this.element&&this.renderer.setProperty(this.element.nativeElement,T,D)}resize(){if(!this.autoSize)return;const T=this.element.nativeElement;this.renderer.setStyle(T,"overflow-y","hidden"),T.style.height=`${this.initialHeight}px`;const D=T.scrollHeight;D>this.initialHeight&&(T.style.height=`${D}px`)}handleInput(){const T=this.elementValue;this.value=T,(this.control||(0,ke.g$)(this.onValueChange)||(0,ke.g$)(this.valueChange))&&this.zone.run(()=>{this.ngChange(T),this.onValueChange.emit(T),this.valueChange.emit(T),this.changeDetector.markForCheck()}),this.resize()}handleFocus(){(0,ke.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()})}handleBlur(){((0,ke.g$)(this.onBlur)||Qr(this.control))&&this.zone.run(()=>{this.ngTouched(),this.onBlur.emit(),this.changeDetector.markForCheck()})}};var st;us.\u0275fac=function(T){return new(T||us)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.zs3),e.Y36(Me.lw,8))},us.\u0275dir=e.lG2({type:us,selectors:[["textarea","kendoTextArea",""]],hostVars:5,hostBindings:function(T,D){2&T&&(e.uIk("dir",D.direction),e.ekj("k-textarea",D.elementClass)("k-autofill",D.autofillClass))},inputs:{autoSize:"autoSize",value:"value"},outputs:{valueChange:"valueChange"},features:[e._Bn([{provide:z.JU,useExisting:(0,e.Gpc)(()=>Vr),multi:!0},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>Vr)}]),e.TTD]}),p([(0,e.pfw)("class.k-textarea"),r("design:type",Boolean)],us.prototype,"elementClass",void 0),p([(0,e.pfw)("class.k-autofill"),r("design:type",Boolean)],us.prototype,"autofillClass",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],us.prototype,"direction",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],us.prototype,"valueChange",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],us.prototype,"autoSize",void 0),p([(0,e.IIB)(),r("design:type",String)],us.prototype,"value",void 0),us=Vr=p([K(5,(0,e.FiY)()),K(5,(0,e.tBr)(Me.lw)),r("design:paramtypes",[e.Qsj,e.SBq,e.R0b,e.sBO,e.zs3,Boolean])],us);let $=st=class{constructor(T,D,pe){this.renderer=T,this.inputElement=D,this.ngZone=pe,this.hostClass=!0,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onValueChange=new e.vpe,this.autoFillStart=new e.vpe,this.autoFillEnd=new e.vpe,this.listeners=[]}set value(T){!this.inputElement||(this.inputElement.nativeElement.value=null==T?"":T,this.onValueChange.emit())}get value(){return this.inputElement.nativeElement.value}get id(){return this.inputElement.nativeElement.id}set id(T){this.renderer.setAttribute(this.inputElement.nativeElement,"id",T)}ngAfterViewInit(){const T=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(T,"focus",()=>this.onFocus.emit()),this.renderer.listen(T,"blur",()=>this.onBlur.emit())],this.ngZone.runOutsideAngular(()=>{this.renderer.listen(T,"animationstart",D=>{"autoFillStart"===D.animationName?this.autoFillStart.emit():"autoFillEnd"===D.animationName&&this.autoFillEnd.emit()})})}ngOnDestroy(){this.listeners.forEach(T=>T())}};$.\u0275fac=function(T){return new(T||$)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b))},$.\u0275dir=e.lG2({type:$,selectors:[["input","kendoTextBox",""]],hostVars:2,hostBindings:function(T,D){2&T&&e.ekj("k-textbox",D.hostClass)},inputs:{value:"value"},features:[e._Bn([{provide:ke.GX,useExisting:(0,e.Gpc)(()=>st)}])]}),p([(0,e.pfw)("class.k-textbox"),r("design:type",Boolean)],$.prototype,"hostClass",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],$.prototype,"value",null),$=st=p([r("design:paramtypes",[e.Qsj,e.SBq,e.R0b])],$);const ti=/[eE][\-+]?([0-9]+)/,Fi=j=>j>=0?Math.floor(j):Math.ceil(j),Ge=j=>{},dt=j=>!isNaN(j)&&null!==j;function It(j,T){const D=T-String(j).length;let pe=j;if(D>0){const lt=new Array(D+1).join("0");pe=parseFloat(j+lt)}return pe}var wt,Ue=(()=>{return(j=Ue||(Ue={}))[j.Down=-1]="Down",j[j.None=0]="None",j[j.Up=1]="Up",Ue;var j})();const Bt=["min","max","step","decimals"],Ut={decimals:null,max:null,min:null,step:1},mn="k-state-focused",In="k-formatted-value";let En=wt=class{constructor(T,D,pe,lt,Lt,Tn,ei){this.intl=T,this.renderer=D,this.localizationService=pe,this.injector=lt,this.ngZone=Lt,this.changeDetector=Tn,this.hostElement=ei,this.focusableId=`k-${(0,ke.M8)()}`,this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.ArrowDirection=Ue,this.arrowDirection=Ue.None,this.inputValue="",this.minValidateFn=Ge,this.maxValidateFn=Ge,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=Ge,this.ngTouched=Ge,this.ngValidatorChange=Ge,this.increasePress=ri=>{this.arrowPress(Ue.Up,ri)},this.decreasePress=ri=>{this.arrowPress(Ue.Down,ri)},this.releaseArrow=()=>{clearTimeout(this.spinTimeout),this.arrowDirection!==Ue.None&&(this.arrowDirection=Ue.None,this.changeDetector.detectChanges())},this.handlePaste=()=>{this.isPasted=!0},this.handleInput=()=>{const ri=this.numericInput.nativeElement;let{selectionStart:hi,selectionEnd:Gs,value:lr}=ri;if(this.pressedKey===ke.R8.NumpadDecimal&&(lr=this.replaceNumpadDotValue()),this.isPasted&&(lr=this.formatInputValue(this.intl.parseNumber(lr))),!this.isValid(lr))return ri.value=this.inputValue,void this.setSelection(hi-1,Gs-1);const Mi=this.intl.parseNumber(lr);let Er=this.restrictDecimals(Mi);if(this.autoCorrect){const da=this.limitInputValue(Er);Er=da.value,hi=da.selectionStart,Gs=da.selectionEnd}Mi!==Er||this.hasTrailingZeros(lr)||!this.focused?(this.setInputValue(Er),this.setSelection(hi,Gs)):this.inputValue=lr,this.isPasted&&(ri.value=this.inputValue),this.updateValue(Er),this.previousSelection=null,this.isPasted=!1},this.handleDragEnter=()=>{!this.focused&&!this.isDisabled&&this.setInputValue(this.value,!0)},this.handleMouseDown=()=>{this.mouseDown=!0},this.handleFocus=()=>{if(!this.focused&&(this.focused=!0,!this.isDisabled)){const ri=this.selectOnFocus||!this.mouseDown;this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{ri?this.selectAll():this.selectCaret()},0)})}this.mouseDown=!1,(0,ke.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.inputValue!==this.elementValue&&this.handleInput(),this.setInputValue(),((0,ke.g$)(this.onBlur)||Qr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},this.handleKeyDown=ri=>{if(this.isDisabled)return;let hi;ri.keyCode===ke.R8.ArrowDown?hi=-1:ri.keyCode===ke.R8.ArrowUp&&(hi=1),hi&&this.step&&(ri.preventDefault(),this.addStep(hi));const Gs=this.numericInput.nativeElement;this.previousSelection={end:Gs.selectionEnd,start:Gs.selectionStart},this.pressedKey=ri.keyCode},this.handleWheel=ri=>{if(this.focused&&!this.isDisabled&&this.changeValueOnScroll){ri.preventDefault();const hi=(j=>{let T=0;return j.wheelDelta?(T=j.wheelDelta/120,T=T>0?Math.ceil(T):Math.floor(T)):j.detail&&(T=Math.round(-j.detail/3)),T})(ri);this.addStep(hi)}},(0,G.s)($n),this.direction=pe.rtl?"rtl":"ltr"}get format(){const T=this._format;return null!=T?T:"n2"}set format(T){this._format=T}set tabIndex(T){this.tabindex=T}get tabIndex(){return this.tabindex}get widgetClasses(){return!0}ngOnInit(){this.subscriptions=this.localizationService.changes.subscribe(({rtl:T})=>{this.direction=T?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(z.a5,null)}ngOnChanges(T){var j;(0,ke.aG)(Bt,T,!1)&&this.parseOptions(Bt.filter(D=>T[D])),this.verifySettings(),(0,ke.aG)(["min","max","rangeValidation"],T,!1)&&(this.minValidateFn=this.rangeValidation?(j=this.min,T=>!$i(j)||!$i(T.value)||T.value>=j?null:{minError:{minValue:j,value:T.value}}):Ge,this.maxValidateFn=this.rangeValidation?(j=>T=>!$i(j)||!$i(T.value)||T.value<=j?null:{maxError:{maxValue:j,value:T.value}})(this.max):Ge,this.ngValidatorChange()),(0,ke.aG)(["autoCorrect","decimals","min"],T)&&delete this.numericRegex,(0,ke.aG)(["value","format"],T,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)}validate(T){return this.minValidateFn(T)||this.maxValidateFn(T)}registerOnValidatorChange(T){this.ngValidatorChange=T}writeValue(T){this.verifyValue(T);let D=this.restrictModelValue(T);this.value=D,this.setInputValue()}registerOnChange(T){this.ngChange=T}registerOnTouched(T){this.ngTouched=T}setDisabledState(T){this.changeDetector.markForCheck(),this.disabled=T}focus(){Et(this.numericInput,"focus")}blur(){Et(this.numericInput,"blur")}notifyValueChange(){this.setInputValue()}get incrementTitle(){return this.localizationService.get("increment")}get decrementTitle(){return this.localizationService.get("decrement")}get decimalSeparator(){return this.intl.numberSymbols().decimal}get elementValue(){return this.numericInput.nativeElement.value}set elementValue(T){this.renderer.setProperty(this.numericInput.nativeElement,"value",T)}get focused(){return this.isFocused}get hasDecimals(){return null!==this.decimals&&this.decimals>=0}set focused(T){if(this.isFocused!==T&&this.numericWrap){const D=this.numericWrap.nativeElement,pe=this.numericInput.nativeElement;T?(this.renderer.addClass(D,mn),this.isDisabled||this.renderer.removeClass(pe,In)):(this.renderer.removeClass(D,mn),this.renderer.addClass(pe,In)),this.isFocused=T}}get isDisabled(){return this.disabled||this.readonly}arrowPress(T,D){var j;D.preventDefault(),!(this.isDisabled||(j=D,j.button&&2===j.button||j.which&&3===j.which))&&(ot.$w||(this.focused=!0,this.focus()),this.arrowDirection!==T&&(this.arrowDirection=T,this.changeDetector.detectChanges()),this.step?this.spin(T,500):this.setInputValue())}updateValue(T){Ws(this.value,T)||this.ngZone.run(()=>{this.value=T,this.ngChange(T),this.valueChange.emit(T),this.changeDetector.markForCheck()})}replaceNumpadDotValue(){let T=this.inputValue||"";if(this.previousSelection){const D=this.numericInput.nativeElement,{selectionStart:pe,selectionEnd:lt}=D,{start:Lt,end:Tn}=this.previousSelection;D.value=T=T.substring(0,Lt)+this.decimalSeparator+T.substring(Tn),this.setSelection(pe,lt)}return T}isValid(T){return this.numericRegex||(this.numericRegex=(j=>{const{autoCorrect:T,decimals:D,min:pe}=j;let Tn,lt=j.separator;return"."===lt&&(lt="\\"+lt),Tn=0===D?"\\d*":`(?:(?:\\d+(${lt}\\d*)?)|(?:${lt}\\d*))?`,new RegExp(`^${T&&null!==pe&&pe>=0?"":"-?"}${Tn}$`)})({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(T)}spin(T,D){clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(()=>{this.spin(T,50)},D),this.addStep(T)}addStep(T){let D=Wr(this.value||0,this.step*T);D=this.limitValue(D),D=this.restrictDecimals(D),this.setInputValue(D),this.updateValue(D)}setSelection(T,D){this.focused&&Et(this.numericInput,"setSelectionRange",T,D)}limitValue(T){let D=T;return this.isInRange(T)||(dt(this.max)&&T>this.max&&(D=this.max),dt(this.min)&&Thi?T>0?Er=!0:Mi=hi:lr&&T0?Mi=ri:Er=!0),Mi){const nl=this.tryPadValue(T,Mi);nl&&Fi(T)!==Fi(Mi)&&(da=nl,Tn=!0)}else Er&&this.inputValue&&D!==lt.length&&(da=parseFloat(lt.substr(0,D)+lt.substr(D+ei)));Lt=this.limitValue(da),Tn=(Tn||Lt!==da)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+ei>0}return{selectionEnd:Tn?String(Lt).length:pe,selectionStart:D,value:Lt}}tryPadValue(T,D){const pe=String(Math.floor(D)).length,lt=It(T,pe),Lt=It(T,pe+1);let Tn;return this.isInRange(lt)?Tn=lt:this.isInRange(Lt)&&(Tn=Lt),Tn}isInRange(T){return!dt(T)||(!dt(this.min)||this.min<=T)&&(!dt(this.max)||T<=this.max)}restrictModelValue(T){let D=this.restrictDecimals(T,!0);return this.autoCorrect&&this.limitValue(D)!==D&&(D=null),D}restrictDecimals(T,D){let pe=T;if(T&&this.hasDecimals){const lt=this.decimals,Lt=String(T);if(D||ti.test(Lt))pe=zo(T,lt);else{const Tn=Lt.split(".");let ei=Tn[1];ei&&ei.length>lt&&(ei=ei.substr(0,lt),pe=parseFloat(`${Tn[0]}.${ei}`))}}return pe}formatInputValue(T){let D=String(T);const pe=ti.exec(D);return pe&&(D=T.toFixed(so(parseInt(pe[1],10)))),D.replace(".",this.decimalSeparator)}formatValue(T,D){let pe;return pe=null==T||""===T?"":D&&!this.readonly?this.formatInputValue(T):this.intl.formatNumber(T,this.format),pe}setInputValue(T=this.value,D=this.focused){const pe=this.formatValue(T,D);this.elementValue=pe,this.inputValue=pe}verifySettings(){if((0,e.X6Q)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")}verifyValue(T){if((0,e.X6Q)()&&T&&"number"!=typeof T)throw new Error(`The NumericTextBox component requires value of type Number and ${JSON.stringify(T)} was set.`)}parseOptions(T){for(let D=0;Dthis.decimals&&D.lastIndexOf("0")===D.length-1}}selectAll(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}selectCaret(){const D=this.elementValue,pe=D.substring(0,this.numericInput.nativeElement.selectionStart);if(this.setInputValue(),pe.length){const lt=((j,T)=>{const D=`${this.decimalSeparator}0123456789-`;return j.split("").reduce((pe,lt)=>D.includes(lt)?++pe:pe,0)})(pe),Lt=this.adjustSignificantChars(D,lt);this.setSelection(Lt,Lt)}else this.setSelection(0,0)}numberOfLeadingZeroes(T){const D=T.indexOf(this.decimalSeparator),pe=T.match(/^[^1-9]*?(0+)/);if(pe){const Lt=pe[1].length;return pe[0].length===D?Lt-1:Lt}return 0}adjustSignificantChars(T,D){const pe=this.numberOfLeadingZeroes(T);return pe>0?Math.max(0,D-pe):D}};En.\u0275fac=function(T){return new(T||En)(e.Y36(We.aJ),e.Y36(e.Qsj),e.Y36(Me.oQ),e.Y36(e.zs3),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.SBq))},En.\u0275cmp=e.Xpm({type:En,selectors:[["kendo-numerictextbox"]],viewQuery:function(T,D){if(1&T&&(e.Gf(Rt,7),e.Gf(Ft,7)),2&T){let pe;e.iGM(pe=e.CRH())&&(D.numericInput=pe.first),e.iGM(pe=e.CRH())&&(D.numericWrap=pe.first)}},hostVars:5,hostBindings:function(T,D){2&T&&(e.uIk("dir",D.direction),e.ekj("k-widget",D.widgetClasses)("k-numerictextbox",D.widgetClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",decimals:"decimals",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",changeValueOnScroll:"changeValueOnScroll",selectOnFocus:"selectOnFocus",value:"value",format:"format",tabIndex:"tabIndex",max:"max",min:"min",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[e._Bn([Me.oQ,{provide:Me.mM,useValue:"kendo.numerictextbox"},{provide:z.JU,useExisting:(0,e.Gpc)(()=>wt),multi:!0},{provide:z.Cf,useExisting:(0,e.Gpc)(()=>wt),multi:!0},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>wt)}]),e.TTD],decls:6,vars:26,consts:function(){let j,T;return j=$localize`:kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox␟0fc68540ffa04fdc246cf6cf8a1fed085f8b19a5␟4467784268438010275:Increase value`,T=$localize`:kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox␟df4751834075bf970c77d0da2c960b4e19a6b0dd␟3960022057994897997:Decrease value`,[["kendoNumericTextBoxLocalizedMessages","","increment",j,"decrement",T],[1,"k-numeric-wrap",3,"kendoEventsOutsideAngular"],["numericWrap",""],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input","k-formatted-value",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-select",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-select",3,"kendoEventsOutsideAngular"],["role","button",1,"k-link","k-link-increase",3,"kendoEventsOutsideAngular","title"],[1,"k-icon","k-i-arrow-n"],["role","button",1,"k-link","k-link-decrease",3,"kendoEventsOutsideAngular","title"],[1,"k-icon","k-i-arrow-s"]]},template:function(T,D){1&T&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e._UZ(3,"input",3,4),e.YNc(5,Q,5,18,"span",5),e.qZA()),2&T&&(e.xp6(1),e.ekj("k-state-disabled",D.disabled),e.Q6J("kendoEventsOutsideAngular",e.WLB(15,ie,D.handleWheel,D.handleWheel)),e.xp6(2),e.Q6J("id",D.focusableId)("tabindex",D.tabIndex)("disabled",D.disabled)("readonly",D.readonly)("kendoEventsOutsideAngular",e.Hh0(18,nt,D.handleMouseDown,D.handleDragEnter,D.handleKeyDown,D.handleInput,D.handleFocus,D.handleBlur,D.handlePaste)),e.uIk("aria-valuemin",D.min)("aria-valuemax",D.max)("aria-valuenow",D.value)("title",D.title)("placeholder",D.placeholder)("maxLength",D.maxlength),e.xp6(2),e.Q6J("ngIf",D.spinners))},directives:function(){return[se,ke.nV,ut.O5]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],En.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],En.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],En.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",String)],En.prototype,"title",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],En.prototype,"autoCorrect",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],En.prototype,"format",null),p([(0,e.IIB)(),r("design:type",Number)],En.prototype,"max",void 0),p([(0,e.IIB)(),r("design:type",Number)],En.prototype,"min",void 0),p([(0,e.IIB)(),r("design:type",Number)],En.prototype,"decimals",void 0),p([(0,e.IIB)(),r("design:type",String)],En.prototype,"placeholder",void 0),p([(0,e.IIB)(),r("design:type",Number)],En.prototype,"step",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],En.prototype,"spinners",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],En.prototype,"rangeValidation",void 0),p([(0,e.IIB)(),r("design:type",Number)],En.prototype,"tabindex",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],En.prototype,"tabIndex",null),p([(0,e.IIB)(),r("design:type",Boolean)],En.prototype,"changeValueOnScroll",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],En.prototype,"selectOnFocus",void 0),p([(0,e.IIB)(),r("design:type",Number)],En.prototype,"value",void 0),p([(0,e.IIB)(),r("design:type",Number)],En.prototype,"maxlength",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],En.prototype,"valueChange",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],En.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],En.prototype,"onBlur",void 0),p([(0,e.i9L)("numericInput",{static:!0}),r("design:type",e.SBq)],En.prototype,"numericInput",void 0),p([(0,e.i9L)("numericWrap",{static:!0}),r("design:type",e.SBq)],En.prototype,"numericWrap",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],En.prototype,"direction",void 0),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-numerictextbox"),r("design:type",Boolean),r("design:paramtypes",[])],En.prototype,"widgetClasses",null),En=wt=p([r("design:paramtypes",[We.aJ,e.Qsj,Me.oQ,e.zs3,e.R0b,e.sBO,e.SBq])],En);let Jn=(()=>{class j extends Me.Z1{}return j.\u0275fac=function(){let T;return function(pe){return(T||(T=e.n5z(j)))(pe||j)}}(),j.\u0275dir=e.lG2({type:j,inputs:{decrement:"decrement",increment:"increment"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"decrement",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"increment",void 0),j})();var mi;let as=mi=class extends Jn{constructor(T){super(),this.service=T}get override(){return!0}};as.\u0275fac=function(T){return new(T||as)(e.Y36(Me.oQ))},as.\u0275cmp=e.Xpm({type:as,selectors:[["kendo-numerictextbox-messages"]],features:[e._Bn([{provide:Jn,useExisting:(0,e.Gpc)(()=>mi)}]),e.qOj],decls:0,vars:0,template:function(T,D){},encapsulation:2}),as=mi=p([r("design:paramtypes",[Me.oQ])],as);var Ji=(()=>{return(j=Ji||(Ji={}))[j.Literal=0]="Literal",j[j.Mask=1]="Mask",j[j.Undefined=2]="Undefined",Ji;var j})();class ls{constructor(T,D,pe=Ji.Undefined){this.value=T,this.rest=D,this.type=pe}map(T){return new ls(T(this.value),this.rest)}chain(T){return T(this.value,this.rest)}fold(T,D){return T(this.value,this.rest)}concat(T){return this.map((D,pe)=>T.chain((lt,Lt)=>D.concat([lt])))}toString(){return`Result({ value: '${this.value}', rest: ${this.rest} })`}}class Di{constructor(T=[],D=[]){this.input=T,this.control=D,this.inputCursor=0,this.controlCursor=0}eof(){return this.inputCursor>=this.input.length}next(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}}peek(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}}eat_input(){this.inputCursor++}eat_control(){this.controlCursor++}eat(){this.inputCursor++,this.controlCursor++}}const Ki=j=>(j||"").split("");class hs{constructor(T){this.parse=T}run(T,D=""){return this.parse(T instanceof Di?T:new Di(Ki(T),Ki(D)))}map(T){return new hs(D=>this.parse(D).map(T))}chain(T){return new hs(D=>this.parse(D).chain((pe,lt)=>T(pe).run(lt)))}isLiteral(T){return this.run(T).type===Ji.Literal}}const Vi=(j,T)=>new hs(D=>{let{char:pe}=D.next();const lt=j[pe];return"\\"===pe?(pe=D.next().char,new ls(T.literal(pe),D)):new ls(lt?T.mask(lt):T.literal(pe),D)}),sr=({prompt:j,promptPlaceholder:T})=>new hs(D=>{let{char:pe}=D.next();return new ls(pe===j?T:pe,D)}),lo=j=>new hs(T=>{let{char:D}=T.next();return new ls(j?D:"",T)}),_r=j=>j.reduce((T,D)=>((j,T)=>j.chain(D=>T.map(pe=>D.concat([pe]))))(T,D),(j=>new hs(T=>new ls(j,T)))([])),ro=j=>new hs(T=>{let D=new ls([],T);for(;!T.eof();)D=D.concat(j.run(T));return D});let _o=(()=>{let j=class{constructor(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}update({mask:D="",prompt:pe="",promptPlaceholder:lt=" ",rules:Lt={},includeLiterals:Tn=!1}){this.mask=D,this.prompt=pe,this.promptPlaceholder=lt,this.rules=Lt,this.includeLiterals=Tn,this.tokenize()}validationValue(D=""){let pe=D;return _r(this.validationTokens).run(D).fold(lt=>{pe=lt.join("")}),pe}rawValue(D=""){let pe=D;return this.rawTokens.length&&_r(this.rawTokens).run(D).fold(lt=>{pe=lt.join("")}),pe}maskRaw(D=""){let pe=D;return this.maskTokens.length&&_r(this.maskTokens).run(D).fold(lt=>{pe=lt.join("")}),pe}maskInput(D,pe,lt){return D.length{Tn=ri.concat(Gs).concat(hi).join("")}),{selection:ei,value:Tn}}maskRemoved(D,pe,lt){let Lt="",Tn=lt;const ei=D.split("").slice(lt),ri=D.split("").slice(0,lt).join("");return _r(this.maskTokens.slice(0,this.maskTokens.length-(D.length-lt))).run(ri,pe).fold(Gs=>{Tn=this.adjustPosition(Gs,Tn),Lt=Gs.concat(ei).join("")}),{selection:Tn,value:Lt}}adjustPosition(D,pe){const lt=D[pe];return this.maskTokens[pe].isLiteral(lt)||lt===this.prompt?pe:pe+1}maskInserted(D,pe,lt){let Lt="",Tn=lt;const ei=D.slice(0,lt);return _r(this.unmaskTokens).run(ei,pe).chain(ri=>{Tn=ri.join("").length;const hi=pe.slice(Tn);return _r(this.maskTokens).run(ri.join("")+hi,pe)}).fold(ri=>{Lt=ri.join("")}),{selection:Tn,value:Lt}}get maskTokenCreator(){const{prompt:D,promptPlaceholder:pe}=this;return{literal:lt=>(j=>new hs(T=>T.peek().char===j?(T.eat(),new ls(j,T,Ji.Literal)):new ls(j,T,Ji.Literal)))(lt),mask:lt=>(({prompt:j,promptPlaceholder:T})=>D=>new hs(pe=>{for(;!pe.eof();){const{char:lt,control:Lt}=pe.peek();if(lt===Lt&&Lt===j)return pe.eat(),new ls(j,pe,Ji.Mask);if(D.test(lt))return pe.eat(),new ls(lt,pe,Ji.Mask);if(lt===T)return pe.eat(),new ls(j,pe,Ji.Mask);pe.eat_input()}return pe.eat(),new ls(j,pe,Ji.Mask)}))({prompt:D,promptPlaceholder:pe})(lt)}}get unmaskTokenCreator(){return{literal:D=>(j=>new hs(T=>{if(T.eof())return new ls("",T);const{char:D}=T.peek();return D===j&&T.eat(),new ls(j,T)}))(D),mask:D=>(j=>T=>new hs(D=>{for(;!D.eof();){const{char:pe,control:lt}=D.peek();if(pe===j&<===j)return D.eat(),new ls(pe,D);if(T.test(pe))return D.eat(),new ls(pe,D);D.eat_input()}return D.eat(),new ls("",D)}))(this.prompt)(D)}}get rawTokenCreator(){const{prompt:D,promptPlaceholder:pe,includeLiterals:lt}=this;return{literal:Lt=>lo(lt),mask:Lt=>sr({prompt:D,promptPlaceholder:pe})}}get validationTokenCreator(){const{prompt:D}=this;return{literal:pe=>lo(!1),mask:pe=>sr({prompt:D,promptPlaceholder:""})}}tokenize(){ro(Vi(this.rules,this.maskTokenCreator)).run(this.mask).fold((D,pe)=>{this.maskTokens=D}),ro(Vi(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((D,pe)=>{this.unmaskTokens=D}),ro(Vi(this.rules,this.rawTokenCreator)).run(this.mask).fold((D,pe)=>{this.rawTokens=D}),ro(Vi(this.rules,this.validationTokenCreator)).run(this.mask).fold((D,pe)=>{this.validationTokens=D})}};return j.\u0275fac=function(D){return new(D||j)},j.\u0275prov=e.Yz7({token:j,factory:function(T){return j.\u0275fac(T)}}),j})();var yo;const ic=Promise.resolve(null),yl="k-state-focused";let rr=yo=class{constructor(T,D,pe,lt,Lt,Tn,ei){this.service=T,this.renderer=D,this.hostElement=pe,this.ngZone=lt,this.injector=Lt,this.changeDetector=Tn,this.focusableId=`k-${(0,ke.M8)()}`,this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.valueChange=new e.vpe,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this.handleFocus=()=>{this.focused=!0,this.maskOnFocus&&this.emptyMask&&(this.updateInput(this.service.maskRaw(this.value)),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.setSelection(0,0)},0)})),(0,ke.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleClick=()=>{if(this.focused&&!this.focusClick){this.focusClick=!0;const{selectionStart:ri,selectionEnd:hi}=this.input.nativeElement;ri===hi&&this.setFocusSelection()}},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.focusClick=!1,this.maskOnFocus&&this.emptyMask&&this.updateInput(this.maskedValue),((0,ke.g$)(this.onBlur)||Qr(this.control))&&this.ngZone.run(()=>{this.onTouched(),this.onBlur.emit()})},this.onChange=ri=>{},this.onTouched=()=>{},(0,G.s)($n),this.direction=ei?"rtl":"ltr",this.updateService()}get hostDisabledClass(){return this.disabled}get rules(){return this._rules||this.defaultRules}set rules(T){this._rules=Object.assign({},this.defaultRules,T)}set tabIndex(T){this.tabindex=T}get tabIndex(){return this.tabindex}ngOnInit(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(z.a5,null)}isEmpty(){if(this.input)return!Boolean(this.input.nativeElement.value)}handleDragDrop(){return!1}focus(){!this.input||(this.input.nativeElement.focus(),this.setFocusSelection())}blur(){!this.input||this.input.nativeElement.blur()}pasteHandler(T){const{selectionStart:D,selectionEnd:pe}=T.target;pe!==D&&(this.isPasted=!0,this.selection=[D,pe])}inputHandler(T){const D=T.target.value,[pe,lt]=this.selection;if(!this.mask)return this.updateValue(D),void(this.isPasted=!1);let Lt;this.isPasted?(this.isPasted=!1,Lt=this.service.maskInRange(D.slice(pe,D.length-(this.maskedValue.length-lt)),this.maskedValue,pe,lt)):Lt=this.service.maskInput(D,this.maskedValue,T.target.selectionStart),this.updateInput(Lt.value,Lt.selection),this.updateValue(Lt.value)}ngOnChanges(T){if(T.value&&(this.value=this.normalizeValue()),!this.mask)return void this.updateInput(this.value);const D=this.extractChanges(T);if(this.updateService(D),(0,ke.ln)("value",T)){const pe=this.service.maskRaw(this.value);pe!==this.maskedValue&&this.updateInput(pe)}else(0,ke.aG)(["promptPlaceholder","includeLiterals"],T)?ic.then(()=>{this.updateValue(this.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))}writeValue(T){this.value=this.normalizeValue(T),this.updateInput(this.service.maskRaw(this.value))}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.changeDetector.markForCheck(),this.disabled=T}validate(T){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null}updateValue(T){this.value=this.mask&&!this.service.validationValue(T)?"":this.service.rawValue(T),this.onChange(this.value),this.valueChange.emit(this.value)}updateInput(T="",D){this.maskedValue=T,this.renderer.setProperty(this.input.nativeElement,"value",this.maskOnFocus&&!this.focused&&this.emptyMask?"":T),void 0!==D&&this.setSelection(D,D)}extractChanges(T){return Object.keys(T).filter(D=>"rules"!==D).reduce((D,pe)=>(D[pe]=T[pe].currentValue,D),{})}updateService(T){const D=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},T);this.service.update(D)}setSelection(T=this.selection[0],D=this.selection[1]){this.focused&&Et(this.input,"setSelectionRange",T,D)}get emptyMask(){return this.service.maskRaw()===this.maskedValue}setFocusSelection(){const T=this.input.nativeElement.selectionStart,D=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;D>=0&&Dyo)},{multi:!0,provide:z.Cf,useExisting:(0,e.Gpc)(()=>yo)},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>yo)}]),e.TTD],decls:2,vars:12,consts:[["type","text","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-textbox",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["input",""]],template:function(T,D){1&T&&e._UZ(0,"input",0,1),2&T&&(e.Q6J("id",D.focusableId)("tabindex",D.tabIndex)("disabled",D.disabled)("readonly",D.readonly)("kendoEventsOutsideAngular",e.qbA(6,an,D.handleFocus,D.handleBlur,D.handleClick,D.handleDragDrop,D.handleDragDrop)),e.uIk("title",D.title))},directives:[ke.nV],encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],rr.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],rr.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],rr.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",String)],rr.prototype,"title",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],rr.prototype,"direction",void 0),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-maskedtextbox"),r("design:type",Boolean)],rr.prototype,"hostClasses",void 0),p([(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],rr.prototype,"hostDisabledClass",null),p([(0,e.IIB)(),r("design:type",String)],rr.prototype,"mask",void 0),p([(0,e.IIB)(),r("design:type",String)],rr.prototype,"value",void 0),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],rr.prototype,"rules",null),p([(0,e.IIB)(),r("design:type",String)],rr.prototype,"prompt",void 0),p([(0,e.IIB)(),r("design:type",String)],rr.prototype,"promptPlaceholder",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],rr.prototype,"includeLiterals",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],rr.prototype,"maskOnFocus",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],rr.prototype,"maskValidation",void 0),p([(0,e.IIB)(),r("design:type",Number)],rr.prototype,"tabindex",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],rr.prototype,"tabIndex",null),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],rr.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],rr.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],rr.prototype,"valueChange",void 0),p([(0,e.i9L)("input",{static:!0}),r("design:type",e.SBq)],rr.prototype,"input",void 0),p([(0,e.L6J)("paste",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],rr.prototype,"pasteHandler",null),p([(0,e.L6J)("input",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],rr.prototype,"inputHandler",null),rr=yo=p([K(6,(0,e.FiY)()),K(6,(0,e.tBr)(Me.lw)),r("design:paramtypes",[_o,e.Qsj,e.SBq,e.R0b,e.zs3,e.sBO,Boolean])],rr);class ka{constructor(T){this.value=T,this.classes={"k-tick":!0}}}let na=(()=>{let j=class{constructor(D){this.rtl=D,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}ngOnChanges(D){this.createTicks()}createTicks(){const D=Be(this.min,this.max,this.step),pe=this.largeStep,lt={max:this.max,min:this.min,smallStep:this.step};let Lt=[];for(let Tn=0;Tn0&&(Object.assign(Lt[0].classes,this.endTickClasses(!0)),Object.assign(Lt[Lt.length-1].classes,this.endTickClasses(!1))),this.ticks=Lt}endTickClasses(D){return{"k-first":D&&!this.vertical||!D&&this.vertical,"k-last":!D&&!this.vertical||D&&this.vertical}}};return j.\u0275fac=function(D){return new(D||j)(e.Y36(Me.lw,8))},j.\u0275cmp=e.Xpm({type:j,selectors:[["","kendoSliderTicks",""]],viewQuery:function(D,pe){if(1&D&&e.Gf(Qn,5),2&D){let lt;e.iGM(lt=e.CRH())&&(pe.tickElements=lt)}},hostVars:2,hostBindings:function(D,pe){2&D&&e.Tol(pe.wrapperClasses)},inputs:{tickTitle:"tickTitle",vertical:"vertical",step:"step",largeStep:"largeStep",min:"min",max:"max",labelTemplate:"labelTemplate"},features:[e.TTD],attrs:ni,decls:3,vars:1,consts:[["role","presentation",3,"ngClass","title",4,"ngFor","ngForOf"],["defaultLabel",""],["role","presentation",3,"ngClass","title"],["tickElement",""],[3,"ngSwitch"],["class","k-label",4,"ngSwitchCase"],[4,"ngSwitchCase"],[1,"k-label"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(D,pe){1&D&&(e.YNc(0,Zi,5,5,"li",0),e.YNc(1,Ti,1,1,"ng-template",null,1,e.W1O)),2&D&&e.Q6J("ngForOf",pe.ticks)},directives:[ut.sg,ut.mk,ut.RF,ut.n9,ut.tP],encapsulation:2}),p([(0,e.pfw)("class"),r("design:type",String)],j.prototype,"wrapperClasses",void 0),p([(0,e.IIB)(),r("design:type",Function)],j.prototype,"tickTitle",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"vertical",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"step",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"largeStep",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"min",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"max",void 0),p([(0,e.IIB)(),r("design:type",e.Rgc)],j.prototype,"labelTemplate",void 0),p([(0,e.vR)("tickElement"),r("design:type",e.n_E)],j.prototype,"tickElements",void 0),j=p([K(0,(0,e.FiY)()),K(0,(0,e.tBr)(Me.lw)),r("design:paramtypes",[Boolean])],j),j})(),Va=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez,ke.QY,ke.OY,ke.uv],ke.QY,ke.OY,ke.uv]}),j})(),Aa=(()=>{class j extends Me.Z1{}return j.\u0275fac=function(){let T;return function(pe){return(T||(T=e.n5z(j)))(pe||j)}}(),j.\u0275dir=e.lG2({type:j,inputs:{decrement:"decrement",increment:"increment",dragHandle:"dragHandle"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"decrement",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"increment",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"dragHandle",void 0),j})();var bl;let kl=bl=class extends Aa{constructor(T){super(),this.service=T}};var Mc;kl.\u0275fac=function(T){return new(T||kl)(e.Y36(Me.oQ))},kl.\u0275dir=e.lG2({type:kl,selectors:[["","kendoSliderLocalizedMessages",""]],features:[e._Bn([{provide:Aa,useExisting:(0,e.Gpc)(()=>bl)}]),e.qOj]}),kl=bl=p([r("design:paramtypes",[Me.oQ])],kl);let Al=Mc=class extends Aa{constructor(T){super(),this.service=T}get override(){return!0}};Al.\u0275fac=function(T){return new(T||Al)(e.Y36(Me.oQ))},Al.\u0275cmp=e.Xpm({type:Al,selectors:[["kendo-slider-messages"]],features:[e._Bn([{provide:Aa,useExisting:(0,e.Gpc)(()=>Mc)}]),e.qOj],decls:0,vars:0,template:function(T,D){},encapsulation:2}),Al=Mc=p([r("design:paramtypes",[Me.oQ])],Al);let Oa=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez,Va]]}),j})(),Xa=(()=>{class j extends Me.Z1{}return j.\u0275fac=function(){let T;return function(pe){return(T||(T=e.n5z(j)))(pe||j)}}(),j.\u0275dir=e.lG2({type:j,inputs:{dragHandleStart:"dragHandleStart",dragHandleEnd:"dragHandleEnd"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"dragHandleStart",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"dragHandleEnd",void 0),j})();var sc;let el=sc=class extends Xa{constructor(T){super(),this.service=T}};var To;el.\u0275fac=function(T){return new(T||el)(e.Y36(Me.oQ))},el.\u0275dir=e.lG2({type:el,selectors:[["","kendoSliderLocalizedMessages",""]],features:[e._Bn([{provide:Xa,useExisting:(0,e.Gpc)(()=>sc)}]),e.qOj]}),el=sc=p([r("design:paramtypes",[Me.oQ])],el);let ja=To=class extends Xa{constructor(T){super(),this.service=T}get override(){return!0}};ja.\u0275fac=function(T){return new(T||ja)(e.Y36(Me.oQ))},ja.\u0275cmp=e.Xpm({type:ja,selectors:[["kendo-rangeslider-messages"]],features:[e._Bn([{provide:Xa,useExisting:(0,e.Gpc)(()=>To)}]),e.qOj],decls:0,vars:0,template:function(T,D){},encapsulation:2}),ja=To=p([r("design:paramtypes",[Me.oQ])],ja);let Ol=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez,Va]]}),j})(),Cl=(()=>{class j extends Me.Z1{}return j.\u0275fac=function(){let T;return function(pe){return(T||(T=e.n5z(j)))(pe||j)}}(),j.\u0275dir=e.lG2({type:j,inputs:{on:"on",off:"off"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"on",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"off",void 0),j})();var qd;let la=qd=class extends Cl{constructor(T){super(),this.service=T}};var Vl;la.\u0275fac=function(T){return new(T||la)(e.Y36(Me.oQ))},la.\u0275dir=e.lG2({type:la,selectors:[["","kendoSwitchLocalizedMessages",""]],features:[e._Bn([{provide:Cl,useExisting:(0,e.Gpc)(()=>qd)}]),e.qOj]}),la=qd=p([r("design:paramtypes",[Me.oQ])],la);let Ga=Vl=class extends Cl{constructor(T){super(),this.service=T}get override(){return!0}};Ga.\u0275fac=function(T){return new(T||Ga)(e.Y36(Me.oQ))},Ga.\u0275cmp=e.Xpm({type:Ga,selectors:[["kendo-switch-messages"]],features:[e._Bn([{provide:Cl,useExisting:(0,e.Gpc)(()=>Vl)}]),e.qOj],decls:0,vars:0,template:function(T,D){},encapsulation:2}),Ga=Vl=p([r("design:paramtypes",[Me.oQ])],Ga);let Oe=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez,ke.OY,ke.uv]]}),j})();var ve;let se=ve=class extends Jn{constructor(T){super(),this.service=T}};se.\u0275fac=function(T){return new(T||se)(e.Y36(Me.oQ))},se.\u0275dir=e.lG2({type:se,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[e._Bn([{provide:Jn,useExisting:(0,e.Gpc)(()=>ve)}]),e.qOj]}),se=ve=p([r("design:paramtypes",[Me.oQ])],se);let Qe=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez,ke.OY]]}),j})(),pt=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez,ke.OY]]}),j})(),_n=(()=>{let j=class{constructor(D){this.templateRef=D}};return j.\u0275fac=function(D){return new(D||j)(e.Y36(e.Rgc,8))},j.\u0275dir=e.lG2({type:j,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),j=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],j),j})(),Kn=(()=>{let j=class{constructor(D){this.templateRef=D}};return j.\u0275fac=function(D){return new(D||j)(e.Y36(e.Rgc,8))},j.\u0275dir=e.lG2({type:j,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),j=p([K(0,(0,e.FiY)()),r("design:paramtypes",[e.Rgc])],j),j})();var Wi;const fr="k-state-focused";let Ai=Wi=class{constructor(T,D,pe,lt,Lt,Tn){this.localizationService=T,this.ngZone=D,this.changeDetector=pe,this.renderer=lt,this.injector=Lt,this.hostElement=Tn,this.focusableId=`k-${(0,ke.M8)()}`,this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new e.vpe,this.inputFocus=new e.vpe,this.inputBlur=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=()=>{this.disabled||(this.selectOnFocus&&this.value&&this.ngZone.run(()=>{setTimeout(()=>{this.selectAll()})}),(0,ke.g$)(this.onFocus)&&(this.isFocused||this.ngZone.run(()=>{this.onFocus.emit()})),(0,ke.g$)(this.inputFocus)&&(!this.focusChangedProgrammatically||this.focusChangedProgrammatically&&this.clearButtonClicked)&&this.ngZone.run(()=>{this.inputFocus.emit()}),this.ngZone.run(()=>{this.isFocused=!0}))},this.handleInputBlur=()=>{this.changeDetector.markForCheck(),((0,ke.g$)(this.inputBlur)||Qr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.inputBlur.emit()})},this.handleInput=ei=>{let ri=(j=navigator.userAgent,((0,ot.r4)(j).safari||(0,ot.oh)(j)&&"mobilesafari"===(0,ot.oh)(j).browser)&&(j=>/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(j))(ei.target.value)?ei.data:ei.target.value);var j;this.updateValue(ri)},this.ngChange=ei=>{},this.ngTouched=()=>{},(0,G.s)($n),this.direction=T.rtl?"rtl":"ltr"}set tabIndex(T){this.tabindex=T}get tabIndex(){return this.tabindex}get disabledClass(){return this.disabled}ngOnInit(){this.control=this.injector.get(z.a5,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(({rtl:T})=>{this.direction=T?"rtl":"ltr"})}ngAfterViewInit(){const T=this.hostElement.nativeElement;let D=!1,pe=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(T,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0})})),this.subscriptions.add(this.renderer.listen(T,"focusout",lt=>{!this.isFocused||(pe?(dn(lt.relatedTarget,Tn=>Tn===this.hostElement.nativeElement)||this.handleBlur(),pe=!1):!D&&!this.clearButtonClicked&&this.handleBlur())})),this.subscriptions.add(this.renderer.listen(T,"mouseenter",()=>{D=!0})),this.subscriptions.add(this.renderer.listen(T,"mouseleave",()=>{D=!1})),this.subscriptions.add(this.renderer.listen(T,"keydown",lt=>{pe=lt.keyCode===ke.R8.Tab}))})}ngOnChanges(T){(T.disabled||T.readonly||T.value)&&this.checkClearButton()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}focus(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0;const T=this.hostElement.nativeElement.querySelector(":focus");T&&T.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}clearTitle(){return this.localizationService.get("clear")}checkClearButton(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}clearValue(T){T&&T.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1}writeValue(T){this.value=T,this.checkClearButton()}registerOnChange(T){this.ngChange=T}registerOnTouched(T){this.ngTouched=T}setDisabledState(T){this.changeDetector.markForCheck(),this.disabled=T}showErrorsInitial(){if(!this.control)return!1;const{invalid:T,dirty:D,touched:pe}=this.control;return T&&(D||pe)}showSuccessInitial(){if(!this.control)return!1;const{valid:T,dirty:D,touched:pe}=this.control;return T&&(D||pe)}get successIconClasses(){return this.successIcon?`k-text-success ${this.successIcon}`:"k-text-success k-icon k-i-check-outline"}get errorIconClasses(){return this.errorIcon?`k-text-error ${this.errorIcon}`:"k-text-error k-icon k-i-warning"}get clearButtonClasses(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-close-circle"}get hasErrors(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}get isSuccessful(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}setSelection(T,D){this.isFocused&&Et(this.input,"setSelectionRange",T,D)}selectAll(){this.value&&this.setSelection(0,this.value.length)}updateValue(T){Ws(this.value,T)||this.ngZone.run(()=>{this.value=T,this.ngChange(T),this.valueChange.emit(T),this.checkClearButton(),this.changeDetector.markForCheck()})}get isFocused(){return this._isFocused}set isFocused(T){if(this._isFocused!==T&&this.hostElement){const D=this.hostElement.nativeElement;T&&!this.disabled?this.renderer.addClass(D,fr):this.renderer.removeClass(D,fr),this._isFocused=T}}handleBlur(){this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onBlur.emit(),this.isFocused=!1})}};Ai.\u0275fac=function(T){return new(T||Ai)(e.Y36(Me.oQ),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(e.SBq))},Ai.\u0275cmp=e.Xpm({type:Ai,selectors:[["kendo-textbox"]],contentQueries:function(T,D,pe){if(1&T&&(e.Suo(pe,_n,5),e.Suo(pe,Kn,5)),2&T){let lt;e.iGM(lt=e.CRH())&&(D.suffixTemplate=lt.first),e.iGM(lt=e.CRH())&&(D.prefixTemplate=lt.first)}},viewQuery:function(T,D){if(1&T&&e.Gf(bt,7),2&T){let pe;e.iGM(pe=e.CRH())&&(D.input=pe.first)}},hostVars:5,hostBindings:function(T,D){2&T&&(e.uIk("dir",D.direction),e.ekj("k-textbox",D.hostClass)("k-state-disabled",D.disabledClass))},inputs:{focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",tabIndex:"tabIndex",successIcon:"successIcon",errorIcon:"errorIcon",clearButtonIcon:"clearButtonIcon",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[e._Bn([Me.oQ,{provide:Me.mM,useValue:"kendo.textbox"},{provide:z.JU,useExisting:(0,e.Gpc)(()=>Wi),multi:!0},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>Wi)}]),e.TTD],decls:10,vars:18,consts:function(){let j;return j=$localize`:kendo.textbox.clear|The title for the **Clear** button in the TextBox.␟e6edd360fd0d3c873c0d94a3aecd3c407d31da5a␟2651889799249671820:Clear`,[["kendoTextBoxLocalizedMessages","","clear",j],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input",3,"id","disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],[1,"k-input-suffix"],[3,"ngClass",4,"ngIf"],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],[3,"ngTemplateOutlet"],[3,"ngClass"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"]]},template:function(T,D){1&T&&(e.GkF(0,0),e.TgZ(1,"span",1),e.YNc(2,qt,1,1,void 0,2),e.qZA(),e._UZ(3,"input",3,4),e.TgZ(5,"span",5),e.YNc(6,jt,1,1,"span",6),e.YNc(7,on,1,1,"span",6),e.YNc(8,kn,2,4,"span",7),e.YNc(9,Ei,1,1,void 0,2),e.qZA()),2&T&&(e.xp6(2),e.Q6J("ngIf",D.prefixTemplate),e.xp6(1),e.Q6J("id",D.focusableId)("disabled",D.disabled)("readonly",D.readonly)("value",D.value)("kendoEventsOutsideAngular",e.kEZ(14,ps,D.handleInputFocus,D.handleInputBlur,D.handleInput)),e.uIk("tabindex",D.disabled?void 0:D.tabindex)("placeholder",D.placeholder)("title",D.title)("maxlength",D.maxlength),e.xp6(3),e.Q6J("ngIf",D.hasErrors),e.xp6(1),e.Q6J("ngIf",D.isSuccessful),e.xp6(1),e.Q6J("ngIf",D.showClearButton),e.xp6(1),e.Q6J("ngIf",D.suffixTemplate))},directives:function(){return[Ro,ut.O5,ke.nV,ut.tP,ut.mk]},encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],Ai.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",String)],Ai.prototype,"title",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Ai.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Ai.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Number)],Ai.prototype,"tabindex",void 0),p([(0,e.IIB)(),r("design:type",String)],Ai.prototype,"value",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Ai.prototype,"selectOnFocus",void 0),p([(0,e.IIB)(),r("design:type",Object)],Ai.prototype,"showSuccessIcon",void 0),p([(0,e.IIB)(),r("design:type",Object)],Ai.prototype,"showErrorIcon",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Ai.prototype,"clearButton",void 0),p([(0,e.IIB)(),r("design:type",String)],Ai.prototype,"successIcon",void 0),p([(0,e.IIB)(),r("design:type",String)],Ai.prototype,"errorIcon",void 0),p([(0,e.IIB)(),r("design:type",String)],Ai.prototype,"clearButtonIcon",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],Ai.prototype,"tabIndex",null),p([(0,e.IIB)(),r("design:type",String)],Ai.prototype,"placeholder",void 0),p([(0,e.IIB)(),r("design:type",Number)],Ai.prototype,"maxlength",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Ai.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Ai.prototype,"inputFocus",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Ai.prototype,"inputBlur",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],Ai.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],Ai.prototype,"onBlur",void 0),p([(0,e.i9L)("input",{static:!0}),r("design:type",e.SBq)],Ai.prototype,"input",void 0),p([(0,e.aQ5)(_n,{static:!1}),r("design:type",_n)],Ai.prototype,"suffixTemplate",void 0),p([(0,e.aQ5)(Kn,{static:!1}),r("design:type",Kn)],Ai.prototype,"prefixTemplate",void 0),p([(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],Ai.prototype,"disabledClass",null),p([(0,e.pfw)("class.k-textbox"),r("design:type",Boolean)],Ai.prototype,"hostClass",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],Ai.prototype,"direction",void 0),Ai=Wi=p([r("design:paramtypes",[Me.oQ,e.R0b,e.sBO,e.Qsj,e.zs3,e.SBq])],Ai);let Ir=(()=>{class j extends Me.Z1{}return j.\u0275fac=function(){let T;return function(pe){return(T||(T=e.n5z(j)))(pe||j)}}(),j.\u0275dir=e.lG2({type:j,inputs:{clear:"clear"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"clear",void 0),j})();var Br;let Eo=Br=class extends Ir{constructor(T){super(),this.service=T}get override(){return!0}};var ia;Eo.\u0275fac=function(T){return new(T||Eo)(e.Y36(Me.oQ))},Eo.\u0275cmp=e.Xpm({type:Eo,selectors:[["kendo-textbox-messages"]],features:[e._Bn([{provide:Ir,useExisting:(0,e.Gpc)(()=>Br)}]),e.qOj],decls:0,vars:0,template:function(T,D){},encapsulation:2}),Eo=Br=p([r("design:paramtypes",[Me.oQ])],Eo);let Ro=ia=class extends Ir{constructor(T){super(),this.service=T}};Ro.\u0275fac=function(T){return new(T||Ro)(e.Y36(Me.oQ))},Ro.\u0275dir=e.lG2({type:Ro,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[e._Bn([{provide:Ir,useExisting:(0,e.Gpc)(()=>ia)}]),e.qOj]}),Ro=ia=p([r("design:paramtypes",[Me.oQ])],Ro);let dl=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({}),j})(),Gl=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez,ke.OY,dl],ke.OY]}),j})(),bo=(()=>{class j{constructor(D,pe,lt,Lt,Tn,ei){this.localizationService=D,this.ngZone=pe,this.changeDetector=lt,this.renderer=Lt,this.injector=Tn,this.hostElement=ei,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new e.vpe,this.inputBlur=new e.vpe,this.subscriptions=new je.w0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=()=>{this.changeDetector.markForCheck(),((0,ke.g$)(this.inputBlur)||Qr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.inputBlur.emit()})},this.ngChange=ri=>{},this.ngTouched=()=>{}}get disabledClass(){return this.disabled}ngOnDestroy(){this.subscriptions.unsubscribe()}setDisabledState(D){this.changeDetector.markForCheck(),this.disabled=D}}return j.\u0275fac=function(D){e.$Z()},j.\u0275dir=e.lG2({type:j,viewQuery:function(D,pe){if(1&D&&e.Gf(bt,7),2&D){let lt;e.iGM(lt=e.CRH())&&(pe.input=lt.first)}},hostVars:3,hostBindings:function(D,pe){2&D&&(e.uIk("dir",pe.direction),e.ekj("k-state-disabled",pe.disabledClass))},inputs:{title:"title",disabled:"disabled",readonly:"readonly",value:"value",selectOnFocus:"selectOnFocus",placeholder:"placeholder"},outputs:{inputFocus:"inputFocus",inputBlur:"inputBlur"}}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"title",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"value",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"selectOnFocus",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"placeholder",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],j.prototype,"inputFocus",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],j.prototype,"inputBlur",void 0),p([(0,e.i9L)("input",{static:!0}),r("design:type",e.SBq)],j.prototype,"input",void 0),p([(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],j.prototype,"disabledClass",null),p([(0,e.pfw)("attr.dir"),r("design:type",String)],j.prototype,"direction",void 0),j})();var Ul;const ah={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},Xd="k-state-focus";let Po=Ul=class extends bo{constructor(T,D,pe,lt,Lt,Tn){super(T,D,pe,lt,Lt,Tn),this.localizationService=T,this.ngZone=D,this.changeDetector=pe,this.renderer=lt,this.injector=Lt,this.hostElement=Tn,this.focusableId=`k-${(0,ke.M8)()}`,this.hostClass=!0,this.flow="vertical",this.tabindex=0,this.resizable="vertical",this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.valueChange=new e.vpe,this.handleInput=ei=>{this.updateValue(ei.target.value),this.resize()},this.handleInputFocus=()=>{this.disabled||(this.selectOnFocus&&this.value&&this.ngZone.run(()=>{setTimeout(()=>{this.selectAll()})}),(0,ke.g$)(this.onFocus)&&(this.isFocused||this.ngZone.run(()=>{this.onFocus.emit()})),(0,ke.g$)(this.inputFocus)&&(this.focusChangedProgrammatically||this.ngZone.run(()=>{this.inputFocus.emit()})),this.ngZone.run(()=>{this.isFocused=!0}))},(0,G.s)($n),this.direction=T.rtl?"rtl":"ltr"}get flowCol(){return"vertical"===this.flow}get flowRow(){return"horizontal"===this.flow}set tabIndex(T){this.tabindex=T}get tabIndex(){return this.tabindex}ngAfterViewInit(){const T=this.hostElement.nativeElement;let D=!1,pe=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(T,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0})})),this.subscriptions.add(this.renderer.listen(T,"focusout",lt=>{!this.isFocused||(pe?(dn(lt.relatedTarget,Tn=>Tn===this.hostElement.nativeElement)||this.handleBlur(),pe=!1):D||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(T,"mouseenter",()=>{D=!0})),this.subscriptions.add(this.renderer.listen(T,"mouseleave",()=>{D=!1})),this.subscriptions.add(this.renderer.listen(T,"keydown",lt=>{pe=lt.keyCode===ke.R8.Tab}))})}ngOnInit(){this.control=this.injector.get(z.a5,null),(0,ke.X_)()&&"auto"===this.resizable&&(this.resizeSubscription=(0,rt.R)(window,"resize").pipe((0,he.b)(50)).subscribe(()=>this.resize())),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(({rtl:T})=>{this.direction=T?"rtl":"ltr"})}ngOnChanges(T){const D=this.hostElement.nativeElement,pe=this.input.nativeElement;T.resizable&&("auto"===this.resizable?this.initialHeight=pe.offsetHeight:(this.renderer.setStyle(pe,"overflow-y","auto"),this.renderer.setStyle(pe,"resize","both"),pe.style.height=`${this.initialHeight}px`)),T.cols&&($i(T.cols.currentValue)?this.renderer.setStyle(D,"width","auto"):this.renderer.removeStyle(D,"width"))}ngAfterViewChecked(){this.resize()}writeValue(T){this.value=T}registerOnChange(T){this.ngChange=T}registerOnTouched(T){this.ngTouched=T}updateValue(T){Ws(this.value,T)||this.ngZone.run(()=>{this.value=T,this.ngChange(T),this.valueChange.emit(T),this.changeDetector.markForCheck()})}ngOnDestroy(){super.ngOnDestroy(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()}get resizableClass(){return ah[this.resizable]}focus(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0;const T=this.hostElement.nativeElement.querySelector(":focus");T&&T.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}resize(){if("auto"!==this.resizable)return;const T=this.input.nativeElement;this.renderer.setStyle(T,"overflow-y","hidden"),this.renderer.setStyle(T,"height",`${this.initialHeight}px`);const D=T.scrollHeight;D>this.initialHeight&&(T.style.height=`${D}px`)}get isFocused(){return this._isFocused}set isFocused(T){if(this._isFocused!==T&&this.hostElement){const D=this.hostElement.nativeElement;T&&!this.disabled?this.renderer.addClass(D,Xd):this.renderer.removeClass(D,Xd),this._isFocused=T}}handleBlur(){this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onBlur.emit(),this.isFocused=!1})}setSelection(T,D){this.isFocused&&Et(this.input,"setSelectionRange",T,D)}selectAll(){this.value&&this.setSelection(0,this.value.length)}};Po.\u0275fac=function(T){return new(T||Po)(e.Y36(Me.oQ),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(e.SBq))},Po.\u0275cmp=e.Xpm({type:Po,selectors:[["kendo-textarea"]],hostVars:6,hostBindings:function(T,D){2&T&&e.ekj("k-textarea",D.hostClass)("k-flex-col",D.flowCol)("k-flex-row",D.flowRow)},inputs:{focusableId:"focusableId",flow:"flow",tabindex:"tabindex",resizable:"resizable",tabIndex:"tabIndex",rows:"rows",cols:"cols",maxlength:"maxlength"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoTextArea"],features:[e._Bn([Me.oQ,{provide:Me.mM,useValue:"kendo.textarea"},{provide:z.JU,useExisting:(0,e.Gpc)(()=>Ul),multi:!0},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>Ul)}]),e.qOj,e.TTD],ngContentSelectors:["kendo-textarea-suffix"],decls:4,vars:19,consts:[[1,"k-input",3,"ngClass","id","value","disabled","readonly","kendoEventsOutsideAngular"],["input",""]],template:function(T,D){1&T&&(e.F$t(fs),e.TgZ(0,"textarea",0,1),e._uU(2," "),e.qZA(),e.Hsn(3)),2&T&&(e.Q6J("ngClass",D.resizableClass)("id",D.focusableId)("value",D.value)("disabled",D.disabled)("readonly",D.readonly)("kendoEventsOutsideAngular",e.kEZ(15,ps,D.handleInputFocus,D.handleInputBlur,D.handleInput)),e.uIk("aria-multiline",!0)("aria-disabled",!!D.disabled||void 0)("aria-readonly",!!D.readonly||void 0)("placeholder",D.placeholder)("rows",D.rows)("cols",D.cols)("tabindex",D.tabIndex)("title",D.title)("maxlength",D.maxlength))},directives:[ut.mk,ke.nV],encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],Po.prototype,"focusableId",void 0),p([(0,e.pfw)("class.k-textarea"),r("design:type",Boolean)],Po.prototype,"hostClass",void 0),p([(0,e.pfw)("class.k-flex-col"),r("design:type",Boolean),r("design:paramtypes",[])],Po.prototype,"flowCol",null),p([(0,e.pfw)("class.k-flex-row"),r("design:type",Boolean),r("design:paramtypes",[])],Po.prototype,"flowRow",null),p([(0,e.IIB)(),r("design:type",String)],Po.prototype,"flow",void 0),p([(0,e.IIB)(),r("design:type",Number)],Po.prototype,"rows",void 0),p([(0,e.IIB)(),r("design:type",Number)],Po.prototype,"cols",void 0),p([(0,e.IIB)(),r("design:type",Number)],Po.prototype,"maxlength",void 0),p([(0,e.IIB)(),r("design:type",Number)],Po.prototype,"tabindex",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],Po.prototype,"tabIndex",null),p([(0,e.IIB)(),r("design:type",String)],Po.prototype,"resizable",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],Po.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],Po.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Po.prototype,"valueChange",void 0),Po=Ul=p([r("design:paramtypes",[Me.oQ,e.R0b,e.sBO,e.Qsj,e.zs3,e.SBq])],Po);let oc=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez,ke.OY,dl],ke.OY]}),j})();class Ua{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Ou{constructor(T){this.color=T,this.openPrevented=!1}preventOpen(){this.openPrevented=!0}isOpenPrevented(){return this.openPrevented}}const ho=(j,T,D=!0)=>{if(-1===["hex","rgba","name"].indexOf(T))throw new Error(`Unsupported color output format '${T}'. The available options are 'hex', 'rgba' or 'name'.`);if(!$i(j))return;if("name"===T)return function(j,T){if(j=j.toLowerCase().trim(),$i(Jt.Z[j]))return j;(0,Wt.ZP)(j,T)&&(j=(0,Wt.ZP)(j,T).toHex());const D=Object.keys(Jt.Z).find(pe=>Jt.Z[pe]===j);if(!D&&!T)throw new Error(`The provided color ${j} is not supported for 'format="name"' property.To display ${j} color, the component 'format' property shoud be set to 'hex' or 'rgba' `);return D}(j,D);const lt=(0,Wt.ZP)(j.trim(),D);return $i(lt)?"hex"===T?lt.toCss():lt.toCssRgba():void 0},ca=(j,T=!0)=>{const D=(0,Wt.ZP)(j,T);return $i(D)?D.toBytes():{}},Fl=j=>{const T=er(j.h,0,359.9),D=er(j.s,0,1),pe=er(j.v,0,1),lt=er(j.a,0,1);return be.fromHSV(T,D,pe,lt).toCssRgba()},po=j=>Fl({h:j,s:1,v:1,a:1}),wd=(j,T)=>{const D=er(j.r,0,255),pe=er(j.g,0,255),lt=er(j.b,0,255),Lt=er(j.a,0,1),Tn=er(T.r,0,255),ei=er(T.g,0,255),ri=er(T.b,0,255);return{r:Math.round((1-Lt)*Tn+Lt*D),g:Math.round((1-Lt)*ei+Lt*pe),b:Math.round((1-Lt)*ri+Lt*lt)}},Sl=j=>{let T=[j.r,j.g,j.b].map(function(D){return(D/=255)<=.03928?D/12.92:Math.pow((D+.055)/1.055,2.4)});return.2126*T[0]+.7152*T[1]+.0722*T[2]},xd={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}};let ul=(()=>{let j=class extends Me.oQ{constructor(D,pe,lt){super(D,pe,lt)}};return j.\u0275fac=function(D){return new(D||j)(e.LFG(Me.mM),e.LFG(Me.ez,8),e.LFG(Me.lw,8))},j.\u0275prov=e.Yz7({token:j,factory:function(T){return j.\u0275fac(T)}}),j=p([K(0,(0,e.tBr)(Me.mM)),K(1,(0,e.FiY)()),K(2,(0,e.FiY)()),K(2,(0,e.tBr)(Me.lw)),r("design:paramtypes",[String,Me.ez,Boolean])],j),j})(),Xc=(()=>{let j=class extends Me.oQ{constructor(D,pe,lt,Lt){super(D,pe,lt),this.colorPickerLocalization=Lt}get(D){return this.colorPickerLocalization?this.colorPickerLocalization.get(D):super.get(D)}};return j.\u0275fac=function(D){return new(D||j)(e.LFG(Me.mM),e.LFG(Me.ez,8),e.LFG(Me.lw,8),e.LFG(ul,8))},j.\u0275prov=e.Yz7({token:j,factory:function(T){return j.\u0275fac(T)}}),j=p([K(0,(0,e.tBr)(Me.mM)),K(1,(0,e.FiY)()),K(2,(0,e.FiY)()),K(2,(0,e.tBr)(Me.lw)),K(3,(0,e.FiY)()),K(3,(0,e.tBr)(ul)),r("design:paramtypes",[String,Me.ez,Boolean,ul])],j),j})(),ko=(()=>{let j=class{constructor(D,pe,lt){this.localization=D,this.host=pe,this.renderer=lt,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new e.vpe,this.colorInputClass=!0,this.rgba={},this.subscriptions=new je.w0}get isFocused(){if(!(0,ke.X_)()||!$i(this.host))return!1;const D=document.activeElement;return this.host.nativeElement.contains(D)}get rgbaInputValid(){return Object.keys(this.rgba).every(D=>$i(this.rgba[D]))}ngAfterViewInit(){this.initDomEvents()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}ngOnChanges(D){$i(D.value)&&!this.isFocused&&(this.hex=ho(this.value,"hex"),this.rgba=ca(this.value),this.rgba.a=ho(this.value,"rgba")?this.rgba.a:1)}handleRgbaValueChange(){const D=(j=>{const T=er(j.r,0,255),D=er(j.g,0,255),pe=er(j.b,0,255),lt=er(j.a,0,1);return be.fromBytes(T,D,pe,lt).toCssRgba()})(this.rgba);!this.rgbaInputValid||D===this.value||(this.value=D,this.rgba=ca(this.value),this.hex=ho(D,"hex"),this.valueChange.emit(D))}handleHexValueChange(D){this.hex=D;const pe=ho(D,"rgba");!$i(pe)||pe===this.value||(this.value=pe,this.rgba=ca(pe),this.valueChange.emit(pe))}handleRgbaInputBlur(){this.rgbaInputValid||(this.rgba=ca(this.value))}handleHexInputBlur(){this.hex=ho(this.value,"hex")}textFor(D){return this.localization.get(D)}toggleFormatView(){this.formatView="hex"===this.formatView?"rgba":"hex"}initDomEvents(){!this.host||this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",()=>this.toggleFormatView()))}};return j.\u0275fac=function(D){return new(D||j)(e.Y36(Me.oQ),e.Y36(e.SBq),e.Y36(e.Qsj))},j.\u0275cmp=e.Xpm({type:j,selectors:[["kendo-colorinput"]],viewQuery:function(D,pe){if(1&D&&(e.Gf(gr,5,e.SBq),e.Gf(Nr,5)),2&D){let lt;e.iGM(lt=e.CRH())&&(pe.opacityInput=lt.first),e.iGM(lt=e.CRH())&&(pe.toggleFormatButton=lt.first)}},hostVars:4,hostBindings:function(D,pe){2&D&&e.ekj("k-colorgradient-inputs",pe.colorInputClass)("k-hstack",pe.colorInputClass)},inputs:{opacity:"opacity",disabled:"disabled",readonly:"readonly",value:"value",formatView:"formatView"},outputs:{valueChange:"valueChange"},features:[e.TTD],decls:6,vars:2,consts:[[1,"k-vstack"],[1,"k-colorgradient-toggle-mode","k-button","k-icon-button","k-flat"],["toggleFormatButton",""],[1,"k-button-icon","k-icon","k-i-arrows-kpi"],["class","k-textbox k-hex-value",3,"disabled","readonly","value","placeholder","blur","input",4,"ngIf"],[4,"ngIf"],[1,"k-textbox","k-hex-value",3,"disabled","readonly","value","placeholder","blur","input"],["hexInput",""],[3,"disabled","readonly","min","max","placeholder","value","autoCorrect","spinners","format","decimals","valueChange","blur"],["red",""],[1,"k-colorgradient-input-label",3,"for"],["green",""],["blue",""],["class","k-vstack",4,"ngIf"],[3,"disabled","readonly","min","max","placeholder","value","autoCorrect","spinners","step","format","decimals","valueChange","blur"],["opacityInput","","alpha",""]],template:function(D,pe){1&D&&(e.TgZ(0,"div",0),e.TgZ(1,"button",1,2),e._UZ(3,"span",3),e.qZA(),e.qZA(),e.YNc(4,Vs,2,4,"input",4),e.YNc(5,vs,17,34,"ng-container",5)),2&D&&(e.xp6(4),e.Q6J("ngIf","hex"===pe.formatView),e.xp6(1),e.Q6J("ngIf","rgba"===pe.formatView))},directives:[ut.O5,En],encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"formatView",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"value",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"opacity",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"readonly",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],j.prototype,"valueChange",void 0),p([(0,e.pfw)("class.k-colorgradient-inputs"),(0,e.pfw)("class.k-hstack"),r("design:type",Boolean)],j.prototype,"colorInputClass",void 0),p([(0,e.i9L)("opacityInput",{read:e.SBq,static:!1}),r("design:type",e.SBq)],j.prototype,"opacityInput",void 0),p([(0,e.i9L)("toggleFormatButton",{static:!1}),r("design:type",e.SBq)],j.prototype,"toggleFormatButton",void 0),j=p([r("design:paramtypes",[Me.oQ,e.SBq,e.Qsj])],j),j})();var tl;let ch=0,Gr=tl=class{constructor(T,D,pe,lt,Lt){this.host=T,this.ngZone=D,this.renderer=pe,this.cdr=lt,this.localizationService=Lt,this.hostClasses=!0,this.id="k-colorgradient-"+ch++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.valueChange=new e.vpe,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.updateValues=new qe.x,this.notifyNgChanged=()=>{},this.notifyNgTouched=()=>{},this.dynamicRTLSubscription=Lt.changes.subscribe(({rtl:Tn})=>{this.direction=Tn?"rtl":"ltr"})}get readonlyAttribute(){return this.readonly}get disabledClass(){return this.disabled}get hostTabindex(){return this.tabindex}get gradientId(){return this.id}set value(T){this._value=ho(T,this.format)}get value(){return this._value}set tabindex(T){const D=Number(T);this._tabindex=isNaN(D)?0:D}get tabindex(){return this.disabled?void 0:this._tabindex}get isFocused(){return!(!(0,ke.X_)()||!$i(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))}get alphaSliderValue(){if($i(this.hsva)&&$i(this.hsva.a))return 100*this.hsva.a}get gradientRect(){return this.gradientWrapper.nativeElement.getBoundingClientRect()}get contrastToolVisible(){return"string"==typeof this.contrastTool&&""!==this.contrastTool}ngAfterViewInit(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()}ngOnChanges(T){(0,ke.ln)("value",T)&&!this.isFocused&&this.updateUI(),(0,ke.ln)("delay",T)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.listeners.forEach(T=>T()),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()}focus(){this.disabled||this.host.nativeElement.focus()}reset(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()}handleDragPress(T){this.disabled||this.readonly||!$i(T.originalEvent)||(this.focus(),T.originalEvent.preventDefault())}onHandleDrag(T){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(T))}onHandleRelease(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(Fl(this.hsva)))}onKeyboardAction(T){if(!this.disabled&&!this.readonly&&T.key&&-1!==T.key.indexOf("Arrow")){T.preventDefault();const D=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");let pe=0,lt=0;switch(T.key){case"ArrowRight":pe=5;break;case"ArrowLeft":pe=-5;break;case"ArrowUp":lt=-5;break;case"ArrowDown":lt=5}const Lt=parseInt(D.style.top,10)+lt,Tn=parseInt(D.style.left,10)+pe;this.renderer.setStyle(D,"top",`${Lt}px`),this.renderer.setStyle(D,"left",`${Tn}px`),this.ngZone.run(()=>this.moveDragHandle(Tn,Lt))}}changePosition(T){if(this.disabled||this.readonly)return;this.gradientDragHandle.nativeElement.focus();const D=T.clientX-this.gradientRect.left,pe=T.clientY-this.gradientRect.top;this.ngZone.run(()=>this.moveDragHandle(D,pe))}handleHueSliderChange(T){this.handleValueChange(Fl(this.hsva)),this.backgroundColor=po(T),this.setAlphaSliderBackground(this.backgroundColor)}handleAlphaSliderChange(T){this.hsva.a=T/100,this.handleValueChange(Fl(this.hsva))}handleInputsValueChange(T){const D=ho(T,this.format);this.value!==D&&(this.handleValueChange(D),this.updateUI())}writeValue(T){this.value=T,$i(this.gradientWrapper)&&this.updateUI()}registerOnChange(T){this.notifyNgChanged=T}registerOnTouched(T){this.notifyNgTouched=T}setDisabledState(T){this.cdr.markForCheck(),this.disabled=T}get colorGradientHandleTitle(){return this.localizationService.get("colorGradientHandle")}get colorGradientHandleAriaLabel(){const T=ho(this.value,this.format);return`${this.value?T:this.localizationService.get("colorGradientHandle")}`}get hueSliderTitle(){return this.localizationService.get("hueSliderHandle")}get opacitySliderTitle(){return this.localizationService.get("opacitySliderHandle")}get clearButtonTitle(){return this.localizationService.get("clearButton")}isEmpty(){return!1}moveDragHandle(T,D){const pe=er(D,0,this.gradientRect.height),lt=er(T,0,this.gradientRect.width);this.setDragHandleElementPosition(pe,lt),this.hsva.s=lt/this.gradientRect.width,this.hsva.v=1-pe/this.gradientRect.height,this.updateValues.next(Fl(this.hsva)),this.setAlphaSliderBackground(Fl(Object.assign({},this.hsva,{a:1})))}updateUI(){(0,ke.X_)()&&(this.hsva=this.value?((j,T=!0)=>{const D=(0,Wt.ZP)(this.value,T);return $i(D)?D.toHSV():{}})():{h:0,s:0,v:1,a:1},this.setDragHandleElementPosition((1-this.hsva.v)*this.gradientRect.height,this.hsva.s*this.gradientRect.width),this.backgroundColor=po(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel())}handleValueChange(T){this.value!==T&&(this.value=T,this.valueChange.emit(T),this.notifyNgChanged(T),this.setHostElementAriaLabel())}setDragHandleElementPosition(T,D){const pe=this.gradientDragHandle.nativeElement;this.renderer.setStyle(pe,"top",`${T}px`),this.renderer.setStyle(pe,"left",`${D}px`)}setAlphaSliderBackground(T){$i(this.alphaSlider)&&this.renderer.setStyle(this.alphaSlider.track.nativeElement,"background",`linear-gradient(to top, transparent, ${T})`)}setHostElementAriaLabel(){const T=ho(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",`${this.value?T:this.localizationService.get("colorGradientNoColor")}`)}addEventListeners(){this.ngZone.runOutsideAngular(()=>{const T=this.renderer.listen(this.host.nativeElement,"focusout",Tn=>{var j;!((j,T)=>j&&T&&(j===T||j.contains(T)))(this.host.nativeElement,Tn.relatedTarget)&&(j=this.host)&&j.nativeElement&&((j,T)=>Boolean((j=>String(j).trim().split(" "))(j.className).find(D=>D===T)))(j.nativeElement,"ng-untouched")&&this.ngZone.run(()=>this.notifyNgTouched())}),D=this.renderer.listen(this.gradientDragHandle.nativeElement,"keydown",Tn=>{this.onKeyboardAction(Tn)}),pe=this.renderer.listen(this.gradientDragHandle.nativeElement,"keyup",()=>{this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),!this.readonly&&!this.disabled&&this.ngZone.run(()=>this.handleValueChange(Fl(this.hsva)))}),lt=this.renderer.listen(this.gradientDragHandle.nativeElement,"focusin",()=>{this.renderer.addClass(this.gradientDragHandle.nativeElement,"k-state-focus")}),Lt=this.renderer.listen(this.gradientDragHandle.nativeElement,"focusout",()=>{this.renderer.removeClass(this.gradientDragHandle.nativeElement,"k-state-focus")});this.listeners.push(T,D,pe,lt,Lt)})}subscribeChanges(){this.changeRequestsSubscription=this.updateValues.pipe((0,Ne.p)(this.delay)).subscribe(T=>{this.handleValueChange(T)})}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}};var ac;Gr.\u0275fac=function(T){return new(T||Gr)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Me.oQ))},Gr.\u0275cmp=e.Xpm({type:Gr,selectors:[["kendo-colorgradient"]],viewQuery:function(T,D){if(1&T&&(e.Gf(mr,5,e.SBq),e.Gf(vi,5),e.Gf(Hi,5),e.Gf(Ms,5)),2&T){let pe;e.iGM(pe=e.CRH())&&(D.gradientDragHandle=pe.first),e.iGM(pe=e.CRH())&&(D.inputs=pe.first),e.iGM(pe=e.CRH())&&(D.alphaSlider=pe.first),e.iGM(pe=e.CRH())&&(D.gradientWrapper=pe.first)}},hostVars:8,hostBindings:function(T,D){2&T&&(e.uIk("dir",D.direction)("aria-readonly",D.readonlyAttribute)("tabindex",D.hostTabindex)("id",D.gradientId),e.ekj("k-colorgradient",D.hostClasses)("k-state-disabled",D.disabledClass))},inputs:{id:"id",opacity:"opacity",disabled:"disabled",readonly:"readonly",clearButton:"clearButton",delay:"delay",format:"format",value:"value",tabindex:"tabindex",contrastTool:"contrastTool"},outputs:{valueChange:"valueChange"},features:[e._Bn([{multi:!0,provide:z.JU,useExisting:(0,e.Gpc)(()=>tl)},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>tl)},Xc,{provide:Me.oQ,useExisting:Xc},{provide:Me.mM,useValue:"kendo.colorgradient"}]),e.TTD],decls:14,vars:29,consts:function(){let j,T,D,pe,lt,Lt,Tn,ei,ri,hi,Gs,lr,Mi;return j=$localize`:kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.␟136a6a537523c480df0e58c17cc6d4c2dda8e626␟3796155240301823948:Colorgradient no color chosen`,T=$localize`:kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser.␟462ab46551fd64dca63ba38254e46a52aeb05205␟8537406358423916512:Choose color`,D=$localize`:kendo.colorgradient.clearButton|The title for the clear button.␟6dc40c4a4ff302d1fe29e7bf9eadf1440b4654cf␟7605097752673642325:Clear value`,pe=$localize`:kendo.colorgradient.hueSliderHandle|The title for the hue slider handle.␟22a98afddf46223dce8a3e122f4fe84ca76488b9␟8568799441668530127:Set hue`,lt=$localize`:kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle.␟ad3087c7bf139a41bf6a7fc454f4e857492c9d22␟2665102430468067218:Set opacity`,Lt=$localize`:kendo.colorgradient.hexInputPlaceholder|The placeholder for the HEX color input.␟0223abe5dc060383b58df6d9f83dc98b08ba8e2b␟1551996638068326100:HEX Color`,Tn=$localize`:kendo.colorgradient.redInputPlaceholder|The placeholder for the red color input.␟ec8e6ab816ff2b3686ad6594068d26e3c72e49d3␟865798719701025148:Red`,ei=$localize`:kendo.colorgradient.greenInputPlaceholder|The placeholder for the green color input.␟50e5480cded07f92356e43143800db6b44dce024␟7119549617208224702:Green`,ri=$localize`:kendo.colorgradient.blueInputPlaceholder|The placeholder for the blue color input.␟f07b6e271e4cb957c512029298715c8f4970eca8␟8925567330503382499:Blue`,hi=$localize`:kendo.colorgradient.alphaInputPlaceholder|The placeholder for the alpha input.␟122a5434fa0f1ee3ef735e859c1db1606542c995␟6303797935938211585:Alpha`,Gs=$localize`:kendo.colorgradient.passContrast|The pass message for the contrast tool.␟ec167f04d318f2b1f1edbca6318a74fddf436c76␟200461871469242251:Pass`,lr=$localize`:kendo.colorgradient.failContrast|The fail message for the contrast tool.␟79015428999551ebe50f69bb5a1ebd31de4c3bdf␟2780397365913372676:Fail`,Mi=$localize`:kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool.␟408650dd85473f406520edd1d60c8df0c475a8fa␟713630549826115578:Contrast ratio`,[["kendoColorGradientLocalizedMessages","","colorGradientNoColor",j,"colorGradientHandle",T,"clearButton",D,"hueSliderHandle",pe,"opacitySliderHandle",lt,"hexInputPlaceholder",Lt,"redInputPlaceholder",Tn,"greenInputPlaceholder",ei,"blueInputPlaceholder",ri,"alphaInputPlaceholder",hi,"passContrast",Gs,"failContrast",lr,"contrastRatio",Mi],[1,"k-colorgradient-canvas","k-hstack"],[1,"k-hsv-rectangle"],["kendoDraggable","",1,"k-hsv-gradient",3,"click","kendoPress","kendoDrag","kendoRelease"],["gradientWrapper",""],["tabindex","0",1,"k-hsv-draghandle","k-draghandle"],["gradientDragHandle",""],["class","k-clear-color k-button k-flat k-button-icon","tabindex","0",3,"click","keydown.enter","keydown.space",4,"ngIf"],[1,"k-hue-slider","k-colorgradient-slider",3,"ngClass","dragHandleTitle","disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange"],["class","k-alpha-slider k-colorgradient-slider",3,"ngClass","dragHandleTitle","disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange",4,"ngIf"],[3,"opacity","formatView","value","disabled","readonly","valueChange"],["inputs",""],["class","k-colorgradient-color-contrast k-vbox","kendoContrastTool","",3,"value","ratio",4,"ngIf"],["tabindex","0",1,"k-clear-color","k-button","k-flat","k-button-icon",3,"click","keydown.enter","keydown.space"],[1,"k-icon","k-i-reset-color"],[1,"k-alpha-slider","k-colorgradient-slider",3,"ngClass","dragHandleTitle","disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange"],["alphaSlider",""],["kendoContrastTool","",1,"k-colorgradient-color-contrast","k-vbox",3,"value","ratio"]]},template:function(T,D){1&T&&(e.GkF(0,0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3,4),e.NdJ("click",function(lt){return D.changePosition(lt)})("kendoPress",function(lt){return D.handleDragPress(lt)})("kendoDrag",function(lt){return D.onHandleDrag(lt)})("kendoRelease",function(){return D.onHandleRelease()}),e._UZ(5,"div",5,6),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.YNc(8,ur,2,2,"span",7),e.TgZ(9,"kendo-slider",8),e.NdJ("valueChange",function(lt){return D.hsva.h=lt})("valueChange",function(lt){return D.handleHueSliderChange(lt)}),e.qZA(),e.YNc(10,Ps,2,14,"kendo-slider",9),e.qZA(),e.qZA(),e.TgZ(11,"kendo-colorinput",10,11),e.NdJ("valueChange",function(lt){return D.handleInputsValueChange(lt)}),e.qZA(),e.YNc(13,Sr,1,2,"div",12)),2&T&&(e.xp6(2),e.Udp("background",D.backgroundColor),e.xp6(3),e.uIk("title",D.colorGradientHandleTitle)("aria-label",D.colorGradientHandleAriaLabel),e.xp6(2),e.Gre("k-hsv-controls k-hstack ",D.clearButton?"k-sliders-wrap-clearable":"",""),e.xp6(1),e.Q6J("ngIf",D.clearButton),e.xp6(1),e.Q6J("ngClass",e.VKq(27,pr,D.clearButton))("dragHandleTitle",D.hueSliderTitle)("disabled",D.disabled)("readonly",D.readonly)("showButtons",!1)("tickPlacement","none")("vertical",!0)("min",0)("max",360)("smallStep",5)("largeStep",10)("value",D.hsva.h),e.xp6(1),e.Q6J("ngIf",D.opacity&&"rgba"===D.format),e.xp6(1),e.Q6J("opacity",D.opacity)("formatView",D.format)("value",D.value)("disabled",D.disabled)("readonly",D.readonly),e.xp6(2),e.Q6J("ngIf",D.contrastToolVisible))},directives:function(){return[hl,ke.pD,ut.O5,De,ut.mk,ko,kc]},styles:[".k-clear-color[_ngcontent-%COMP%] {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-align-self-end[_ngcontent-%COMP%] {\n height: 140px;\n }"]}),p([(0,e.pfw)("class.k-colorgradient"),r("design:type",Boolean)],Gr.prototype,"hostClasses",void 0),p([(0,e.pfw)("attr.aria-readonly"),r("design:type",Boolean),r("design:paramtypes",[])],Gr.prototype,"readonlyAttribute",null),p([(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],Gr.prototype,"disabledClass",null),p([(0,e.pfw)("attr.tabindex"),r("design:type",Number),r("design:paramtypes",[])],Gr.prototype,"hostTabindex",null),p([(0,e.pfw)("attr.id"),r("design:type",String),r("design:paramtypes",[])],Gr.prototype,"gradientId",null),p([(0,e.IIB)(),r("design:type",String)],Gr.prototype,"id",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],Gr.prototype,"direction",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Gr.prototype,"opacity",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Gr.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Gr.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Gr.prototype,"clearButton",void 0),p([(0,e.IIB)(),r("design:type",Number)],Gr.prototype,"delay",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],Gr.prototype,"value",null),p([(0,e.IIB)(),r("design:type",String)],Gr.prototype,"contrastTool",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],Gr.prototype,"tabindex",null),p([(0,e.r_U)(),r("design:type",e.vpe)],Gr.prototype,"valueChange",void 0),p([(0,e.IIB)(),r("design:type",String)],Gr.prototype,"format",void 0),p([(0,e.i9L)("gradientDragHandle",{read:e.SBq,static:!1}),r("design:type",e.SBq)],Gr.prototype,"gradientDragHandle",void 0),p([(0,e.i9L)("inputs",{static:!1}),r("design:type",ko)],Gr.prototype,"inputs",void 0),p([(0,e.i9L)("alphaSlider",{static:!1}),r("design:type",De)],Gr.prototype,"alphaSlider",void 0),p([(0,e.i9L)("gradientWrapper",{static:!1}),r("design:type",e.SBq)],Gr.prototype,"gradientWrapper",void 0),Gr=tl=p([r("design:paramtypes",[e.SBq,e.R0b,e.Qsj,e.sBO,Me.oQ])],Gr);let Jh=0,Jr=ac=class{constructor(T,D,pe,lt){this.popupService=T,this.cdr=D,this.localizationService=pe,this.ngZone=lt,this.hostClasses=!0,this.focusableId="k-colorpicker-"+Jh++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.activeColorClick=new e.vpe,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1,delay:0},this.notifyNgTouched=()=>{},this.notifyNgChanged=()=>{},(0,G.s)($n),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:Lt})=>{this.direction=Lt?"rtl":"ltr"})}set value(T){this._value=ho(T,this.format)}get value(){return this._value}set popupSettings(T){this._popupSettings=Object.assign(this._popupSettings,T)}get popupSettings(){return this._popupSettings}set paletteSettings(T){this._paletteSettings=Object.assign(this._paletteSettings,T)}get paletteSettings(){return this._paletteSettings}set gradientSettings(T){this._gradientSettings=Object.assign(this._gradientSettings,T)}get gradientSettings(){return this._gradientSettings}set tabindex(T){const D=Number(T);this._tabindex=isNaN(D)?0:D}get tabindex(){return this.disabled?void 0:this._tabindex}get isOpen(){return $i(this.popupRef)}get iconStyles(){return this.iconClass?this.iconClass:this.icon?`k-icon k-i-${this.icon}`:void 0}ngOnInit(){const D=this._paletteSettings.palette;this._paletteSettings={palette:D||("name"!==this.format?"office":"accessible"),tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||("string"==typeof D&&xd[D]?xd[D].columns:void 0)||10}}ngOnChanges(T){T.format&&"name"===T.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=ho(this.value,this.format))}ngOnDestroy(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}handleWrapperClick(){this.toggleWithEvents(!this.isOpen),this.focus()}handleActiveColorClick(){this.focus();const T=new Ou(this.value);this.activeColorClick.emit(T),(!T.isOpenPrevented()||this.isOpen)&&this.handleWrapperClick()}focus(){this.disabled||this.wrapper.nativeElement.focus()}handleWrapperFocus(){$i(this.palette)&&this.palette.nativeElement.focus(),!this.isFocused&&(this.isFocused=!0,this.onFocus.emit())}blur(){this.wrapper.nativeElement.blur()}handleWrapperBlur(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())}reset(){!$i(this.value)||(this._value=void 0,this.notifyNgChanged(void 0))}toggle(T){this.disabled||this.readonly||(this.closePopup(),(T=$i(T)?T:!this.isOpen)&&this.openPopup())}handleValueChange(T,D){const pe=ho(T,this.format),lt=pe!==this.value;D&&(this.toggleWithEvents(!1),this.focus()),lt&&(this.value=pe,this.valueChange.emit(pe),this.notifyNgChanged(pe))}handlePopupBlur(T){const D=this.popupRef.popupElement.contains(T.relatedTarget);!this.isFocused||T.relatedTarget===this.wrapper.nativeElement||D||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))}writeValue(T){this.value=T}registerOnChange(T){this.notifyNgChanged=T}registerOnTouched(T){this.notifyNgTouched=T}setDisabledState(T){this.cdr.markForCheck(),this.disabled=T}handleWrapperKeyDown(T){(T.keyCode===ke.R8.ArrowDown||T.keyCode===ke.R8.Enter)&&(T.preventDefault(),this.toggleWithEvents(!0))}handlePopupKeyDown(T){if(T.keyCode===ke.R8.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),T.keyCode===ke.R8.Tab){const D=this.colorGradient?this.colorGradient.gradientDragHandle.nativeElement:this.palette.nativeElement,pe=this.palette?this.palette.nativeElement:this.colorGradient.inputs.opacityInput.nativeElement.childNodes[1].children[0];if(T.shiftKey){if(T.target===D)return T.preventDefault(),void pe.focus()}else if(T.target===pe)return T.preventDefault(),void D.focus()}}isEmpty(){return!1}toggleWithEvents(T){if(this.disabled||this.readonly||this.isOpen===T)return;const pe=new Ua;T?this.open.emit(pe):this.close.emit(pe),pe.isDefaultPrevented()||this.toggle(T),T&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.colorGradient&&this.colorGradient.gradientDragHandle.nativeElement.focus()})})}openPopup(){const T="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:{horizontal:T,vertical:"top"},anchorAlign:{horizontal:T,vertical:"bottom"},popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.toggleWithEvents(!1),this.isOpen||this.wrapper.nativeElement.focus({preventScroll:!0})})}closePopup(){!this.isOpen||(this.popupRef.close(),this.popupRef=null,this.palette=null)}};Jr.\u0275fac=function(T){return new(T||Jr)(e.Y36(Mt.qL),e.Y36(e.sBO),e.Y36(Me.oQ),e.Y36(e.R0b))},Jr.\u0275cmp=e.Xpm({type:Jr,selectors:[["kendo-colorpicker"]],viewQuery:function(T,D){if(1&T&&(e.Gf(Ns,5,e.SBq),e.Gf(Or,7,e.s_b),e.Gf(Yn,7),e.Gf($r,7),e.Gf(Ri,5)),2&T){let pe;e.iGM(pe=e.CRH())&&(D.palette=pe.first),e.iGM(pe=e.CRH())&&(D.container=pe.first),e.iGM(pe=e.CRH())&&(D.wrapper=pe.first),e.iGM(pe=e.CRH())&&(D.popupTemplate=pe.first),e.iGM(pe=e.CRH())&&(D.colorGradient=pe.first)}},hostVars:5,hostBindings:function(T,D){2&T&&(e.uIk("dir",D.direction),e.ekj("k-widget",D.hostClasses)("k-colorpicker",D.hostClasses))},inputs:{focusableId:"focusableId",view:"view",readonly:"readonly",disabled:"disabled",format:"format",value:"value",popupSettings:"popupSettings",paletteSettings:"paletteSettings",gradientSettings:"gradientSettings",tabindex:"tabindex",icon:"icon",iconClass:"iconClass"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur",activeColorClick:"activeColorClick"},features:[e._Bn([{multi:!0,provide:z.JU,useExisting:(0,e.Gpc)(()=>ac)},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>ac)},ul,{provide:Me.oQ,useExisting:ul},{provide:Me.mM,useValue:"kendo.colorpicker"}]),e.TTD],decls:11,vars:12,consts:function(){let j,T,D,pe,lt,Lt,Tn,ei,ri;return j=$localize`:kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.␟8d537502a437254763c963398484bd362820af61␟8067778471922495440:Choose color`,T=$localize`:kendo.colorpicker.clearButton|The title for the clear button.␟aae9caf1dbc689cd51ace5c265cbf45552a580b6␟935472034136733879:Clear value`,D=$localize`:kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.␟7af8ad339d09d41bfa8fa5f4e44d16e326cafd54␟1739045502529621844:Set hue`,pe=$localize`:kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.␟21883ee2927bd4cde8071c9cbec41901a0bc4bd2␟1818720388700598438:Set opacity`,lt=$localize`:kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input.␟88c518588be223639d20666430d42b88990166c9␟67581802130075115:HEX Color`,Lt=$localize`:kendo.colorpicker.redInputPlaceholder|The placeholder for the red color input.␟60f46a6db83b89c15885de76451bb26478637d2c␟1242921922786989001:Red`,Tn=$localize`:kendo.colorpicker.greenInputPlaceholder|The placeholder for the green color input.␟0c1eef35af82330d89cacecb2aa482d9da1e3a4b␟564969508273982379:Green`,ei=$localize`:kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input.␟c8f1ad22547f56cec39eb563a9a1bfe5a85cc14a␟2815824305218491249:Blue`,ri=$localize`:kendo.colorpicker.alphaInputPlaceholder|The placeholder for the alpha input.␟4e4aed4804d59e87f4f96959d0113c5ca292d98c␟7522085117867122625:Alpha`,[["kendoColorPickerLocalizedMessages","","colorGradientNoColor","Colorgradient no color chosen","colorPaletteNoColor","Colorpalette no color chosen","colorGradientHandle",j,"clearButton",T,"hueSliderHandle",D,"opacitySliderHandle",pe,"hexInputPlaceholder",lt,"redInputPlaceholder",Lt,"greenInputPlaceholder",Tn,"blueInputPlaceholder",ei,"alphaInputPlaceholder",ri],["role","listbox",3,"ngClass","id","focus","blur","mousedown","keydown"],["wrapper",""],["class","k-selected-color",3,"background-color","click",4,"ngIf"],["class","k-tool-icon",3,"ngClass","click",4,"ngIf"],[1,"k-select",3,"click"],[1,"k-icon","k-i-arrow-s"],["popupTemplate",""],["container",""],[1,"k-selected-color",3,"click"],["class","k-icon k-i-line",4,"ngIf"],[1,"k-icon","k-i-line"],[1,"k-tool-icon",3,"ngClass","click"],[1,"k-selected-color"],[3,"value","format","opacity","clearButton","delay","focusout","valueChange","keydown",4,"ngIf"],["kendoFocusOnDomReady","",3,"palette","columns","tileSize","format","value","blur","cellSelection","mousedown","keydown",4,"ngIf"],[3,"value","format","opacity","clearButton","delay","focusout","valueChange","keydown"],["colorGradient",""],["kendoFocusOnDomReady","",3,"palette","columns","tileSize","format","value","blur","cellSelection","mousedown","keydown"],["palette",""]]},template:function(T,D){1&T&&(e.GkF(0,0),e.TgZ(1,"span",1,2),e.NdJ("focus",function(){return D.handleWrapperFocus()})("blur",function(){return D.handleWrapperBlur()})("mousedown",function(lt){return lt.preventDefault()})("keydown",function(lt){return D.handleWrapperKeyDown(lt)}),e.YNc(3,tn,2,3,"span",3),e.YNc(4,Zn,2,3,"span",4),e.TgZ(5,"span",5),e.NdJ("click",function(){return D.handleWrapperClick()}),e._UZ(6,"span",6),e.qZA(),e.qZA(),e.YNc(7,_i,2,2,"ng-template",null,7,e.W1O),e.GkF(9,null,8)),2&T&&(e.xp6(1),e.Q6J("ngClass",e.WLB(9,vn,D.disabled,D.isFocused))("id",D.focusableId),e.uIk("aria-expanded",D.isOpen)("aria-readonly",D.readonly)("aria-disabled",D.disabled)("aria-label",D.value)("tabindex",D.tabindex),e.xp6(2),e.Q6J("ngIf",!D.iconStyles),e.xp6(1),e.Q6J("ngIf",D.iconStyles))},directives:function(){return[hl,ut.mk,ut.O5,Gr,Xr,sa]},encapsulation:2}),p([(0,e.pfw)("class.k-widget"),(0,e.pfw)("class.k-colorpicker"),r("design:type",Boolean)],Jr.prototype,"hostClasses",void 0),p([(0,e.pfw)("attr.dir"),r("design:type",String)],Jr.prototype,"direction",void 0),p([(0,e.IIB)(),r("design:type",String)],Jr.prototype,"focusableId",void 0),p([(0,e.IIB)(),r("design:type",String)],Jr.prototype,"view",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Jr.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Jr.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",String)],Jr.prototype,"format",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],Jr.prototype,"value",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],Jr.prototype,"popupSettings",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],Jr.prototype,"paletteSettings",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],Jr.prototype,"gradientSettings",null),p([(0,e.IIB)(),r("design:type",String)],Jr.prototype,"icon",void 0),p([(0,e.IIB)(),r("design:type",Object)],Jr.prototype,"iconClass",void 0),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],Jr.prototype,"tabindex",null),p([(0,e.r_U)(),r("design:type",e.vpe)],Jr.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Jr.prototype,"open",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Jr.prototype,"close",void 0),p([(0,e.r_U)("focus"),r("design:type",e.vpe)],Jr.prototype,"onFocus",void 0),p([(0,e.r_U)("blur"),r("design:type",e.vpe)],Jr.prototype,"onBlur",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Jr.prototype,"activeColorClick",void 0),p([(0,e.i9L)("container",{read:e.s_b,static:!0}),r("design:type",e.s_b)],Jr.prototype,"container",void 0),p([(0,e.i9L)("wrapper",{static:!0}),r("design:type",e.SBq)],Jr.prototype,"wrapper",void 0),p([(0,e.i9L)("popupTemplate",{static:!0}),r("design:type",e.Rgc)],Jr.prototype,"popupTemplate",void 0),p([(0,e.i9L)("palette",{read:e.SBq,static:!1}),r("design:type",e.SBq)],Jr.prototype,"palette",void 0),p([(0,e.i9L)("colorGradient",{static:!1}),r("design:type",Gr)],Jr.prototype,"colorGradient",void 0),Jr=ac=p([r("design:paramtypes",[Mt.qL,e.sBO,Me.oQ,e.R0b])],Jr);let uh=(()=>{let j=class{constructor(){this.colorRows=[]}setColorMatrix(D,pe){if(this.colorRows=[],$i(D)&&D.length){pe=pe||D.length;for(let lt=0;ltpe?pe:D}};return j.\u0275fac=function(D){return new(D||j)},j.\u0275prov=e.Yz7({token:j,factory:function(T){return j.\u0275fac(T)}}),j})(),Ru=(()=>{let j=class extends Me.oQ{constructor(D,pe,lt,Lt){super(D,pe,lt),this.colorPickerLocalization=Lt}get(D){return this.colorPickerLocalization?this.colorPickerLocalization.get(D):super.get(D)}};return j.\u0275fac=function(D){return new(D||j)(e.LFG(Me.mM),e.LFG(Me.ez,8),e.LFG(Me.lw,8),e.LFG(ul,8))},j.\u0275prov=e.Yz7({token:j,factory:function(T){return j.\u0275fac(T)}}),j=p([K(0,(0,e.tBr)(Me.mM)),K(1,(0,e.FiY)()),K(2,(0,e.FiY)()),K(2,(0,e.tBr)(Me.lw)),K(3,(0,e.FiY)()),K(3,(0,e.tBr)(ul)),r("design:paramtypes",[String,Me.ez,Boolean,ul])],j),j})();var Ma;let qh=0,Xr=Ma=class{constructor(T,D,pe,lt,Lt){this.host=T,this.service=D,this.cdr=pe,this.renderer=lt,this.localizationService=Lt,this.id="k-colorpalette-"+qh++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new e.vpe,this.valueChange=new e.vpe,this.cellSelection=new e.vpe,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=()=>{},this.notifyNgChanged=()=>{},this.dynamicRTLSubscription=Lt.changes.subscribe(({rtl:Tn})=>{this.direction=Tn?"rtl":"ltr"})}get paletteId(){return this.id}set value(T){this._value=ho(T,this.format)}get value(){return this._value}set columns(T){this._columns=T>1?T:1}get columns(){return this._columns}set palette(T){$i(T)||(T="office"),"string"==typeof T&&$i(xd[T])&&(this.columns=this.columns||xd[T].columns,T=xd[T].colors);const D="string"==typeof T?T.split(","):T;this._palette=D.map(pe=>ho(pe,this.format,!1))}get palette(){return this._palette}set tabindex(T){const D=Number(T);this._tabindex=isNaN(D)?0:D}get tabindex(){return this.disabled?void 0:this._tabindex}get tileLayout(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}}get colorRows(){return this.service.colorRows}get hostTabindex(){return this.tabindex}get disabledClass(){return this.disabled}get readonlyAttribute(){return this.readonly}ngOnInit(){if(0===this.colorRows.length){const T="name"!==this.format?"office":"accessible";this.palette=this.palette||T,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}}ngAfterViewInit(){this.setHostElementAriaLabel()}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}ngOnChanges(T){(T.palette||T.columns)&&this.setRows(),(T.palette||T.value||T.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())}handleKeydown(T){const D="rtl"===this.direction;switch(T.keyCode){case ke.R8.ArrowDown:this.handleCellNavigation(0,1);break;case ke.R8.ArrowUp:this.handleCellNavigation(0,-1);break;case ke.R8.ArrowRight:this.handleCellNavigation(D?-1:1,0);break;case ke.R8.ArrowLeft:this.handleCellNavigation(D?1:-1,0);break;case ke.R8.Enter:this.handleEnter();break;default:return}T.preventDefault()}handleHostBlur(){this.notifyNgTouched(),this.handleCellFocusOnBlur()}handleCellSelection(T,D){if(this.readonly)return;this.selectedCell=D,this.focusedCell=this.selectedCell,this.focusInComponent=!0;const pe=ho(T,this.format,!1);this.cellSelection.emit(pe),this.value!==pe&&(this.value=pe,this.valueChange.emit(pe),this.notifyNgChanged(pe),this.setHostElementAriaLabel()),this.selection!==pe&&(this.selection=pe,this.selectionChange.emit(pe)),D&&(this.activeCellId=`${this.selectedCell.row}-${this.selectedCell.col}`)}writeValue(T){this.value=T,this.focusedCell=this.service.getCellCoordsFor(this.value)}registerOnChange(T){this.notifyNgChanged=T}registerOnTouched(T){this.notifyNgTouched=T}setDisabledState(T){this.cdr.markForCheck(),this.disabled=T}isEmpty(){return!1}reset(){this.focusedCell=null,$i(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))}handleCellFocusOnBlur(){this.focusInComponent=!1,this.focusedCell=this.selectedCell}setRows(){!$i(this.palette)||(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))}handleCellNavigation(T,D){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,T,D),this.focusInComponent=!0)}setHostElementAriaLabel(){const T=ho(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",`${this.value?T:this.localizationService.get("colorPaletteNoColor")}`)}handleEnter(){if(!$i(this.focusedCell))return;const T=this.service.getColorAt(this.focusedCell);this.handleCellSelection(T,this.focusedCell)}};Xr.\u0275fac=function(T){return new(T||Xr)(e.Y36(e.SBq),e.Y36(uh),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(Me.oQ))},Xr.\u0275cmp=e.Xpm({type:Xr,selectors:[["kendo-colorpalette"]],hostVars:9,hostBindings:function(T,D){1&T&&e.NdJ("keydown",function(lt){return D.handleKeydown(lt)})("blur",function(){return D.handleHostBlur()}),2&T&&(e.uIk("dir",D.direction)("id",D.paletteId)("tabindex",D.hostTabindex)("aria-disabled",D.disabledClass)("aria-readonly",D.readonlyAttribute),e.ekj("k-colorpalette",D.hostClasses)("k-state-disabled",D.disabledClass))},inputs:{id:"id",format:"format",disabled:"disabled",readonly:"readonly",tileSize:"tileSize",value:"value",columns:"columns",palette:"palette",tabindex:"tabindex"},outputs:{selectionChange:"selectionChange",valueChange:"valueChange",cellSelection:"cellSelection"},features:[e._Bn([{multi:!0,provide:z.JU,useExisting:(0,e.Gpc)(()=>Ma)},{provide:ke.GX,useExisting:(0,e.Gpc)(()=>Ma)},uh,Ru,{provide:Me.oQ,useExisting:Ru},{provide:Me.mM,useValue:"kendo.colorpalette"}]),e.TTD],decls:5,vars:2,consts:function(){let j;return j=$localize`:kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.␟9828bb7d78de6289366052cdc37cf0bc74577313␟4885193165402402447:Colorpalette no color chosen`,[["kendoColorPaletteLocalizedMessages","","colorPaletteNoColor",j],["role","listbox",1,"k-colorpalette-table-wrap"],[1,"k-colorpalette-table","k-palette"],[4,"ngFor","ngForOf"],["role","option","class","k-colorpalette-tile",3,"k-state-selected","k-state-focus","id","ngStyle","click",4,"ngFor","ngForOf"],["role","option",1,"k-colorpalette-tile",3,"id","ngStyle","click"]]},template:function(T,D){1&T&&(e.GkF(0,0),e.TgZ(1,"div",1),e.TgZ(2,"table",2),e.TgZ(3,"tbody"),e.YNc(4,Us,2,1,"tr",3),e.qZA(),e.qZA(),e.qZA()),2&T&&(e.xp6(1),e.uIk("aria-activedescendant",D.activeCellId),e.xp6(3),e.Q6J("ngForOf",D.colorRows))},directives:function(){return[hl,ut.sg,ut.PC]},encapsulation:2}),p([(0,e.pfw)("attr.dir"),r("design:type",String)],Xr.prototype,"direction",void 0),p([(0,e.pfw)("attr.id"),r("design:type",String),r("design:paramtypes",[])],Xr.prototype,"paletteId",null),p([(0,e.IIB)(),r("design:type",String)],Xr.prototype,"id",void 0),p([(0,e.IIB)(),r("design:type",String)],Xr.prototype,"format",void 0),p([(0,e.IIB)(),r("design:type",String),r("design:paramtypes",[String])],Xr.prototype,"value",null),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],Xr.prototype,"columns",null),p([(0,e.IIB)(),r("design:type",Object),r("design:paramtypes",[Object])],Xr.prototype,"palette",null),p([(0,e.IIB)(),r("design:type",Number),r("design:paramtypes",[Number])],Xr.prototype,"tabindex",null),p([(0,e.IIB)(),r("design:type",Boolean)],Xr.prototype,"disabled",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Xr.prototype,"readonly",void 0),p([(0,e.IIB)(),r("design:type",Object)],Xr.prototype,"tileSize",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Xr.prototype,"selectionChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Xr.prototype,"valueChange",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Xr.prototype,"cellSelection",void 0),p([(0,e.pfw)("attr.tabindex"),r("design:type",Number),r("design:paramtypes",[])],Xr.prototype,"hostTabindex",null),p([(0,e.pfw)("class.k-colorpalette"),r("design:type",Boolean)],Xr.prototype,"hostClasses",void 0),p([(0,e.pfw)("attr.aria-disabled"),(0,e.pfw)("class.k-state-disabled"),r("design:type",Boolean),r("design:paramtypes",[])],Xr.prototype,"disabledClass",null),p([(0,e.pfw)("attr.aria-readonly"),r("design:type",Boolean),r("design:paramtypes",[])],Xr.prototype,"readonlyAttribute",null),p([(0,e.L6J)("keydown",["$event"]),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],Xr.prototype,"handleKeydown",null),p([(0,e.L6J)("blur"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],Xr.prototype,"handleHostBlur",null),Xr=Ma=p([r("design:paramtypes",[e.SBq,uh,e.sBO,e.Qsj,Me.oQ])],Xr);let Md=(()=>{class j extends Me.Z1{}return j.\u0275fac=function(){let T;return function(pe){return(T||(T=e.n5z(j)))(pe||j)}}(),j.\u0275dir=e.lG2({type:j,inputs:{colorPaletteNoColor:"colorPaletteNoColor",colorGradientNoColor:"colorGradientNoColor",colorGradientHandle:"colorGradientHandle",clearButton:"clearButton",hueSliderHandle:"hueSliderHandle",opacitySliderHandle:"opacitySliderHandle",hexInputPlaceholder:"hexInputPlaceholder",redInputPlaceholder:"redInputPlaceholder",greenInputPlaceholder:"greenInputPlaceholder",blueInputPlaceholder:"blueInputPlaceholder",alphaInputPlaceholder:"alphaInputPlaceholder",passContrast:"passContrast",failContrast:"failContrast",contrastRatio:"contrastRatio"},features:[e.qOj]}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"colorPaletteNoColor",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"colorGradientNoColor",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"colorGradientHandle",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"clearButton",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"hueSliderHandle",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"opacitySliderHandle",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"hexInputPlaceholder",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"redInputPlaceholder",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"greenInputPlaceholder",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"blueInputPlaceholder",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"alphaInputPlaceholder",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"passContrast",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"failContrast",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"contrastRatio",void 0),j})();var Id;let Ec=Id=class extends Md{constructor(T){super(),this.service=T}get override(){return!0}};var Dd;Ec.\u0275fac=function(T){return new(T||Ec)(e.Y36(Me.oQ))},Ec.\u0275cmp=e.Xpm({type:Ec,selectors:[["kendo-colorpicker-messages"],["kendo-colorgradient-messages"],["kendo-colorpalette-messages"]],features:[e._Bn([{provide:Md,useExisting:(0,e.Gpc)(()=>Id)}]),e.qOj],decls:0,vars:0,template:function(T,D){},encapsulation:2}),Ec=Id=p([r("design:paramtypes",[Me.oQ])],Ec);let hl=Dd=class extends Md{constructor(T){super(),this.service=T}};hl.\u0275fac=function(T){return new(T||hl)(e.Y36(Me.oQ))},hl.\u0275dir=e.lG2({type:hl,selectors:[["","kendoColorPickerLocalizedMessages",""],["","kendoColorGradientLocalizedMessages",""],["","kendoColorPaletteLocalizedMessages",""]],features:[e._Bn([{provide:Md,useExisting:(0,e.Gpc)(()=>Dd)}]),e.qOj]}),hl=Dd=p([r("design:paramtypes",[Me.oQ])],hl);let sa=(()=>{let j=class{constructor(D,pe){this.host=D,this.ngZone=pe}ngAfterContentInit(){this.focusOnNextTick()}focusOnNextTick(){this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.host.nativeElement.focus()))}};return j.\u0275fac=function(D){return new(D||j)(e.Y36(e.SBq),e.Y36(e.R0b))},j.\u0275dir=e.lG2({type:j,selectors:[["","kendoFocusOnDomReady",""]]}),j=p([r("design:paramtypes",[e.SBq,e.R0b])],j),j})(),td=(()=>{let j=class{constructor(D){this.localization=D}get passMessage(){return this.localization.get("passContrast")}get failMessage(){return this.localization.get("failContrast")}get contrastText(){return`${this.type}: ${this.ratio.toFixed(1)}`}};return j.\u0275fac=function(D){return new(D||j)(e.Y36(Me.oQ))},j.\u0275cmp=e.Xpm({type:j,selectors:[["","kendoContrastValidation",""]],inputs:{type:"type",ratio:"ratio",pass:"pass"},attrs:vr,decls:4,vars:3,consts:[["class","k-contrast-validation k-text-success",4,"ngIf"],["class","k-contrast-validation k-text-error",4,"ngIf"],[1,"k-contrast-validation","k-text-success"],[1,"k-icon","k-i-check"],[1,"k-contrast-validation","k-text-error"],[1,"k-icon","k-i-close"]],template:function(D,pe){1&D&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,Ss,3,1,"span",0),e.YNc(3,ds,3,1,"span",1)),2&D&&(e.xp6(1),e.Oqu(pe.contrastText),e.xp6(1),e.Q6J("ngIf",pe.pass),e.xp6(1),e.Q6J("ngIf",!pe.pass))},directives:[ut.O5],encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"type",void 0),p([(0,e.IIB)(),r("design:type",Number)],j.prototype,"ratio",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],j.prototype,"pass",void 0),j=p([r("design:paramtypes",[Me.oQ])],j),j})(),kc=(()=>{let j=class{constructor(D){this.localization=D,this.aaRatio=4.5,this.aaaRatio=7}get formatedRatio(){return this.contrastRatio.toFixed(2)}get contrastRatioMessage(){return this.localization.get("contrastRatio")}get satisfiesAACondition(){return this.contrastRatio>=this.aaRatio}get satisfiesAAACondition(){return this.contrastRatio>=this.aaaRatio}get contrastRatio(){return((j,T)=>((j,T)=>(Math.max(j,T)+.05)/(Math.min(j,T)+.05))(Sl(wd(j,T)),Sl(wd(T,{r:0,g:0,b:0,a:1}))))(ca(this.value),ca(this.ratio))}};return j.\u0275fac=function(D){return new(D||j)(e.Y36(Me.oQ))},j.\u0275cmp=e.Xpm({type:j,selectors:[["","kendoContrastTool",""]],inputs:{value:"value",ratio:"ratio"},attrs:Yr,decls:7,vars:8,consts:[[1,"k-contrast-ratio"],[1,"k-contrast-ratio-text"],["class","k-contrast-validation k-text-success",4,"ngIf"],["class","k-contrast-validation k-text-error",4,"ngIf"],["kendoContrastValidation","","type","AA",3,"ratio","pass"],["kendoContrastValidation","","type","AAA",3,"ratio","pass"],[1,"k-contrast-validation","k-text-success"],[1,"k-icon","k-i-check"],["class","k-icon k-i-check",4,"ngIf"],[1,"k-contrast-validation","k-text-error"],[1,"k-icon","k-i-close"]],template:function(D,pe){1&D&&(e.TgZ(0,"div",0),e.TgZ(1,"span",1),e._uU(2),e.qZA(),e.YNc(3,Tr,3,1,"span",2),e.YNc(4,Lr,2,0,"span",3),e.qZA(),e._UZ(5,"div",4),e._UZ(6,"div",5)),2&D&&(e.xp6(2),e.AsE("",pe.contrastRatioMessage,": ",pe.formatedRatio,""),e.xp6(1),e.Q6J("ngIf",pe.satisfiesAACondition),e.xp6(1),e.Q6J("ngIf",!pe.satisfiesAACondition),e.xp6(1),e.Q6J("ratio",pe.aaaRatio)("pass",pe.satisfiesAACondition),e.xp6(1),e.Q6J("ratio",pe.aaaRatio)("pass",pe.satisfiesAAACondition))},directives:[ut.O5,td],encapsulation:2}),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"value",void 0),p([(0,e.IIB)(),r("design:type",String)],j.prototype,"ratio",void 0),j=p([r("design:paramtypes",[Me.oQ])],j),j})(),iu=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[Oa,Qe,ut.ez,Mt.Zj,ke.QY]]}),j})(),ph=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez]]}),j})(),lc=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez]]}),j})(),ep=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez]]}),j})(),Ql=(()=>{let j=class{};return j.\u0275fac=function(D){return new(D||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[ut.ez],oc,Gl,Oa,Ol,Oe,Qe,pt,iu,ph,lc,ep]}),j})()},5422:(St,oe,S)=>{"use strict";function p(ft,mt,Re,zt){var xn,Kt=arguments.length,hn=Kt<3?mt:null===zt?zt=Object.getOwnPropertyDescriptor(mt,Re):zt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)hn=Reflect.decorate(ft,mt,Re,zt);else for(var Mn=ft.length-1;Mn>=0;Mn--)(xn=ft[Mn])&&(hn=(Kt<3?xn(hn):Kt>3?xn(mt,Re,hn):xn(mt,Re))||hn);return Kt>3&&hn&&Object.defineProperty(mt,Re,hn),hn}function K(ft,mt){return function(Re,zt){mt(Re,zt,ft)}}function r(ft,mt){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ft,mt)}S.d(oe,{o0:()=>$t,aJ:()=>Wt});var e=S(5e3),z=S(3710),je=S(9346);const rt={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635938345,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},it="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",ct={NoCurrency:`Solution: ${it}#toc-no-currency`,NoCurrencyDisplay:`Solution: ${it}#toc-no-currency-display`,NoCurrencyRegion:`Solution: ${it}#toc-no-currency-region`,NoDateFieldNames:`Solution: ${it}#toc-no-date-filed-names`,NoFirstDay:`Solution: ${it}#toc-no-first-day`,NoGMTInfo:`Solution: ${it}#toc-no-gmt-info`,NoLocale:`Solution: ${it}#toc-no-locale`,NoValidCurrency:`Solution: ${it}#toc-no-valid-currency`,NoWeekData:`Solution: ${it}#toc-no-week-data`};function qe(ft){return function(...mt){try{return ft.apply(null,mt)}catch(Re){throw Re.message=function(ft){const mt=ft.message,Re=ct[Object.keys(ct).filter(zt=>0===mt.indexOf(zt))[0]];return Re?`${mt} ${Re}`:mt}(Re),Re}}}const Ve=qe(je.Jp),He=qe(je.F3),X=qe(je.LG),Le=qe(je.WU),Te=qe(je.p6),Ze=qe(je.uf),Ne=(qe(je.zD),qe(je.$U)),Me=qe(je.sG),ke=qe(je.p3),G=qe(je.y0),ot=qe(je.BB),We=qe(je.Ak),At=/_/g;function Jt(ft){return new Sn(ft)}let Wt=class{constructor(){this.changes=new e.vpe,(0,z.s)(rt)}notify(){this.changes.emit()}};Wt.\u0275fac=function(mt){return new(mt||Wt)},Wt.\u0275prov=e.Yz7({token:Wt,factory:function(mt){let Re=null;return Re=mt?new mt:Jt(e.LFG(e.soG)),Re},providedIn:"root"}),Wt.ngInjectableDef=(0,e.Yz7)({factory:function(){return Jt((0,e.LFG)(e.soG))},token:Wt,providedIn:"root"}),Wt=p([r("design:paramtypes",[])],Wt);let Sn=(()=>{let ft=class extends Wt{constructor(Re){super(),this.localeId=Re}get localeId(){return this.locale}set localeId(Re){const zt=Re.replace(At,"-");zt!==this.locale&&(this.locale=zt,this.notify())}format(Re,...zt){return Le(Re,zt,this.localeId)}toString(Re,zt,Kt){return ot(Re,zt,Kt||this.localeId)}formatDate(Re,zt,Kt){return Te(Re,zt,Kt||this.localeId)}parseDate(Re,zt,Kt){return Me(Re,zt,Kt||this.localeId)}parseNumber(Re,zt,Kt){return ke(Re,Kt||this.localeId,zt)}formatNumber(Re,zt,Kt){return Ze(Re,zt,Kt||this.localeId)}dateFieldName(Re,zt){return He(Re,zt||this.localeId)}dateFormatNames(Re,zt){return Ve(zt||this.localeId,Re)}splitDateFormat(Re,zt){return G(Re,zt||this.localeId)}numberSymbols(Re){return Ne(Re||this.localeId)}firstDay(Re){return X(Re||this.localeId)}weekendRange(Re){return We(Re||this.localeId)}};return ft.\u0275fac=function(Re){return new(Re||ft)(e.LFG(e.soG))},ft.\u0275prov=e.Yz7({token:ft,factory:function(mt){return ft.\u0275fac(mt)}}),ft=p([K(0,(0,e.tBr)(e.soG)),r("design:paramtypes",[String])],ft),ft})(),$t=(()=>{let ft=class{};return ft.\u0275fac=function(Re){return new(Re||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({}),ft})()},9352:(St,oe,S)=>{"use strict";function K(X,Le){return function(Te,Ze){Le(Te,Ze,X)}}function r(X,Le){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(X,Le)}S.d(oe,{Z1:()=>g,mM:()=>Ve,oQ:()=>He,ez:()=>ct,lw:()=>qe});var e=S(5e3),z=S(1135),je=S(5684),rt=S(4004),it=S(8505);let ct=(()=>{let X=class{constructor(){this.changes=new z.X({rtl:void 0})}notify(Te){this.changes.next({rtl:Te})}get(Te){}};return X.\u0275fac=function(Te){return new(Te||X)},X.\u0275prov=e.Yz7({token:X,factory:function(Le){return X.\u0275fac(Le)}}),X})(),g=(()=>{class X{get override(){return!1}ngOnChanges(Te){this.register(Te),Object.keys(Te).some(Ze=>!Te[Ze].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe((0,je.T)(1)).subscribe(()=>this.register(this))}register(Te){Object.keys(Te).forEach(he=>this.service.register(he,this[he],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return X.\u0275fac=function(Te){return new(Te||X)},X.\u0275dir=e.lG2({type:X,features:[e.TTD]}),X})();const qe=new e.OlP("Kendo UI Right-to-Left token"),Ve=new e.OlP("Localization key prefix");let He=(()=>{let X=class{constructor(Te,Ze,he){this.prefix=Te,this.messageService=Ze,this._rtl=he,this.changes=new z.X({rtl:this._rtl}),this.dictionary={},Ze&&(this.subscription=Ze.changes.pipe((0,rt.U)(({rtl:Ne})=>void 0!==Ne?Ne:this._rtl),(0,it.b)(Ne=>this._rtl=Ne)).subscribe(Ne=>{this.dictionary={},this.changes.next({rtl:Ne})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(Te){const Ze=this.key(Te);return this.dictionary[Ze]}register(Te,Ze,he=!1){const Ne=this.key(Te);let Me=Ze;if(!he){if(this.dictionary.hasOwnProperty(Ne))return;Me=this.defaultValue(Ne,Ze)}this.dictionary[Ne]=Me}notifyChanges(){this.changes.next({rtl:this.rtl})}key(Te){return this.prefix+"."+Te}defaultValue(Te,Ze){if(!this.messageService)return Ze;const he=this.messageService.get(Te);return void 0===he?Ze:he}};return X.\u0275fac=function(Te){return new(Te||X)(e.LFG(Ve),e.LFG(ct,8),e.LFG(qe,8))},X.\u0275prov=e.Yz7({token:X,factory:function(Le){return X.\u0275fac(Le)}}),X=function(X,Le,Te,Ze){var Me,he=arguments.length,Ne=he<3?Le:null===Ze?Ze=Object.getOwnPropertyDescriptor(Le,Te):Ze;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ne=Reflect.decorate(X,Le,Te,Ze);else for(var ke=X.length-1;ke>=0;ke--)(Me=X[ke])&&(Ne=(he<3?Me(Ne):he>3?Me(Le,Te,Ne):Me(Le,Te))||Ne);return he>3&&Ne&&Object.defineProperty(Le,Te,Ne),Ne}([K(0,(0,e.tBr)(Ve)),K(1,(0,e.FiY)()),K(2,(0,e.FiY)()),K(2,(0,e.tBr)(qe)),r("design:paramtypes",[String,ct,Boolean])],X),X})()},4743:(St,oe,S)=>{"use strict";function p(Be,Dt,xt,Yt){var ai,en=arguments.length,Cn=en<3?Dt:null===Yt?Yt=Object.getOwnPropertyDescriptor(Dt,xt):Yt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Cn=Reflect.decorate(Be,Dt,xt,Yt);else for(var ii=Be.length-1;ii>=0;ii--)(ai=Be[ii])&&(Cn=(en<3?ai(Cn):en>3?ai(Dt,xt,Cn):ai(Dt,xt))||Cn);return en>3&&Cn&&Object.defineProperty(Dt,xt,Cn),Cn}function K(Be,Dt){return function(xt,Yt){Dt(xt,Yt,Be)}}function r(Be,Dt){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Be,Dt)}S.d(oe,{Zj:()=>cn,qL:()=>de});var e=S(5e3);function ct(Be){return Be.ownerDocument||Be.document||Be}const qe=Be=>ct(Be).defaultView,He=Be=>ct(Be).documentElement;let X=0;function Te(Be){const Dt=qe(Be),xt=He(Be),Yt={height:Dt.innerHeight,width:Dt.innerWidth};return xt.scrollHeight-xt.clientHeight>0&&(Yt.width-=function(){if(!X&&"undefined"!=typeof document){const Be=document.createElement("div");Be.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",Be.innerHTML=" ",document.body.appendChild(Be),X=Be.offsetWidth-Be.scrollWidth,document.body.removeChild(Be)}return X}()),Yt}const ke=Be=>{let Dt=Be.getBoundingClientRect(),{left:xt,top:Yt}=Dt;return!Dt.height&&!Dt.width&&(Dt=(Be=>{const{display:Dt,left:xt,position:Yt}=Be.style;Be.style.display="",Be.style.left="-10000px",Be.style.position="absolute";const en=Be.getBoundingClientRect();return Be.style.display=Dt,Be.style.left=xt,Be.style.position=Yt,en})(Be)),{top:Yt,left:xt,height:Dt.height,width:Dt.width}},G=(Be,Dt)=>{const xt=[];let Yt=Be.parentNode;for(;Yt&&(xt.push(Yt),Yt!==Dt);)Yt=Yt.parentNode;return xt};function ot(Be){const Dt=He(Be),xt=qe(Be);return{x:xt.pageXOffset||Dt.scrollLeft||0,y:xt.pageYOffset||Dt.scrollTop||0}}const We=Be=>Be===(Be.ownerDocument||{}).body?ot(Be):{x:Be.scrollLeft,y:Be.scrollTop},Mt=Be=>{let Dt=Be.offsetParent;for(;Dt&&"static"===Dt.style.position;)Dt=Dt.offsetParent;return Dt||He(Be)},ye=(Be,Dt,xt=1)=>{const Yt=Dt?Mt(Dt):null,{top:en,left:Cn,height:ai,width:ii}=((Be,Dt)=>{const xt=qe(Be),Yt=xt.getComputedStyle(Be),en=ke(Be),Cn=Dt||Mt(Be),ai=Be.ownerDocument;let ki={top:0,left:0};if("fixed"!==Yt.position&&Cn!==ai.body&&Cn!==ai.documentElement){const Ci=xt.getComputedStyle(Cn);ki=ke(Cn),ki.top+=parseInt(Ci.borderTopWidth,10),ki.left+=parseInt(Ci.borderLeftWidth,10)}return{top:en.top-ki.top,left:en.left-ki.left,height:en.height,width:en.width}})(Be,Yt),{x:ki,y:Ci}=((Be,Dt)=>Be?We(Be):function(Be){const Dt=Mt(Be);return Dt?We(Dt):{x:0,y:0}}(Dt))(Yt,Be),Yi=Be.ownerDocument,os=Yt===Yi.body||Yt===Yi.documentElement?1:xt;return{top:en+Ci*os,left:Cn+ki*os,height:ai,width:ii}};const gt=function(Be,Dt,xt){let Yt=0;return Be+Dt>xt&&(Yt=xt-(Be+Dt)),Be<0&&(Yt=-Be),Yt},Nt=function({offset:Be,size:Dt,anchorSize:xt,viewPortSize:Yt,anchorAlignPoint:en,elementAlignPoint:Cn,margin:ai}){let ii=0;const Yi=2*ai;if(Cn!==en&&"center"!==Cn&&"middle"!==Cn&&"center"!==en&&"middle"!==en){const os="top"===en||"left"===en;Be<0&&os?(ii=Dt+xt+Yi,Be+ii+Dt>Yt&&(ii=0)):Be>=0&&!os&&(Be+Dt>Yt&&(ii+=-(xt+Dt+Yi)),Be+ii<0&&(ii=0))}return ii},mt=Be=>{const Dt=[];let xt=Be.parentNode.firstElementChild;for(;xt;)xt!==Be&&Dt.push(xt),xt=xt.nextElementSibling;return Dt};var Vs=S(3911),js=S(4968),vs=S(6451),mr=S(8996),vi=S(3601),Hi=S(1777),Ms=S(3710),ur=S(9808);const pr=["container"];function Ps(Be,Dt){}const Sr=["*"],Ns=(Be,Dt)=>Be||{height:0,left:Dt.left,top:Dt.top,width:0},Ri=()=>"undefined"!=typeof window,Pr=/auto|scroll/,wn=Be=>(Be=>`${Be.style.overflow}${Be.style.overflowX}${Be.style.overflowY}`)(Be)||(Be=>{const Dt=window.getComputedStyle(Be);return`${Dt.overflow}${Dt.overflowX}${Dt.overflowY}`})(Be),_i=1e3/60,Qi=function(Be){let Dt,xt=!1;return(...Yt)=>(xt||(Dt=(()=>{if(!(0,Vs.X_)()&&null!==document.body)return!1;const Dt=document.createElement("div");Dt.style.transform="matrix(10, 0, 0, 10, 0, 0)",Dt.innerHTML='
child
',document.body.appendChild(Dt);const xt=10!==Dt.children[0].getBoundingClientRect().top;return document.body.removeChild(Dt),xt})(...Yt),xt=!0),Dt)}(),vr=(Be,Dt)=>Be&&1!==Dt?{height:Be.height/Dt,left:Be.left/Dt,top:Be.top/Dt,width:Be.width/Dt}:Be,Ss=["font-size","font-family","font-stretch","font-style","font-weight","line-height"];let ds=(()=>{let Be=class{addOffset(xt,Yt){return{left:xt.left+Yt.left,top:xt.top+Yt.top}}addScroll(xt,Yt){return function(Be,Dt){return{top:Be.top+Dt.y,left:Be.left+Dt.x,height:Be.height,width:Be.width}}(xt,Yt)}align(xt){return(Be=>{const{anchorRect:Dt,anchorAlign:xt,elementRect:Yt,elementAlign:en,margin:Cn={}}=Be,ai=xt.horizontal,ii=xt.vertical,ki=en.horizontal,Ci=en.vertical;let Yi=Cn.horizontal||0,os=Cn.vertical||0,ws=Dt.top,Es=Dt.left;return"bottom"===ii&&(ws+=Dt.height),("center"===ii||"middle"===ii)&&(ws+=Math.round(Dt.height/2)),"bottom"===Ci&&(ws-=Yt.height,os*=-1),("center"===Ci||"middle"===Ci)&&(ws-=Math.round(Yt.height/2),os*=-1),"right"===ai&&(Es+=Dt.width),("center"===ai||"middle"===ai)&&(Es+=Math.round(Dt.width/2)),"right"===ki&&(Es-=Yt.width,Yi*=-1),("center"===ki||"middle"===ki)&&(Es-=Math.round(Yt.width/2),Yi*=-1),{top:ws+os,left:Es+Yi}})(xt)}boundingOffset(xt){return(Be=>{if(!Be.getBoundingClientRect){const Cn=Te(Be);return{bottom:Cn.height,left:0,right:Cn.width,top:0}}const{bottom:Dt,left:xt,right:Yt,top:en}=Be.getBoundingClientRect();return{bottom:Dt,left:xt,right:Yt,top:en}})(this.nativeElement(xt))}getFontStyles(xt){const Yt=this.getWindow();if(!Yt||!xt)return[];const en=Yt.getComputedStyle(this.nativeElement(xt));return Ss.map(Cn=>({key:Cn,value:en[Cn]}))}getWindow(){return Ri()?window:null}hasOffsetParent(xt){return!!xt&&!!this.nativeElement(xt).offsetParent}offset(xt){return xt?ke(this.nativeElement(xt)):null}offsetAtPoint(xt,Yt){if(!xt)return null;const en=this.nativeElement(xt),{left:Cn,top:ai,transition:ii}=en.style;en.style.transition="none",en.style.left=`${Yt.left}px`,en.style.top=`${Yt.top}px`;const ki=ke(en);return en.style.left=Cn,en.style.top=ai,en.style.transition=ii,ki}nativeElement(xt){return xt?xt.nativeElement||xt:null}position(xt,Yt,en=1){return xt&&Yt?ye(this.nativeElement(xt),this.nativeElement(Yt),en):null}removeScroll(xt,Yt){return function(Be,Dt){return{top:Be.top-Dt.y,left:Be.left-Dt.x,height:Be.height,width:Be.width}}(xt,Yt)}restrictToView(xt){return(Be=>{const{anchorRect:Dt,anchorAlign:xt,elementRect:Yt,elementAlign:en,collisions:Cn,viewPort:ai,margin:ii={}}=Be,{top:ki,left:Ci,height:Yi,width:os}=Yt,{height:ws,width:Es}=ai,ir=ii.horizontal||0,hr=ii.vertical||0;let Hr=0,qr=0;const $s="fit"===Cn.vertical,Ds="fit"===Cn.horizontal,So="flip"===Cn.vertical,yr="flip"===Cn.horizontal;$s&&(qr+=gt(ki,Yi,ws)),Ds&&(Hr+=gt(Ci,os,Es)),So&&(qr+=Nt({margin:hr,offset:ki,size:Yi,anchorSize:Dt.height,viewPortSize:ws,anchorAlignPoint:xt.vertical,elementAlignPoint:en.vertical})),yr&&(Hr+=Nt({margin:ir,offset:Ci,size:os,anchorSize:Dt.width,viewPortSize:Es,anchorAlignPoint:xt.horizontal,elementAlignPoint:en.horizontal}));const Wo=So&&0!==qr,aa=yr&&0!==Hr,Ye=$s&&0!==qr,Et=Ds&&0!==Hr;return{flipped:aa||Wo,fitted:Ye||Et,flip:{horizontal:aa,vertical:Wo},fit:{horizontal:Et,vertical:Ye},offset:{left:Hr,top:qr}}})(xt)}scrollPosition(xt){return ot(this.nativeElement(xt))}scrollableParents(xt){return(Be=>{const Dt=[];if(!(0,Vs.X_)()||!Ri())return Dt;let xt=Be.parentElement;for(;xt;)(Pr.test(wn(xt))||xt.hasAttribute("data-scrollable"))&&Dt.push(xt),xt=xt.parentElement;return Dt.push(window),Dt})(this.nativeElement(xt))}stackingElementOffset(xt){const Yt=this.getRelativeContextElement(xt);return Yt?ke(Yt):null}stackingElementScroll(xt){const Yt=this.getRelativeContextElement(xt);return Yt?{x:Yt.scrollLeft,y:Yt.scrollTop}:{x:0,y:0}}getRelativeContextElement(xt){if(!xt||!Qi())return null;let Yt=this.nativeElement(xt).parentElement;for(;Yt;){if("none"!==window.getComputedStyle(Yt).transform)return Yt;Yt=Yt.parentElement}return null}useRelativePosition(xt){return!!this.getRelativeContextElement(xt)}windowViewPort(xt){return Te(this.nativeElement(xt))}zIndex(xt,Yt){return((Be,Dt)=>{if(!Be||!(0,Vs.X_)()||!Ri())return null;const xt=((Be,Dt)=>{const xt=G(Be);let en,Cn,Yt=Dt;for(;Yt&&(en=mt(Yt),Cn=xt.reduce((ai,ii)=>ai.concat(en.filter(ki=>ki===ii)),[])[0],!Cn);)Yt=Yt.parentElement;return Cn})(Be,Dt);if(!xt)return null;const Yt=[Be].concat(G(Be,xt)).reduce((en,Cn)=>{const ai=Cn.style.zIndex||window.getComputedStyle(Cn).zIndex,ii=parseInt(ai,10);return ii>en?ii:en},0);return Yt?Yt+1:null})(this.nativeElement(xt),this.nativeElement(Yt))}zoomLevel(){return(0,Vs.X_)()&&Ri()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}isZoomed(){return this.zoomLevel()>1}};return Be.\u0275fac=function(xt){return new(xt||Be)},Be.\u0275prov=e.Yz7({token:Be,factory:function(Dt){return Be.\u0275fac(Dt)}}),Be})();const Yr=new e.OlP("Popup Document Scale");let Fr=(()=>{let Be=class{constructor(xt,Yt=1){this._dom=xt,this.scale=Yt}alignElement(xt){const{anchor:Yt,element:en,anchorAlign:Cn,elementAlign:ai,margin:ii,offset:ki,positionMode:Ci}=xt,Yi=this.scale||1,ws="fixed"!==Ci&&this._dom.hasOffsetParent(en)?this.relativeRect(Yt,en,ki,Yi):this.absoluteRect(Yt,en,ki,Yi),Es=vr(this._dom.offset(en),Yi);return this._dom.align({anchorAlign:Cn,anchorRect:ws,elementAlign:ai,elementRect:Es,margin:ii})}absoluteRect(xt,Yt,en,Cn){const ai=this.elementScrollPosition(xt,Yt),ii=Ns(this._dom.offset(xt),en),ki=2*Cn,Ci=this._dom.stackingElementScroll(Yt);1!==Cn&&Ci&&(Ci.x/=ki,Ci.y/=ki);const Yi=this._dom.stackingElementOffset(Yt);return 1!==Cn&&Yi&&(Yi.left/=ki,Yi.top/=ki),this._dom.removeScroll(this._dom.addScroll(((Be,Dt)=>Dt?{height:Be.height,left:Be.left-Dt.left,top:Be.top-Dt.top,width:Be.width}:Be)(vr(ii,Cn),Yi),Ci),ai)}elementScrollPosition(xt,Yt){return xt?{x:0,y:0}:this._dom.scrollPosition(Yt)}relativeRect(xt,Yt,en,Cn){const ai=Ns(this._dom.position(xt,Yt,Cn),en);return vr(ai,Cn)}};return Be.\u0275fac=function(xt){return new(xt||Be)(e.LFG(ds),e.LFG(Yr,8))},Be.\u0275prov=e.Yz7({token:Be,factory:function(Dt){return Be.\u0275fac(Dt)}}),Be=p([K(1,(0,e.tBr)(Yr)),K(1,(0,e.FiY)()),r("design:paramtypes",[ds,Number])],Be),Be})(),Tr=(()=>{let Be=class{constructor(xt,Yt=1){this._dom=xt,this.scale=Yt}positionElement(xt){const{anchor:Yt,currentLocation:en,element:Cn,anchorAlign:ai,elementAlign:ii,collisions:ki,margin:Ci}=xt,Yi=this._dom,os=this.scale||1,ws=Yi.offsetAtPoint(Cn,en),Es=vr(ws,os),ir=vr(Yi.offset(Yt),os),hr=Ns(ir,en),Hr=xt.viewPort||Yi.windowViewPort(Cn);Hr.width=Hr.width/os,Hr.height=Hr.height/os;const qr=Yi.restrictToView({anchorAlign:ai,anchorRect:hr,collisions:ki,elementAlign:ii,elementRect:Es,margin:Ci,viewPort:Hr}),$s=Yi.addOffset(en,qr.offset);return{flip:qr.flip,flipped:qr.flipped,offset:$s}}};return Be.\u0275fac=function(xt){return new(xt||Be)(e.LFG(ds),e.LFG(Yr,8))},Be.\u0275prov=e.Yz7({token:Be,factory:function(Dt){return Be.\u0275fac(Dt)}}),Be=p([K(1,(0,e.tBr)(Yr)),K(1,(0,e.FiY)()),r("design:paramtypes",[ds,Number])],Be),Be})(),Lr=(()=>{let Be=class{constructor(xt,Yt){this._dom=xt,this._zone=Yt}subscribe(xt){!(0,Vs.X_)()||this._zone.runOutsideAngular(()=>{this.subscription=(0,js.R)(this._dom.getWindow(),"resize").pipe((0,vi.e)(_i)).subscribe(()=>xt())})}unsubscribe(){!this.subscription||this.subscription.unsubscribe()}isUnsubscribed(){return this.subscription&&this.subscription.closed}};return Be.\u0275fac=function(xt){return new(xt||Be)(e.LFG(ds),e.LFG(e.R0b))},Be.\u0275prov=e.Yz7({token:Be,factory:function(Dt){return Be.\u0275fac(Dt)}}),Be=p([r("design:paramtypes",[ds,e.R0b])],Be),Be})(),No=(()=>{let Be=class{constructor(xt,Yt){this._dom=xt,this._zone=Yt}forElement(xt){return this.unsubscribe(),this.element=xt,this}subscribe(xt){if(!xt||!(0,Vs.X_)()||!this.element)return;const Yt=this._dom.nativeElement(this.element),en=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(()=>{const Cn=en.map(ii=>(0,js.R)(ii,"scroll").pipe((0,vi.e)(_i)));this.subscription=(0,vs.T)(...Cn).subscribe(ii=>{const ki=ii.target;(en.filter(ws=>ws===ki).length>0||ki===document||ki===window)&&xt(this.isVisible(Yt,ki))})})}unsubscribe(){!this.subscription||this.subscription.unsubscribe()}isVisible(xt,Yt){const en=this._dom.boundingOffset(xt),Cn=this._dom.boundingOffset(Yt);return!(1{const Dt="up"===Be||Be===$i?"scaleY":"scaleX";let en;return en=Be===$i?"top":Be===Rr?Xs:Be===Xs?Rr:"bottom",{start:{transform:`${Dt}(0)`,transformOrigin:en},end:{transform:`${Dt}(1)`}}},slide:Be=>{const Dt=Be===Rr||Be===Xs?"translateX":"translateY";return{start:{transform:`${Dt}(${Be===Xs||Be===$i?-100:100}%)`},end:{transform:`${Dt}(0%)`}}},fade:()=>({start:{opacity:0},end:{opacity:1}}),zoom:()=>({start:{transform:"scale(0)"},end:{transform:"scale(1)"}})};let so=(()=>{let Be=class{constructor(xt){this.animationBuilder=xt,this.start=new e.vpe,this.end=new e.vpe}play(xt,Yt,en){if(!this.flip||this.flip.horizontal!==en.horizontal||this.flip.vertical!==en.vertical){this.flip=en;const Cn=Yt.type||"slide",ai=Io[Cn];if(ai){const ki=ai(this.getDirection(en,Yt));this.playStates(xt,ki,Yt)}else if((0,e.X6Q)())throw new Error(`Unsupported animation type: "${Cn}". The supported types are slide, expand, fade and zoom.`)}}ngOnDestroy(){this.stopPlayer()}playStates(xt,Yt,en){this.stopPlayer();const Cn=en.duration||100,ai=this.animationBuilder.build([(0,Hi.oB)(Yt.start),(0,Hi.jt)(`${Cn}ms ease-in`,(0,Hi.oB)(Yt.end))]),ii=this.player=ai.create(xt);ii.onDone(()=>{this.end.emit(),this.stopPlayer()}),this.start.emit(),ii.play()}getDirection(xt,Yt){let en=Yt.direction||$i;return xt.horizontal&&(en===Rr?en=Xs:en===Xs&&(en=Rr)),xt.vertical&&(en===$i?en="up":"up"===en&&(en=$i)),en}stopPlayer(){this.player&&(this.player.destroy(),this.player=null)}};return Be.\u0275fac=function(xt){return new(xt||Be)(e.LFG(Hi._j))},Be.\u0275prov=e.Yz7({token:Be,factory:function(Dt){return Be.\u0275fac(Dt)}}),Be=p([r("design:paramtypes",[Hi._j])],Be),Be})();const ao={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1641276691,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},vo={left:-1e4,top:0};let Zr=(()=>{let Be=class{constructor(xt,Yt,en,Cn,ai,ii,ki,Ci,Yi){this.container=xt,this._alignService=Yt,this.domService=en,this._positionService=Cn,this._resizeService=ai,this._scrollableService=ii,this.animationService=ki,this._renderer=Ci,this._zone=Yi,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=vo,this.anchorViewportLeave=new e.vpe,this.close=new e.vpe,this.open=new e.vpe,this.positionChange=new e.vpe,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,(0,Ms.s)(ao),this._renderer.addClass(xt.nativeElement,"k-animation-container"),this.updateFixedClass()}ngOnInit(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=vo,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()}ngOnChanges(xt){xt.copyAnchorStyles&&this.copyFontStyles(),xt.positionMode&&this.updateFixedClass()}ngAfterViewInit(){this.animate||this.resolvedPromise.then(()=>{this.onAnimationEnd()})}ngAfterViewChecked(){this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(()=>{this.unsubscribeReposition(),this.repositionSubscription=(0,mr.D)(this.resolvedPromise).subscribe(this.reposition)})}ngOnDestroy(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()}onResize(){this.reposition()}onAnimationStart(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")}onAnimationEnd(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()}get currentOffset(){return this._currentOffset}set currentOffset(xt){this.setContainerStyle("left",`${xt.left}px`),this.setContainerStyle("top",`${xt.top}px`),this._currentOffset=xt}setZIndex(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))}reposition(){if(!(0,Vs.X_)())return;const{flip:xt,offset:Yt}=this.position();(!this.currentOffset||((Be,Dt)=>{const{left:xt,top:Yt}=Be,{left:en,top:Cn}=Dt;return Math.abs(xt-en)>=1||Math.abs(Yt-Cn)>=1})(this.currentOffset,Yt))&&(this.currentOffset=Yt,(0,Vs.g$)(this.positionChange)&&this._zone.run(()=>this.positionChange.emit({offset:Yt,flip:xt}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,xt),this.resizeSensor.acceptSize()}position(){const xt=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:xt,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}onScroll(xt){const Yt=(0,Vs.g$)(this.anchorViewportLeave);xt||!Yt?this.reposition():Yt&&this._zone.run(()=>{this.anchorViewportLeave.emit()})}copyFontStyles(){!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.anchor).forEach(xt=>this.setContainerStyle(xt.key,xt.value))}updateFixedClass(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}setContainerStyle(xt,Yt){this._renderer.setStyle(this.container.nativeElement,xt,Yt)}unsubscribeReposition(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}};return Be.\u0275fac=function(xt){return new(xt||Be)(e.Y36(e.SBq),e.Y36(Fr),e.Y36(ds),e.Y36(Tr),e.Y36(Lr),e.Y36(No),e.Y36(so),e.Y36(e.Qsj),e.Y36(e.R0b))},Be.\u0275cmp=e.Xpm({type:Be,selectors:[["kendo-popup"]],viewQuery:function(xt,Yt){if(1&xt&&(e.Gf(pr,7),e.Gf(Vs.NG,7)),2&xt){let en;e.iGM(en=e.CRH())&&(Yt.contentContainer=en.first),e.iGM(en=e.CRH())&&(Yt.resizeSensor=en.first)}},inputs:{animate:"animate",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",positionMode:"positionMode",offset:"offset",anchor:"anchor",popupClass:"popupClass",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[e._Bn([Fr,so,ds,Tr,Lr,No]),e.TTD],ngContentSelectors:Sr,decls:5,vars:4,consts:[[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(xt,Yt){1&xt&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.YNc(3,Ps,0,0,"ng-template",2),e.TgZ(4,"kendo-resize-sensor",3),e.NdJ("resize",function(){return Yt.onResize()}),e.qZA(),e.qZA()),2&xt&&(e.Q6J("ngClass",Yt.popupClass),e.xp6(3),e.Q6J("ngTemplateOutlet",Yt.content)("ngIf",Yt.content),e.xp6(1),e.Q6J("rateLimit",100))},directives:[ur.mk,ur.tP,ur.O5,Vs.NG],encapsulation:2}),p([(0,e.IIB)(),r("design:type",Object)],Be.prototype,"animate",void 0),p([(0,e.IIB)(),r("design:type",e.SBq)],Be.prototype,"anchor",void 0),p([(0,e.IIB)(),r("design:type",Object)],Be.prototype,"anchorAlign",void 0),p([(0,e.IIB)(),r("design:type",Object)],Be.prototype,"collision",void 0),p([(0,e.IIB)(),r("design:type",Object)],Be.prototype,"popupAlign",void 0),p([(0,e.IIB)(),r("design:type",Boolean)],Be.prototype,"copyAnchorStyles",void 0),p([(0,e.IIB)(),r("design:type",Object)],Be.prototype,"popupClass",void 0),p([(0,e.IIB)(),r("design:type",String)],Be.prototype,"positionMode",void 0),p([(0,e.IIB)(),r("design:type",Object)],Be.prototype,"offset",void 0),p([(0,e.IIB)(),r("design:type",Object)],Be.prototype,"margin",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Be.prototype,"anchorViewportLeave",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Be.prototype,"close",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Be.prototype,"open",void 0),p([(0,e.r_U)(),r("design:type",e.vpe)],Be.prototype,"positionChange",void 0),p([(0,e.i9L)("container",{static:!0}),r("design:type",e.SBq)],Be.prototype,"contentContainer",void 0),p([(0,e.i9L)(Vs.NG,{static:!0}),r("design:type",Vs.NG)],Be.prototype,"resizeSensor",void 0),Be=p([r("design:paramtypes",[e.SBq,Fr,ds,Tr,Lr,No,so,e.Qsj,e.R0b])],Be),Be})();const ln=new e.OlP("Popup Container");let de=(()=>{let Be=class{constructor(xt,Yt,en,Cn){this.applicationRef=xt,this.componentFactoryResolver=Yt,this.injector=en,this.container=Cn}get rootViewContainer(){const xt=this.applicationRef.components||[];if(xt[0])return xt[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")}get rootViewContainerNode(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}open(xt={}){const{component:Yt,nodes:en}=this.contentFrom(xt.content),Cn=this.appendPopup(en,xt.appendTo),ai=Cn.instance;this.projectComponentInputs(Cn,xt),Cn.changeDetectorRef.detectChanges(),Yt&&Yt.changeDetectorRef.detectChanges();const ii=this.getComponentRootNode(Cn);return{close:()=>{Yt&&Yt.destroy(),Cn.destroy(),(Be=>{Be&&Be.parentNode&&Be.parentNode.removeChild(Be)})(ii)},content:Yt,popup:Cn,popupAnchorViewportLeave:ai.anchorViewportLeave,popupClose:ai.close,popupElement:ii,popupOpen:ai.open,popupPositionChange:ai.positionChange}}appendPopup(xt,Yt){const en=this.createComponent(Zr,xt,Yt);return Yt||this.rootViewContainerNode.appendChild(this.getComponentRootNode(en)),en}getComponentRootNode(xt){return xt.location.nativeElement}getComponentFactory(xt){return this.componentFactoryResolver.resolveComponentFactory(xt)}createComponent(xt,Yt,en){const Cn=this.getComponentFactory(xt);if(en)return en.createComponent(Cn,void 0,this.injector,Yt);{const ai=Cn.create(this.injector,Yt);return this.applicationRef.attachView(ai.hostView),ai}}projectComponentInputs(xt,Yt){return Object.getOwnPropertyNames(Yt).filter(en=>"content"!==en||Yt.content instanceof e.Rgc).map(en=>{xt.instance[en]=Yt[en]}),xt}contentFrom(xt){if(!xt||xt instanceof e.Rgc)return{component:null,nodes:[[]]};const Yt=this.createComponent(xt);return{component:Yt,nodes:[Yt?[Yt.location.nativeElement]:[]]}}};return Be.\u0275fac=function(xt){return new(xt||Be)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3),e.LFG(ln,8))},Be.\u0275prov=e.Yz7({token:Be,factory:function(Dt){return Be.\u0275fac(Dt)}}),Be=p([K(3,(0,e.tBr)(ln)),K(3,(0,e.FiY)()),r("design:paramtypes",[e.z2F,e._Vd,e.zs3,e.SBq])],Be),Be})(),cn=(()=>{let Be=class{};return Be.\u0275fac=function(xt){return new(xt||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({providers:[de],imports:[[ur.ez,Vs.uv]]}),Be})()},9912:(St,oe,S)=>{"use strict";S.d(oe,{Xh:()=>H,r4:()=>O,oh:()=>r,Yn:()=>L,$w:()=>E,d:()=>U,IS:()=>ge,Pt:()=>le});const a=()=>"undefined"!=typeof window,C={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},N={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},ze={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},p={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},K=(fe,Ce,e)=>{for(let z in Ce)if(Ce.hasOwnProperty(z)&&Ce[z].test(fe))return z;return void 0!==e?e:fe},r=fe=>{let Ce,e=[];for(let z in C)if(C.hasOwnProperty(z)){if(e=fe.match(C[z]),!e)continue;if("windows"===z&&"plugins"in window.navigator)return null;const je={};return je.device=z,je.browser=K(fe,p,"default"),je.name=K(z,N),je[je.name]=!0,je.majorVersion=e[2],je.minorVersion=e[3]?e[3].replace("_","."):".0",Ce=je.minorVersion.replace(".","").substr(0,2),je.flatVersion=je.majorVersion+Ce+new Array(3-(Ce.length<3?Ce.length:2)).join("0"),je.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,je.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||je.cordova,je}return null},O=fe=>{let Ce=null,e=[];for(let z in ze)if(ze.hasOwnProperty(z)&&(e=fe.match(ze[z]),e)){Ce={},Ce[z]=!0,Ce[e[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,Ce.version=parseInt(document.documentMode||e[2],10);break}return Ce},P=a()&&window.navigator?window.navigator.userAgent:null,H=P?O(P):null,E=P?r(P):null,ee=a()&&"ontouchstart"in window,x=H&&!H.chrome&&window.MSPointerEvent,U=H&&!H.chrome&&window.PointerEvent,le=E&&(ee||x||U),xe=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function re(fe){const Ce=[];return fe.replace(xe,function(e,z,je,rt){Ce.push(void 0!==z?z:je||rt)}),Ce}const ce={};function L(fe){if(ce[fe])return ce[fe];const Ce=re(fe);return ce[fe]=function(e){let z=e;for(let je=0;jefe;const J={undefined:fe=>fe},we=(fe,Ce)=>Ce&&Ce.arrays&&!isNaN(Number(fe))?[]:{};function ge(fe){if(J[fe])return J[fe];const Ce=re(fe);return J[fe]=(e,z,je)=>{let rt=e;const it=Ce.length-1;for(let ct=0;ct{"use strict";S.d(oe,{Z:()=>a});class a{}},6211:(St,oe,S)=>{"use strict";S.d(oe,{Z:()=>C});const C={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}},1174:(St,oe,S)=>{"use strict";S.d(oe,{eX:()=>r,Jj:()=>O,kz:()=>H,wA:()=>E,ZP:()=>U});var a=S(1211),C=S(8131),N=S(6211);const ze=C.Z.browser;let p=le=>{const xe=Object.keys(N.Z);xe.push("transparent");const re=new RegExp("^("+xe.join("|")+")(\\W|$)","i");return p=ce=>re.exec(ce),re.exec(le)};class K extends a.Z{constructor(){super()}toHSV(){return this}toRGB(){return this}toHex(xe){return this.toBytes().toHex(xe)}toBytes(){return this}toCss(xe){return"#"+this.toHex(xe)}toCssRgba(){const xe=this.toBytes();return`rgba(${xe.r}, ${xe.g}, ${xe.b}, ${parseFloat(Number(this.a).toFixed(3))})`}toDisplay(){return ze.msie&&ze.version<9?this.toCss():this.toCssRgba()}equals(xe){return xe===this||null!==xe&&this.toCssRgba()===U(xe).toCssRgba()}diff(xe){if(null===xe)return NaN;const re=this.toBytes(),ce=xe.toBytes();return Math.sqrt(Math.pow(.3*(re.r-ce.r),2)+Math.pow(.59*(re.g-ce.g),2)+Math.pow(.11*(re.b-ce.b),2))}clone(){let xe=this.toBytes();return xe===this&&(xe=new O(xe.r,xe.g,xe.b,xe.a)),xe}}class r extends K{constructor(xe,re,ce,L){super(),this.r=xe,this.g=re,this.b=ce,this.a=L}toHSV(){const{r:xe,g:re,b:ce}=this,L=Math.min(xe,re,ce),J=Math.max(xe,re,ce),we=J-L,ge=J;let fe,Ce;return 0===we?new H(0,0,ge,this.a):(0!==J?(Ce=we/J,fe=xe===J?(re-ce)/we:re===J?2+(ce-xe)/we:4+(xe-re)/we,fe*=60,fe<0&&(fe+=360)):(Ce=0,fe=-1),new H(fe,Ce,ge,this.a))}toHSL(){const{r:xe,g:re,b:ce}=this,L=Math.max(xe,re,ce),J=Math.min(xe,re,ce);let we,ge,fe=(L+J)/2;if(L===J)we=ge=0;else{const Ce=L-J;switch(ge=fe>.5?Ce/(2-L-J):Ce/(L+J),L){case xe:we=(re-ce)/Ce+(rece.length;)ce=re+ce;return ce}class H extends K{constructor(xe,re,ce,L){super(),this.h=xe,this.s=re,this.v=ce,this.a=L}toRGB(){let L,J,we,{h:xe,s:re,v:ce}=this;if(0===re)L=J=we=ce;else{xe/=60;const ge=Math.floor(xe),fe=xe-ge,Ce=ce*(1-re),e=ce*(1-re*fe),z=ce*(1-re*(1-fe));switch(ge){case 0:L=ce,J=z,we=Ce;break;case 1:L=e,J=ce,we=Ce;break;case 2:L=Ce,J=ce,we=z;break;case 3:L=Ce,J=e,we=ce;break;case 4:L=z,J=Ce,we=ce;break;default:L=ce,J=Ce,we=e}}return new r(L,J,we,this.a)}toHSL(){return this.toRGB().toHSL()}toBytes(){return this.toRGB().toBytes()}}class E extends K{constructor(xe,re,ce,L){super(),this.h=xe,this.s=re,this.l=ce,this.a=L}toRGB(){let L,J,we,xe=this.h/360,re=this.s/100,ce=this.l/100;if(0===re)L=J=we=ce;else{const ge=ce<.5?ce*(1+re):ce+re-ce*re,fe=2*ce-ge;L=ee(fe,ge,xe+1/3),J=ee(fe,ge,xe),we=ee(fe,ge,xe-1/3)}return new r(L,J,we,this.a)}toHSV(){return this.toRGB().toHSV()}toBytes(){return this.toRGB().toBytes()}}function ee(le,xe,re){let ce=re;return ce<0&&(ce+=1),ce>1&&(ce-=1),ce<1/6?le+6*(xe-le)*ce:ce<.5?xe:ce<2/3?le+(xe-le)*(2/3-ce)*6:le}function x(le){return parseFloat(parseFloat(parseInt(le,16)/255).toFixed(3))}function U(le,xe){let re,ce;if(null==le||"none"===le)return null;if(le instanceof K)return le;let L=le.toLowerCase();if(re=p(L))return L="transparent"===re[1]?new r(1,1,1,0):U(N.Z[re[1]],xe),L.match=[re[1]],L;if((re=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(L))?ce=new O(parseInt(re[1],16),parseInt(re[2],16),parseInt(re[3],16),1):(re=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(L))?ce=new O(parseInt(re[1]+re[1],16),parseInt(re[2]+re[2],16),parseInt(re[3]+re[3],16),1):(re=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(L))?ce=new O(parseInt(re[1]+re[1],16),parseInt(re[2]+re[2],16),parseInt(re[3]+re[3],16),x(re[4]+re[4])):(re=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(L))?ce=new O(parseInt(re[1],16),parseInt(re[2],16),parseInt(re[3],16),x(re[4])):(re=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(L))?ce=new O(parseInt(re[1],10),parseInt(re[2],10),parseInt(re[3],10),1):(re=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(L))?ce=new O(parseInt(re[1],10),parseInt(re[2],10),parseInt(re[3],10),parseFloat(re[4])):(re=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(L))?ce=new r(parseFloat(re[1])/100,parseFloat(re[2])/100,parseFloat(re[3])/100,1):(re=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(L))&&(ce=new r(parseFloat(re[1])/100,parseFloat(re[2])/100,parseFloat(re[3])/100,parseFloat(re[4]))),ce)ce.match=re;else if(!xe)throw new Error("Cannot parse color: "+L);return ce}},8131:(St,oe,S)=>{"use strict";S.d(oe,{Z:()=>ze});let C=null;const ze={get browser(){return"undefined"==typeof window||C||(C=function(p){const K={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i};let r={};for(let O in K)if(K.hasOwnProperty(O)){const P=p.match(K[O]);if(P){r[O]=!0,r[P[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,r.version=parseInt(document.documentMode||P[2],10);break}}return r}(window.navigator.userAgent)),C}}},3710:(St,oe,S)=>{"use strict";S.d(oe,{s:()=>K});var H,E,a=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];H=a,E=131,function(x){for(;--x;)H.push(H.shift())}(++E);var C=function(H,E){var ee=a[H-=0];void 0===C.eVebMg&&(C.JsjtEd=function(le){for(var xe=function(le){for(var J,we,re=String(le).replace(/=+$/,""),ce="",L=0,ge=0;we=re.charAt(ge++);~we&&(J=L%4?64*J+we:we,L++%4)?ce+=String.fromCharCode(255&J>>(-2*L&6)):0)we="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(we);return ce}(le),re=[],ce=0,L=xe.length;ce{"use strict";S.d(oe,{Z:()=>H});const a=(E,ee)=>x=>ee(E(x)),C=(E,ee,x)=>E.addEventListener&&E.addEventListener(ee,x),N=(E,ee,x)=>E&&E.removeEventListener&&E.removeEventListener(ee,x),ze=()=>{},p=E=>E.preventDefault(),K=/touch/;function O(E){return E.type.match(K)?{pageX:E.changedTouches[0].pageX,pageY:E.changedTouches[0].pageY,clientX:E.changedTouches[0].clientX,clientY:E.changedTouches[0].clientY,type:E.type,originalEvent:E,isTouch:!0}:{pageX:E.pageX,pageY:E.pageY,clientX:E.clientX,clientY:E.clientY,offsetX:E.offsetX,offsetY:E.offsetY,type:E.type,ctrlKey:E.ctrlKey,shiftKey:E.shiftKey,altKey:E.altKey,originalEvent:E}}const H=(()=>{class E{static supportPointerEvent(){return"undefined"!=typeof window&&window.PointerEvent}get document(){return this._element?this._element.ownerDocument:document}constructor({press:x=ze,drag:U=ze,release:le=ze,mouseOnly:xe=!1}){this._pressHandler=a(O,x),this._dragHandler=a(O,U),this._releaseHandler=a(O,le),this._ignoreMouse=!1,this._mouseOnly=xe,this._touchstart=re=>{1===re.touches.length&&this._pressHandler(re)},this._touchmove=re=>{1===re.touches.length&&this._dragHandler(re)},this._touchend=re=>{0===re.touches.length&&1===re.changedTouches.length&&(this._releaseHandler(re),this._ignoreMouse=!0,setTimeout(this._restoreMouse,2e3))},this._restoreMouse=()=>{this._ignoreMouse=!1},this._mousedown=re=>{const{which:ce}=re;ce&&ce>1||this._ignoreMouse||(C(this.document,"mousemove",this._mousemove),C(this.document,"mouseup",this._mouseup),this._pressHandler(re))},this._mousemove=re=>{this._dragHandler(re)},this._mouseup=re=>{N(this.document,"mousemove",this._mousemove),N(this.document,"mouseup",this._mouseup),this._releaseHandler(re)},this._pointerdown=re=>{re.isPrimary&&0===re.button&&(C(this.document,"pointermove",this._pointermove),C(this.document,"pointerup",this._pointerup),C(this.document,"pointercancel",this._pointerup),C(this.document,"contextmenu",p),this._pressHandler(re))},this._pointermove=re=>{re.isPrimary&&this._dragHandler(re)},this._pointerup=re=>{re.isPrimary&&(N(this.document,"pointermove",this._pointermove),N(this.document,"pointerup",this._pointerup),N(this.document,"pointercancel",this._pointerup),N(this.document,"contextmenu",p),this._releaseHandler(re))}}bindTo(x){x!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=x,this._bindToCurrent())}_bindToCurrent(){const x=this._element;this._usePointers()?C(x,"pointerdown",this._pointerdown):(C(x,"mousedown",this._mousedown),this._mouseOnly||(C(x,"touchstart",this._touchstart),C(x,"touchmove",this._touchmove),C(x,"touchend",this._touchend)))}_unbindFromCurrent(){const x=this._element;if(this._usePointers())return N(x,"pointerdown",this._pointerdown),N(this.document,"pointermove",this._pointermove),N(this.document,"pointerup",this._pointerup),N(this.document,"contextmenu",p),void N(this.document,"pointercancel",this._pointerup);N(x,"mousedown",this._mousedown),this._mouseOnly||(N(x,"touchstart",this._touchstart),N(x,"touchmove",this._touchmove),N(x,"touchend",this._touchend))}_usePointers(){return!this._mouseOnly&&E.supportPointerEvent()}update({press:x=ze,drag:U=ze,release:le=ze,mouseOnly:xe=!1}){this._pressHandler=a(O,x),this._dragHandler=a(O,U),this._releaseHandler=a(O,le),this._mouseOnly=xe}destroy(){this._unbindFromCurrent(),this._element=null}}return E.default=E,E})()},9346:(St,oe,S)=>{"use strict";function N(Ge){return"string"==typeof Ge}S.d(oe,{F3:()=>be,Jp:()=>$t,LG:()=>an,WU:()=>Fi,p6:()=>So,uf:()=>Qi,zD:()=>Sn,$U:()=>An,sG:()=>Ae,p3:()=>Tr,y0:()=>Fn,BB:()=>gi,Ak:()=>ni});const p=/\{(\d+)}?\}/g;class K{constructor({name:Xe,message:dt}){if(!Xe||!dt)throw new Error("{ name: string, message: string } object is required!");this.name=Xe,this.message=dt}formatMessage(...Xe){const dt=r(Xe),It=this.message.replace(p,function(ue,fn){return dt[parseInt(fn,10)]});return`${this.name}: ${It}`}error(...Xe){return new Error(this.formatMessage(Xe))}}const r=function(Ge){return Ge.reduce((Xe,dt)=>Xe.concat(dt),[])},P=(Ge={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(Ge).reduce(function(dt,It){return dt[It]=new K({name:It,message:Ge[It]}),dt},{}));var Ge;const ee={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function x(Ge){let Xe;return Xe=N(Ge)?U(Ge):Ge,Xe}function U(Ge){if(ee[Ge])return ee[Ge];if(ee.supplemental.likelySubtags){const dt=Ge.split("-"),It=dt[0],ue=dt.slice(1),fn=function(Ge,Xe){const dt=ee.supplemental.likelySubtags;for(let It=0;It=1;fn--){const me=It[fn];(me===Xe.variant||me===Xe.script)&&It.splice(fn,1)}const ue=It.length;if(ue>1)return It[ue-1].toUpperCase()}(Ge.name,dt),Ge.territory=It,It}function Wt(Ge,Xe){for(let dt in Xe)"numbers"===dt?X(Ge,Xe[dt]):"dates"===dt&&Mt(Ge,Xe[dt])}function Sn(){const Ge=arguments.length;for(let Xe=0;Xe=Ue){let In=mn,En=[];for(;In>-1;){let Jn=Bt.substring(In-Ue,In);Jn&&En.push(Jn),In-=Ue;let mi=wi.shift();if(Ue=void 0!==mi?mi:Ue,0===Ue){Jn=Bt.substring(0,In),Jn&&En.push(Jn);break}}Bt=En.reverse().join(fn.group),Ut=Ge.substring(0,Xe)+Bt+Ge.substring(wt)}return Ut}function yn(Ge){return Ge===xe||Ge===re}function qt(Ge,Xe=2,dt=!1){const It=Xe-String(Ge).length;let ue=Ge;if(It>0){const fn=new Array(It+1).join("0");ue=dt?Ge+fn:fn+Ge}return ue}function on(Ge,Xe){let dt=Ge,It=Xe||0;return dt=dt.toString().split("e"),dt=Math.round(Number(dt[0]+"e"+(dt[1]?Number(dt[1])+It:It))),dt=dt.toString().split("e"),dt=Number(dt[0]+"e"+(dt[1]?Number(dt[1])-It:-It)),dt.toFixed(Math.min(It,20))}const Ei=/0+$/;function gr(Ge,Xe,dt){const It=dt.numbers.symbols,{style:ue}=Xe,fn=yn(ue);if(ue===L)return(void 0!==Xe.minimumFractionDigits?Ge.toExponential(Xe.minimumFractionDigits):Ge.toExponential()).replace(e,It.decimal);let wi,me=Ge;fn&&(Xe.value=me,wi=Zi(dt,Xe)),ue===ce&&(me*=100,wi=It.percentSign);const{minimumFractionDigits:Ue,maximumFractionDigits:wt}=function(Ge){let{minimumFractionDigits:Xe,maximumFractionDigits:dt,style:It}=Ge;const ue=yn(It);let fn;return ue&&(fn=function(Ge){let Xe=2,dt=2;const It=((ee.supplemental.currencyData||{}).fractions||{})[Ge];return It&&It._digits&&(dt=Xe=parseInt(It._digits,10)),{minimumFractionDigits:Xe,maximumFractionDigits:dt}}(Ge.currency)),void 0===Xe&&(Xe=ue?fn.minimumFractionDigits:0),void 0===dt&&(dt=It===ce?Math.max(Xe,0):ue?Math.max(Xe,fn.maximumFractionDigits):Math.max(Xe,3)),{minimumFractionDigits:Xe,maximumFractionDigits:dt}}(Xe);me=on(me,wt);const Bt=me<0,Ut=Ii(Ge),mn=me.split(e);let In=mn[0],En=qt(mn[1]?mn[1].replace(Ei,z):z,Ue,!0);Bt&&(In=In.substring(1)),Xe.minimumIntegerDigits&&(In=qt(In,Xe.minimumIntegerDigits));let mi,Jn=!1!==Xe.useGrouping?Ti(In,0,In.length,Xe,dt):In;if(En&&(Jn+=It.decimal+En),fn&&"name"===Xe.currencyDisplay)mi=function(Ge,Xe){const dt=Ge.numbers.currency;let It=1!==Xe?dt["unitPattern-count-other"]:dt["unitPattern-count-one"];return Xe<0&&(It=It.replace("n","-n")),It}(dt,Ge);else{const Ji=Xe.patterns;mi=Bt||Ut?Ji[1]||"-"+Ji[0]:Ji[0]}return"n"!==mi||Bt?function(Ge,Xe,dt){let It=z;for(let ue=0,fn=Xe.length;ue-1||Xe.indexOf('"')>-1||Xe.indexOf("\\")>-1){const dt=Ge.literals=[];Ge.format=Xe.replace(Nr,function(It){const ue=It.charAt(0).replace("\\",z),fn=It.slice(1).replace(ue,z);return dt.push(fn),"__??__"})}}const Ms=/(\.(?:[0-9]*[1-9])?)0+$/g,ur=/\.$/,pr=/\,/g;function Ri(Ge,Xe,dt){let It;return It=-1===Ge&&-1!==Xe?Xe:-1!==Ge&&-1===Xe?Ge:dt?Math.min(Ge,Xe):Math.max(Ge,Xe),It}function On(Ge,Xe,dt){const It={negative:Ge<0,number:Math.abs(Ge),negativeZero:Ii(Ge),format:Xe};return function(Ge){let{number:Xe,format:dt}=Ge;if(dt=dt.split(";"),(Ge.negative||Ge.negativeZero)&&dt[1])dt=dt[1],Ge.hasNegativeFormat=!0;else if(0===Xe){const It=dt[2];dt=It||dt[0],It&&function(Ge){return-1===Ge.indexOf("#")&&-1===Ge.indexOf("0")}(It)&&(Ge.constant=It)}else dt=dt[0];Ge.format=dt}(It),It.constant?It.constant:(vs(It),js(It,dt),function(Ge){Ge.hasGroup=Ge.format.indexOf(",")>-1,Ge.hasGroup&&(Ge.format=Ge.format.replace(pr,z))}(It),function(Ge){let{number:Xe,format:dt}=Ge,It=dt.indexOf(e);if(-1!==It){const ue=dt.lastIndexOf("0")-It,fn=dt.lastIndexOf("#")-It,me=ue>-1,wi=fn>-1;let Ue=Xe.toString().split("e");Ue=Ue[1]?on(Xe,Math.abs(Ue[1])):Ue[0],Ue=Ue.split(e)[1]||z;let wt=Ue.length,Bt=-1;me||wi?me&&ue>fn?wt=ue:fn>ue&&(wi&&wt>fn?wt=fn:me&&wt-1&&(Xe=on(Xe,wt),Bt>-1&&(Xe=function(Ge,Xe){let dt;return dt=0===Xe?Ms:new RegExp(`(\\.[0-9]{${Xe}}[1-9]*)0+$`,"g"),Ge.replace(dt,"$1").replace(ur,z)}(Xe,Bt)))}else Xe=on(Xe);Ge.negative&&-1*Xe>=0&&!Ge.negativeZero&&(Ge.negative=!1),Ge.number=Xe,Ge.decimalIndex=It}(It),function(Ge){const Xe=Ge.format;let dt=Xe.indexOf("#"),It=Xe.indexOf("0"),ue=Ri(dt,It,!0);dt=Xe.lastIndexOf("#"),It=Xe.lastIndexOf("0");let fn=Ri(dt,It);ue===Xe.length&&(fn=ue),Ge.start=ue,Ge.end=fn,Ge.lastZeroIndex=It}(It),function(Ge,Xe){let dt=Ge.number;return-1!==Ge.start&&(dt=function(Ge,Xe){const{start:dt,end:It,negative:ue,negativeZero:fn,format:me,decimalIndex:wi,lastZeroIndex:Ue,hasNegativeFormat:wt,hasGroup:Bt}=Ge;let Ut=Ge.number;const mn=Ut.toString().split(e),In=me.length,En=mn[0],Jn=mn[1]||z,mi=En.length;let as=z;Ut=me.substring(0,dt),(ue||fn)&&!wt&&(Ut+="-");for(let Ji=dt;Ji-1&&(Ut+=En,Ji=wi),wi===Ji){Ut+=(Jn?Xe.numbers.symbols.decimal:z)+Jn,Ji+=It-wi+1;continue}"0"===ls?(Ut+=ls,as=ls):"#"===ls&&(Ut+=as)}return Bt&&(Ut=Ti(Ut,dt+(ue&&!wt?1:0),Math.max(It,mi+dt),Xe.numbers.decimal,Xe)),It>=dt&&(Ut+=me.substring(It+1)),Ut}(Ge,Xe),dt=function(Ge,Xe,dt){let It=Ge;if(Xe===xe||Xe===ce){It=z;for(let ue=0,fn=Ge.length;ue1){const dt=(Xe[1]||z).replace(J,z).split("n");if(Ge.indexOf(dt[0])>-1&&Ge.indexOf(dt[1])>-1)return Ge.replace(dt[0],z).replace(dt[1],z)}}function Tr(Ge,Xe=je,dt={}){if(!Ge&&0!==Ge)return null;if(Us(Ge))return Ge;const It=U(Xe),ue=It.numbers.symbols;let wi,fn=Ge.toString(),me=dt||{};if(N(dt)&&(me={format:dt},vs(me),fn=function(Ge,Xe){const dt=Xe.literals;let It=Ge;if(dt)for(let ue=0;ue-1)&&(fn=fn.replace(ue.percentSign,z),wi=!0),vr.test(fn))return fn=parseFloat(fn.replace(ue.decimal,e)),isNaN(fn)?null:fn;const{negative:Ue,number:wt}=function(Ge,Xe,dt){const It=qi(dt)||{};let me,ue=yn(It.style),fn=Ge;const wi=It.currency||V(Xe,ue);if(wi){const Ue=function(Ge,Xe,dt=!0){const It=Yn(Ge,Xe,dt);if(It){if(!It.displays){const ue=[Xe];for(let fn in It)ue.push(It[fn]);ue.sort(_t),It.displays=ue}return It.displays}}(Xe,wi,ue);if(Ue)for(let wt=0;wt0)return null;let Ut=Bt>-1;return Ut=void 0!==Ue?Ue:Ut,fn=fn.replace("-",z).replace(Ss," ").split(ue.group.replace(Ss," ")).join(z).replace(ue.decimal,e),fn=parseFloat(fn),isNaN(fn)?fn=null:Ut&&(fn*=-1),fn&&wi&&(fn/=100),fn}const Lr=/\{(\d+)}/g;function eo(Ge){const Xe=arguments;return Ge.replace(Lr,(dt,It)=>Xe[parseInt(It,10)+1])}const Xs=[2,1,5,3,4],Io={[(-2).toString()]:8,[(-1).toString()]:6,[2..toString()]:6,[1..toString()]:3},so={numeric:1,"2-digit":2,short:3,long:4,narrow:5},ao=/[hHmsSzZoOvVxX]/,zo=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(Ge){return Ge.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Wr={e:"c",E:"c",M:"L",Q:"q"},Zr={},Ie={};function ln(Ge){return Zr[Ge]||(Zr[Ge]=new RegExp(Ge+"+")),Zr[Ge]}function de(Ge){const Xe=[];let dt=Ge.charAt(0),It=dt;for(let ue=1;ueIt&&(It=wt,ue=wi,fn=Xe[me])}fn=fn.replace("v","z");for(let me=0;me0){const fn=Ge.substr(0,It),me=Ge.substr(It);ue=eo(Xe.calendar.dateTimeFormats.short,dt[me]||ht(de(me),dt),dt[fn]||ht(de(fn),dt))}else ue=ht(de(Ge),dt);return function(Ge,Xe,dt){Ie[dt]||(Ie[dt]={}),Ie[dt][Ge]=Xe}(Ge,ue,Xe.name),ue}(ue,Xe))}return It||(It=dt.patterns.d),It}function Yt(Ge){let Xe;return Ge<=3?Xe="abbreviated":4===Ge?Xe="wide":5===Ge?Xe="narrow":6===Ge&&(Xe="short"),Xe}function en(Ge,Xe,dt,It,ue){return $t(Ge,{type:Xe,nameType:Yt(dt),standAlone:It,lower:ue})}function Cn(Ge){return"function"==typeof Ge}function ai(Ge){return Boolean(Ge)&&Cn(Ge.getTime)&&Cn(Ge.getMonth)}const ki="hour",Ci="zone",Yi="weekday",os="quarter",ws={G:"era",y:"year",q:os,Q:os,M:"month",L:"month",d:"day",E:Yi,c:Yi,e:Yi,h:ki,H:ki,k:ki,K:ki,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:Ci,X:Ci,z:Ci,Z:Ci},Es=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function hr(Ge,Xe,dt,It){return Xe<=2?qt(Ge+1,Xe):en(dt,"months",Xe,It)[Ge]}function Hr(Ge,Xe,dt,It){const ue=Math.floor(Ge.getMonth()/3);return Xe<3?ue+1:en(dt,"quarters",Xe,It)[ue]}function qr(Ge,Xe,dt){const{shortHours:It,optionalMinutes:ue,separator:fn,localizedName:me,zZeroOffset:wi}=dt,Ue=Ge.getTimezoneOffset()/60;if(0===Ue&&wi)return"Z";const wt=Ue<=0?"+":"-",Bt=Math.abs(Ue).toString().split("."),Ut=Bt[1]||0;let mn=wt+(It?Bt[0]:qt(Bt[0],2));return(Ut||!ue)&&(mn+=(fn?":":z)+qt(Ut,2)),me&&(mn=eo(0===Ue?Xe.calendar.gmtZeroFormat:Xe.calendar.gmtFormat,mn)),mn}function $s(Ge,Xe,dt,It){let ue;return ue=Xe<3?function(Ge,Xe,dt){const It=an(dt);let ue;return ue=Ge3,localizedName:4===Xe,zZeroOffset:5===Xe})},Ds.x=function(Ge,Xe,dt){return qr(Ge,dt,{optionalMinutes:1===Xe,separator:3===Xe||5===Xe})},Ds.X=function(Ge,Xe,dt){return qr(Ge,dt,{optionalMinutes:1===Xe,separator:3===Xe||5===Xe,zZeroOffset:!0})},Ds.G=function(Ge,Xe,dt){let It=Ge.getFullYear()>=0?1:0;return en(dt,"eras",Xe)[It]},Ds.e=$s,Ds.c=function(Ge,Xe,dt){return $s(Ge,Xe,dt,!0)},Ds.q=function(Ge,Xe,dt){return Hr(Ge,Xe,dt,!0)},Ds.Q=Hr;const aa=/([+|\-]\d{1,2})(:?)(\d{2})?/,Ye=/^\/Date\((.*?)\)\/$/,Et=/[+-]\d*/,et={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Pt=/\d+/,$n=/^ */,li=/ *$/,Bi=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],tt=["G","g","F","Y","y","M","m","D","d","y","T","t"];function De(Ge,Xe,dt){return!(Ge>=Xe&&Ge<=dt)}function kt(Ge,Xe){let{format:dt,idx:It}=Xe,ue=0;for(;dt[It]===Ge;)ue++,It++;return ue>0&&(It-=1),Xe.idx=It,ue}function Ln(Ge,Xe){let dt=Ge?et[Ge]||new RegExp("^\\d{1,"+Ge+"}"):Pt,It=Xe.value.substr(Xe.valueIdx,Ge).match(dt);return It?(It=It[0],Xe.valueIdx+=It.length,parseInt(It,10)):null}function Si(Ge,Xe,dt){let fn,me,wt,It=0,ue=Ge.length,wi=0,Ue=0;for(;Itwi&&(wi=me,Ue=It);return wi?(Xe.valueIdx+=wi,Ue+1):null}function gs(Ge){let Xe=!1;return Ge.value.charAt(Ge.valueIdx)===Ge.format[Ge.idx]&&(Ge.valueIdx++,Xe=!0),Xe}function wr(Ge,Xe,dt){const{shortHours:It,noSeparator:ue,optionalMinutes:fn,localizedName:me,zLiteral:wi}=dt;if(Ge.UTC=!0,wi&&"Z"===Ge.value.charAt(Ge.valueIdx))return Ge.valueIdx++,!1;if(me&&!Si(function(Ge){const{gmtFormat:Xe,gmtZeroFormat:dt}=Ge;if(!Xe)throw P.NoGMTInfo.error();return[Xe.replace("{0}",z).toLowerCase(),dt.replace("{0}",z).toLowerCase()]}(Xe.calendar),Ge,!0))return!0;const Ue=aa.exec(Ge.value.substr(Ge.valueIdx,6));if(!Ue)return!me;const wt=Ue[1],Bt=Ue[3],Ut=parseInt(wt,10),mn=Ue[2];let In=parseInt(Bt,10);if(isNaN(Ut)||!It&&3!==wt.length||!fn&&isNaN(In)||ue&&mn||(isNaN(In)&&(In=null),De(Ut,-12,13)||In&&De(In,0,59)))return!0;Ge.valueIdx+=Ue[0].length,Ge.hoursOffset=Ut,Ge.minutesOffset=In}function Qs(Ge,Xe,dt){const It=kt(Ge,Xe),ue=en(dt,"months",It,"L"===Ge,!0),fn=It<3?Ln(2,Xe):Si(ue,Xe,!0);if(null===fn||De(fn,1,12))return!0;Xe.month=fn-1}function Vr(Ge,Xe,dt){const It=kt(Ge,Xe),ue=en(dt,"days",It,"c"===Ge,!0);let fn=It<3?Ln(1,Xe):Si(ue,Xe,!0);if(!fn&&0!==fn||De(fn,1,7))return!0}const us={};function wa(Ge,Xe){return`${$n.exec(Xe)[0]}${Ge}${li.exec(Xe)[0]}`}function _l(Ge,Xe,dt){let It=xt(Xe,dt).split(z);const ue={format:It,idx:0,value:wa(Ge,Xe),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},fn=It.length;let me=!1;for(;ue.idx2029&&(dt-=100)}Ge.year=dt},us.h=function(Ge){kt("h",Ge);let Xe=Ln(2,Ge);if(12===Xe&&(Xe=0),null===Xe||De(Xe,0,11))return!0;Ge.hours=Xe},us.K=function(Ge){kt("K",Ge);let Xe=Ln(2,Ge);if(null===Xe||De(Xe,0,11))return!0;Ge.hours=Xe},us.a=function(Ge,Xe){let It=en(Xe,"dayPeriods",kt("a",Ge),!1,!0);const ue=Si([It.pm],Ge,!0);if(!ue&&!Si([It.am],Ge,!0))return!0;Ge.pmHour=ue},us.H=function(Ge){kt("H",Ge);const Xe=Ln(2,Ge);if(null===Xe||De(Xe,0,23))return!0;Ge.hours=Xe},us.k=function(Ge){kt("k",Ge);let Xe=Ln(2,Ge);if(null===Xe||De(Xe,1,24))return!0;Ge.hours=24===Xe?0:Xe},us.m=function(Ge){kt("m",Ge);const Xe=Ln(2,Ge);if(null===Xe||De(Xe,0,59))return!0;Ge.minutes=Xe},us.s=function(Ge){kt("s",Ge);const Xe=Ln(2,Ge);if(null===Xe||De(Xe,0,59))return!0;Ge.seconds=Xe},us.S=function(Ge){const Xe=kt("S",Ge),dt=Ge.value.substr(Ge.valueIdx,Xe);let It=null;if(isNaN(parseInt(dt,10))||(It=parseFloat("0."+dt,10),It=on(It,3),It*=1e3,Ge.valueIdx+=Xe),null===It||De(It,0,999))return!0;Ge.milliseconds=It},us.z=function(Ge,Xe){const It=kt("z",Ge)<4,ue=wr(Ge,Xe,{shortHours:It,optionalMinutes:It,localizedName:!0});if(ue)return ue},us.Z=function(Ge,Xe){const dt=kt("Z",Ge),It=wr(Ge,Xe,{noSeparator:dt<4,zLiteral:5===dt,localizedName:4===dt});if(It)return It},us.x=function(Ge,Xe){const dt=kt("x",Ge),It=wr(Ge,Xe,{noSeparator:3!==dt&&5!==dt,optionalMinutes:1===dt});if(It)return It},us.X=function(Ge,Xe){const dt=kt("X",Ge),It=wr(Ge,Xe,{noSeparator:3!==dt&&5!==dt,optionalMinutes:1===dt,zLiteral:!0});if(It)return It},us.G=function(Ge,Xe){const It=en(Xe,"eras",kt("G",Ge),!1,!0);if(null===Si([It[0],It[1]],Ge,!0))return!0},us.e=function(Ge,Xe){return Vr("e",Ge,Xe)},us.c=function(Ge,Xe){return Vr("c",Ge,Xe)};const Ct={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},Ke="literal";function nn(Ge,Xe){const dt=Ge[Ge.length-1];dt&&dt.type===Ke?dt.pattern+=Xe:Ge.push({type:Ke,pattern:Xe})}function un(Ge){return"h"===Ge||"K"===Ge}function Fn(Ge,Xe=je){const It=xt(Ge,U(Xe)),ue=[];let fn=Es.lastIndex=0,me=Es.exec(It);for(;me;){let wi=me[0];if(fn=mn&&(Bt.names={type:Ut.type,nameType:Yt(In),standAlone:Ut.standAlone===Ue})}ue.push(Bt)}fn=Es.lastIndex,me=Es.exec(It)}return fn{"use strict";var __webpack_modules__=[,(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.VerbosityLevel=oe.Util=oe.UnknownErrorException=oe.UnexpectedResponseException=oe.UNSUPPORTED_FEATURES=oe.TextRenderingMode=oe.StreamType=oe.RenderingIntentFlag=oe.PermissionFlag=oe.PasswordResponses=oe.PasswordException=oe.PageActionEventType=oe.OPS=oe.MissingPDFException=oe.IsLittleEndianCached=oe.IsEvalSupportedCached=oe.InvalidPDFException=oe.ImageKind=oe.IDENTITY_MATRIX=oe.FormatError=oe.FontType=oe.FONT_IDENTITY_MATRIX=oe.DocumentActionEventType=oe.CMapCompressionType=oe.BaseException=oe.AnnotationType=oe.AnnotationStateModelType=oe.AnnotationReviewState=oe.AnnotationReplyType=oe.AnnotationMode=oe.AnnotationMarkedState=oe.AnnotationFlag=oe.AnnotationFieldFlag=oe.AnnotationBorderStyleType=oe.AnnotationActionEventType=oe.AbortException=void 0,oe.arrayByteLength=Mt,oe.arraysToBytes=function(_t){const Tt=_t.length;if(1===Tt&&_t[0]instanceof Uint8Array)return _t[0];let Gt=0;for(let F=0;FTt}),_t.promise=new Promise(function(Gt,Rt){_t.resolve=function(Ft){Tt=!0,Gt(Ft)},_t.reject=function(Ft){Tt=!0,Rt(Ft)}}),_t},oe.createValidAbsoluteUrl=function(_t,Tt=null,Gt=null){if(!_t)return null;try{if(Gt&&"string"==typeof _t){if(Gt.addDefaultProtocol&&_t.startsWith("www.")){const Ft=_t.match(/\./g);Ft&&Ft.length>=2&&(_t=`http://${_t}`)}if(Gt.tryConvertEncoding)try{_t=hn(_t)}catch(Ft){}}const Rt=Tt?new URL(_t,Tt):new URL(_t);if(function(_t){if(!_t)return!1;switch(_t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(Rt))return Rt}catch(Rt){}return null},oe.escapeString=function(_t){return _t.replace(/([()\\\n\r])/g,Tt=>"\n"===Tt?"\\n":"\r"===Tt?"\\r":`\\${Tt}`)},oe.getModificationDate=function(_t=new Date){return[_t.getUTCFullYear().toString(),(_t.getUTCMonth()+1).toString().padStart(2,"0"),_t.getUTCDate().toString().padStart(2,"0"),_t.getUTCHours().toString().padStart(2,"0"),_t.getUTCMinutes().toString().padStart(2,"0"),_t.getUTCSeconds().toString().padStart(2,"0")].join("")},oe.getVerbosityLevel=function(){return z},oe.info=function(_t){z>=we.INFOS&&console.log(`Info: ${_t}`)},oe.isArrayBuffer=function(_t){return"object"==typeof _t&&null!==_t&&void 0!==_t.byteLength},oe.isArrayEqual=function(_t,Tt){if(_t.length!==Tt.length)return!1;for(let Gt=0,Rt=_t.length;Gt>24&255,_t>>16&255,_t>>8&255,255&_t)},oe.stringToBytes=ut,oe.stringToPDFString=function(_t){if(_t[0]>="\xef"){let Gt;if("\xfe"===_t[0]&&"\xff"===_t[1]?Gt="utf-16be":"\xff"===_t[0]&&"\xfe"===_t[1]?Gt="utf-16le":"\xef"===_t[0]&&"\xbb"===_t[1]&&"\xbf"===_t[2]&&(Gt="utf-8"),Gt)try{const Rt=new TextDecoder(Gt,{fatal:!0}),Ft=ut(_t);return Rt.decode(Ft)}catch(Rt){ct(`stringToPDFString: "${Rt}".`)}}const Tt=[];for(let Gt=0,Rt=_t.length;Gt>8&255),String.fromCharCode(255&Ft))}return Tt.join("")},oe.stringToUTF8String=hn,oe.unreachable=g,oe.utf8StringToString=function(_t){return unescape(encodeURIComponent(_t))},oe.warn=ct,S(2),oe.IDENTITY_MATRIX=[1,0,0,1,0,0],oe.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],oe.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},oe.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},oe.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},oe.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},oe.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},oe.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},oe.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},oe.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},oe.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},oe.AnnotationReplyType={GROUP:"Group",REPLY:"R"},oe.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},oe.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},oe.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},oe.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},oe.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},oe.PageActionEventType={O:"PageOpen",C:"PageClose"},oe.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},oe.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const we={ERRORS:0,WARNINGS:1,INFOS:5};oe.VerbosityLevel=we,oe.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},oe.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},oe.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},oe.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let z=we.WARNINGS;function ct(_t){z>=we.WARNINGS&&console.log(`Warning: ${_t}`)}function g(_t){throw new Error(_t)}function Le(_t,Tt,Gt){return Object.defineProperty(_t,Tt,{value:Gt,enumerable:!0,configurable:!0,writable:!1}),Gt}const Te=function(){function Tt(Gt,Rt){this.constructor===Tt&&g("Cannot initialize BaseException."),this.message=Gt,this.name=Rt}return Tt.prototype=new Error,Tt.constructor=Tt,Tt}();function ut(_t){"string"!=typeof _t&&g("Invalid argument for stringToBytes");const Tt=_t.length,Gt=new Uint8Array(Tt);for(let Rt=0;Rt_t.toString(16).padStart(2,"0"));class $t{static makeHexColor(Tt,Gt,Rt){return`#${Nt[Tt]}${Nt[Gt]}${Nt[Rt]}`}static transform(Tt,Gt){return[Tt[0]*Gt[0]+Tt[2]*Gt[1],Tt[1]*Gt[0]+Tt[3]*Gt[1],Tt[0]*Gt[2]+Tt[2]*Gt[3],Tt[1]*Gt[2]+Tt[3]*Gt[3],Tt[0]*Gt[4]+Tt[2]*Gt[5]+Tt[4],Tt[1]*Gt[4]+Tt[3]*Gt[5]+Tt[5]]}static applyTransform(Tt,Gt){return[Tt[0]*Gt[0]+Tt[1]*Gt[2]+Gt[4],Tt[0]*Gt[1]+Tt[1]*Gt[3]+Gt[5]]}static applyInverseTransform(Tt,Gt){const Rt=Gt[0]*Gt[3]-Gt[1]*Gt[2];return[(Tt[0]*Gt[3]-Tt[1]*Gt[2]+Gt[2]*Gt[5]-Gt[4]*Gt[3])/Rt,(-Tt[0]*Gt[1]+Tt[1]*Gt[0]+Gt[4]*Gt[1]-Gt[5]*Gt[0])/Rt]}static getAxialAlignedBoundingBox(Tt,Gt){const Rt=$t.applyTransform(Tt,Gt),Ft=$t.applyTransform(Tt.slice(2,4),Gt),F=$t.applyTransform([Tt[0],Tt[3]],Gt),V=$t.applyTransform([Tt[2],Tt[1]],Gt);return[Math.min(Rt[0],Ft[0],F[0],V[0]),Math.min(Rt[1],Ft[1],F[1],V[1]),Math.max(Rt[0],Ft[0],F[0],V[0]),Math.max(Rt[1],Ft[1],F[1],V[1])]}static inverseTransform(Tt){const Gt=Tt[0]*Tt[3]-Tt[1]*Tt[2];return[Tt[3]/Gt,-Tt[1]/Gt,-Tt[2]/Gt,Tt[0]/Gt,(Tt[2]*Tt[5]-Tt[4]*Tt[3])/Gt,(Tt[4]*Tt[1]-Tt[5]*Tt[0])/Gt]}static apply3dTransform(Tt,Gt){return[Tt[0]*Gt[0]+Tt[1]*Gt[1]+Tt[2]*Gt[2],Tt[3]*Gt[0]+Tt[4]*Gt[1]+Tt[5]*Gt[2],Tt[6]*Gt[0]+Tt[7]*Gt[1]+Tt[8]*Gt[2]]}static singularValueDecompose2dScale(Tt){const Gt=[Tt[0],Tt[2],Tt[1],Tt[3]],Rt=Tt[0]*Gt[0]+Tt[1]*Gt[2],Ft=Tt[0]*Gt[1]+Tt[1]*Gt[3],F=Tt[2]*Gt[0]+Tt[3]*Gt[2],V=Tt[2]*Gt[1]+Tt[3]*Gt[3],Q=(Rt+V)/2,ie=Math.sqrt(W3(Rt+V,2)-4*(Rt*V-F*Ft))/2,bt=Q-ie||1;return[Math.sqrt(Q+ie||1),Math.sqrt(bt)]}static normalizeRect(Tt){const Gt=Tt.slice(0);return Tt[0]>Tt[2]&&(Gt[0]=Tt[2],Gt[2]=Tt[0]),Tt[1]>Tt[3]&&(Gt[1]=Tt[3],Gt[3]=Tt[1]),Gt}static intersect(Tt,Gt){function Rt(Q,ie){return Q-ie}const Ft=[Tt[0],Tt[2],Gt[0],Gt[2]].sort(Rt),F=[Tt[1],Tt[3],Gt[1],Gt[3]].sort(Rt),V=[];return Tt=$t.normalizeRect(Tt),Gt=$t.normalizeRect(Gt),Ft[0]===Tt[0]&&Ft[1]===Gt[0]||Ft[0]===Gt[0]&&Ft[1]===Tt[0]?(V[0]=Ft[1],V[2]=Ft[2],F[0]===Tt[1]&&F[1]===Gt[1]||F[0]===Gt[1]&&F[1]===Tt[1]?(V[1]=F[1],V[3]=F[2],V):null):null}static bezierBoundingBox(Tt,Gt,Rt,Ft,F,V,Q,ie){const nt=[],bt=[[],[]];let an,Qn,ni,An,Ii,Zi,Ti,yn;for(let kn=0;kn<2;++kn)if(0===kn?(Qn=6*Tt-12*Rt+6*F,an=-3*Tt+9*Rt-9*F+3*Q,ni=3*Rt-3*Tt):(Qn=6*Gt-12*Ft+6*V,an=-3*Gt+9*Ft-9*V+3*ie,ni=3*Ft-3*Gt),Math.abs(an)<1e-12){if(Math.abs(Qn)<1e-12)continue;An=-ni/Qn,0{S(3)},(St,oe)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.isNodeJS=void 0;const S=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);oe.isNodeJS=S},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var St,oe,S,a,C,N,ze,XM;Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(5),_font_loader=__w_pdfjs_require__(7),_node_utils=__w_pdfjs_require__(8),_annotation_storage=__w_pdfjs_require__(9),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(12),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(13),_metadata=__w_pdfjs_require__(14),_optional_content_config=__w_pdfjs_require__(15),_transport_stream=__w_pdfjs_require__(16),_xfa_text=__w_pdfjs_require__(17);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultStandardFontDataFactory=_is_node.isNodeJS?_node_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;let createPDFNetworkStream;function setPDFNetworkStreamFactory(K){createPDFNetworkStream=K}function getDocument(K){const r=new PDFDocumentLoadingTask;let O;if("string"==typeof K||K instanceof URL)O={url:K};else if((0,_util.isArrayBuffer)(K))O={data:K};else if(K instanceof PDFDataRangeTransport)O={range:K};else{if("object"!=typeof K)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!K.url&&!K.data&&!K.range)throw new Error("Invalid parameter object: need either .data, .range or .url");O=K}const P=Object.create(null);let H=null,E=null;for(const x in O){const U=O[x];switch(x){case"url":if("undefined"!=typeof window)try{P[x]=new URL(U,window.location).href;continue}catch(le){(0,_util.warn)(`Cannot create valid URL: "${le}".`)}else if("string"==typeof U||U instanceof URL){P[x]=U.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":H=U;continue;case"worker":E=U;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&U instanceof Buffer)P[x]=new Uint8Array(U);else{if(U instanceof Uint8Array)break;if("string"==typeof U)P[x]=(0,_util.stringToBytes)(U);else if("object"!=typeof U||null===U||isNaN(U.length)){if(!(0,_util.isArrayBuffer)(U))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");P[x]=new Uint8Array(U)}else P[x]=new Uint8Array(U)}continue}P[x]=U}if(P.rangeChunkSize=P.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,P.CMapReaderFactory=P.CMapReaderFactory||DefaultCMapReaderFactory,P.StandardFontDataFactory=P.StandardFontDataFactory||DefaultStandardFontDataFactory,P.ignoreErrors=!0!==P.stopAtErrors,P.fontExtraProperties=!0===P.fontExtraProperties,P.pdfBug=!0===P.pdfBug,P.enableXfa=!0===P.enableXfa,("string"!=typeof P.docBaseUrl||(0,_display_utils.isDataScheme)(P.docBaseUrl))&&(P.docBaseUrl=null),Number.isInteger(P.maxImageSize)||(P.maxImageSize=-1),"boolean"!=typeof P.useWorkerFetch&&(P.useWorkerFetch=P.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&P.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof P.isEvalSupported&&(P.isEvalSupported=!0),"boolean"!=typeof P.disableFontFace&&(P.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof P.useSystemFonts&&(P.useSystemFonts=!_is_node.isNodeJS&&!P.disableFontFace),void 0===P.ownerDocument&&(P.ownerDocument=globalThis.document),"boolean"!=typeof P.disableRange&&(P.disableRange=!1),"boolean"!=typeof P.disableStream&&(P.disableStream=!1),"boolean"!=typeof P.disableAutoFetch&&(P.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(P.verbosity),!E){const x={verbosity:P.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};E=x.port?PDFWorker.fromPort(x):new PDFWorker(x),r._worker=E}const ee=r.docId;return E.promise.then(function(){if(r.destroyed)throw new Error("Loading aborted");const x=_fetchDocument(E,P,H,ee),U=new Promise(function(le){let xe;H?xe=new _transport_stream.PDFDataTransportStream({length:P.length,initialData:P.initialData,progressiveDone:P.progressiveDone,contentDispositionFilename:P.contentDispositionFilename,disableRange:P.disableRange,disableStream:P.disableStream},H):P.data||(xe=createPDFNetworkStream({url:P.url,length:P.length,httpHeaders:P.httpHeaders,withCredentials:P.withCredentials,rangeChunkSize:P.rangeChunkSize,disableRange:P.disableRange,disableStream:P.disableStream})),le(xe)});return Promise.all([x,U]).then(function([le,xe]){if(r.destroyed)throw new Error("Loading aborted");const re=new _message_handler.MessageHandler(ee,le,E.port),ce=new WorkerTransport(re,r,xe,P);r._transport=ce,re.send("Ready",null)})}).catch(r._capability.reject),r}function _fetchDocument(K,r,O,P){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(function*(K,r,O,P){if(K.destroyed)throw new Error("Worker was destroyed");O&&(r.length=O.length,r.initialData=O.initialData,r.progressiveDone=O.progressiveDone,r.contentDispositionFilename=O.contentDispositionFilename);const H=yield K.messageHandler.sendWithPromise("GetDocRequest",{docId:P,apiVersion:"2.13.216",source:{data:r.data,url:r.url,password:r.password,disableAutoFetch:r.disableAutoFetch,rangeChunkSize:r.rangeChunkSize,length:r.length},maxImageSize:r.maxImageSize,disableFontFace:r.disableFontFace,docBaseUrl:r.docBaseUrl,ignoreErrors:r.ignoreErrors,isEvalSupported:r.isEvalSupported,fontExtraProperties:r.fontExtraProperties,enableXfa:r.enableXfa,useSystemFonts:r.useSystemFonts,cMapUrl:r.useWorkerFetch?r.cMapUrl:null,standardFontDataUrl:r.useWorkerFetch?r.standardFontDataUrl:null});if(K.destroyed)throw new Error("Worker was destroyed");return H})).apply(this,arguments)}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;class PDFDocumentLoadingTask{static get idCounters(){return(0,_util.shadow)(this,"idCounters",{doc:0})}constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.idCounters.doc++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){var r=this;return _asyncToGenerator(function*(){var O;r.destroyed=!0,yield null==(O=r._transport)?void 0:O.destroy(),r._transport=null,r._worker&&(r._worker.destroy(),r._worker=null)})()}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(r,O,P=!1,H=null){this.length=r,this.initialData=O,this.progressiveDone=P,this.contentDispositionFilename=H,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(r){this._rangeListeners.push(r)}addProgressListener(r){this._progressListeners.push(r)}addProgressiveReadListener(r){this._progressiveReadListeners.push(r)}addProgressiveDoneListener(r){this._progressiveDoneListeners.push(r)}onDataRange(r,O){for(const P of this._rangeListeners)P(r,O)}onDataProgress(r,O){this._readyCapability.promise.then(()=>{for(const P of this._progressListeners)P(r,O)})}onDataProgressiveRead(r){this._readyCapability.promise.then(()=>{for(const O of this._progressiveReadListeners)O(r)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const r of this._progressiveDoneListeners)r()})}transportReady(){this._readyCapability.resolve()}requestDataRange(r,O){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(r,O){var H,P=this;this._pdfInfo=r,this._transport=O,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:(H=_asyncToGenerator(function*(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),P.stats||{streamTypes:{},fontTypes:{}}}),function(){return H.apply(this,arguments)})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(r){return this._transport.getPage(r)}getPageIndex(r){return this._transport.getPageIndex(r)}getDestinations(){return this._transport.getDestinations()}getDestination(r){return this._transport.getDestination(r)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(r=!1){return this._transport.startCleanup(r||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(r,O,P,H,E=!1){this._pageIndex=r,this._pageInfo=O,this._ownerDocument=H,this._transport=P,this._stats=E?new _display_utils.StatTimer:null,this._pdfBug=E,this.commonObjs=P.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:r,rotation:O=this.rotate,offsetX:P=0,offsetY:H=0,dontFlip:E=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:r,rotation:O,offsetX:P,offsetY:H,dontFlip:E})}getAnnotations({intent:r="display"}={}){const O=this._transport.getRenderingIntent(r);let P=this._annotationPromises.get(O.cacheKey);return P||(P=this._transport.getAnnotations(this._pageIndex,O.renderingIntent),this._annotationPromises.set(O.cacheKey,P),P=P.then(H=>{for(const E of H)void 0!==E.titleObj&&Object.defineProperty(E,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),E.titleObj.str)}),void 0!==E.contentsObj&&Object.defineProperty(E,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),E.contentsObj.str)});return H})),P}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}getXfa(){var r=this;return _asyncToGenerator(function*(){var O;return(null==(O=r._transport._htmlForXfa)?void 0:O.children[r._pageIndex])||null})()}render({canvasContext:r,viewport:O,intent:P="display",annotationMode:H=_util.AnnotationMode.ENABLE,transform:E=null,imageLayer:ee=null,canvasFactory:x=null,background:U=null,optionalContentConfigPromise:le=null,annotationCanvasMap:xe=null}){var Ce,e;void 0!==(null==(Ce=arguments[0])?void 0:Ce.renderInteractiveForms)&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&H===_util.AnnotationMode.ENABLE&&(H=_util.AnnotationMode.ENABLE_FORMS)),void 0!==(null==(e=arguments[0])?void 0:e.includeAnnotationStorage)&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&H===_util.AnnotationMode.ENABLE&&(H=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const re=this._transport.getRenderingIntent(P,H);this.pendingCleanup=!1,le||(le=this._transport.getOptionalContentConfig());let ce=this._intentStates.get(re.cacheKey);ce||(ce=Object.create(null),this._intentStates.set(re.cacheKey,ce)),ce.streamReaderCancelTimeout&&(clearTimeout(ce.streamReaderCancelTimeout),ce.streamReaderCancelTimeout=null);const L=x||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),J=!!(re.renderingIntent&_util.RenderingIntentFlag.PRINT);ce.displayReadyCapability||(ce.displayReadyCapability=(0,_util.createPromiseCapability)(),ce.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(re));const we=z=>{ce.renderTasks.delete(ge),(this.cleanupAfterRender||J)&&(this.pendingCleanup=!0),this._tryCleanup(),z?(ge.capability.reject(z),this._abortOperatorList({intentState:ce,reason:z instanceof Error?z:new Error(z)})):ge.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},ge=new InternalRenderTask({callback:we,params:{canvasContext:r,viewport:O,transform:E,imageLayer:ee,background:U},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:xe,operatorList:ce.operatorList,pageIndex:this._pageIndex,canvasFactory:L,useRequestAnimationFrame:!J,pdfBug:this._pdfBug});(ce.renderTasks||(ce.renderTasks=new Set)).add(ge);const fe=ge.task;return Promise.all([ce.displayReadyCapability.promise,le]).then(([z,je])=>{this.pendingCleanup?we():(this._stats&&this._stats.time("Rendering"),ge.initializeGraphics({transparency:z,optionalContentConfig:je}),ge.operatorListChanged())}).catch(we),fe}getOperatorList({intent:r="display",annotationMode:O=_util.AnnotationMode.ENABLE}={}){const H=this._transport.getRenderingIntent(r,O,!0);let ee,E=this._intentStates.get(H.cacheKey);return E||(E=Object.create(null),this._intentStates.set(H.cacheKey,E)),E.opListReadCapability||(ee=Object.create(null),ee.operatorListChanged=function(){E.operatorList.lastChunk&&(E.opListReadCapability.resolve(E.operatorList),E.renderTasks.delete(ee))},E.opListReadCapability=(0,_util.createPromiseCapability)(),(E.renderTasks||(E.renderTasks=new Set)).add(ee),E.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(H)),E.opListReadCapability.promise}streamTextContent({disableCombineTextItems:r=!1,includeMarkedContent:O=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==r,includeMarkedContent:!0===O},{highWaterMark:100,size:H=>H.items.length})}getTextContent(r={}){if(this._transport._htmlForXfa)return this.getXfa().then(P=>_xfa_text.XfaText.textContent(P));const O=this.streamTextContent(r);return new Promise(function(P,H){const ee=O.getReader(),x={items:[],styles:Object.create(null)};!function E(){ee.read().then(function({value:U,done:le}){le?P(x):(Object.assign(x.styles,U.styles),x.items.push(...U.items),E())},H)}()})}getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}_destroy(){this.destroyed=!0;const r=[];for(const O of this._intentStates.values())if(this._abortOperatorList({intentState:O,reason:new Error("Page was destroyed."),force:!0}),!O.opListReadCapability)for(const P of O.renderTasks)r.push(P.completed),P.cancel();return this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(r)}cleanup(r=!1){return this.pendingCleanup=!0,this._tryCleanup(r)}_tryCleanup(r=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:O,operatorList:P}of this._intentStates.values())if(O.size>0||!P.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,r&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}_startRenderPage(r,O){const P=this._intentStates.get(O);!P||(this._stats&&this._stats.timeEnd("Page Request"),P.displayReadyCapability&&P.displayReadyCapability.resolve(r))}_renderPageChunk(r,O){for(let P=0,H=r.length;P{H.read().then(({value:x,done:U})=>{U?E.streamReader=null:this._transport.destroyed||(this._renderPageChunk(x,E),ee())},x=>{if(E.streamReader=null,!this._transport.destroyed){if(E.operatorList){E.operatorList.lastChunk=!0;for(const U of E.renderTasks)U.operatorListChanged();this._tryCleanup()}if(E.displayReadyCapability)E.displayReadyCapability.reject(x);else{if(!E.opListReadCapability)throw x;E.opListReadCapability.reject(x)}}})};ee()}_abortOperatorList({intentState:r,reason:O,force:P=!1}){if(r.streamReader){if(!P){if(r.renderTasks.size>0)return;if(O instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:r,reason:O,force:!0}),r.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(r.streamReader.cancel(new _util.AbortException(O.message)).catch(()=>{}),r.streamReader=null,!this._transport.destroyed){for(const[H,E]of this._intentStates)if(E===r){this._intentStates.delete(H);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(r,O){const P={data:structuredClone(r,O)};this._deferred.then(()=>{for(const H of this._listeners)H.call(this,P)})}addEventListener(r,O){this._listeners.push(O)}removeEventListener(r,O){const P=this._listeners.indexOf(O);this._listeners.splice(P,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const K=null==(St=null==document?void 0:document.currentScript)?void 0:St.src;K&&(PDFWorkerUtil.fallbackWorkerSrc=K.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.createCDNWrapper=function(K){return URL.createObjectURL(new Blob([`importScripts("${K}");`]))};class PDFWorker{static get _workerPorts(){return(0,_util.shadow)(this,"_workerPorts",new WeakMap)}constructor({name:K=null,port:r=null,verbosity:O=(0,_util.getVerbosityLevel)()}={}){if(r&&PDFWorker._workerPorts.has(r))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=K,this.destroyed=!1,this.verbosity=O,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,r)return PDFWorker._workerPorts.set(r,this),void this._initializeFromPort(r);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(K){this._port=K,this._messageHandler=new _message_handler.MessageHandler("main","worker",K),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let K=PDFWorker.workerSrc;try{(0,_util.isSameOrigin)(window.location.href,K)||(K=PDFWorkerUtil.createCDNWrapper(new URL(K,window.location).href));const r=new Worker(K),O=new _message_handler.MessageHandler("main","worker",r),P=()=>{r.removeEventListener("error",H),O.destroy(),r.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},H=()=>{this._webWorker||P()};r.addEventListener("error",H),O.on("test",ee=>{r.removeEventListener("error",H),this.destroyed?P():ee?(this._messageHandler=O,this._port=r,this._webWorker=r,this._readyCapability.resolve(),O.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),O.destroy(),r.terminate())}),O.on("ready",ee=>{if(r.removeEventListener("error",H),this.destroyed)P();else try{E()}catch(x){this._setupFakeWorker()}});const E=()=>{const ee=new Uint8Array([255]);try{O.send("test",ee,[ee.buffer])}catch(x){(0,_util.warn)("Cannot use postMessage transfers."),ee[0]=0,O.send("test",ee)}};return void E()}catch(r){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(K=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const r=new LoopbackPort;this._port=r;const O="fake"+PDFWorkerUtil.fakeWorkerId++,P=new _message_handler.MessageHandler(O+"_worker",O,r);K.setup(P,r);const H=new _message_handler.MessageHandler(O,O+"_worker",r);this._messageHandler=H,this._readyCapability.resolve(),H.send("configure",{verbosity:this.verbosity})}).catch(K=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${K.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker._workerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(K){if(!(null==K?void 0:K.port))throw new Error("PDFWorker.fromPort - invalid method signature.");return this._workerPorts.has(K.port)?this._workerPorts.get(K.port):new PDFWorker(K)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var K;try{return(null==(K=globalThis.pdfjsWorker)?void 0:K.WorkerMessageHandler)||null}catch(r){return null}}static get _setupFakeWorkerGlobal(){var _this4=this;const loader=function(){var _ref2=_asyncToGenerator(function*(){const mainWorkerMessageHandler=_this4._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(_this4.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this4.workerSrc),window.pdfjsWorker.WorkerMessageHandler});return function(){return _ref2.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{constructor(r,O,P,H){Qo(this,oe,null),Qo(this,S,new Map),Qo(this,a,new Map),Qo(this,C,null),this.messageHandler=r,this.loadingTask=O,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:O.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:H.ownerDocument,styleElement:H.styleElement}),this._params=H,H.useWorkerFetch||(this.CMapReaderFactory=new H.CMapReaderFactory({baseUrl:H.cMapUrl,isCompressed:H.cMapPacked}),this.StandardFontDataFactory=new H.StandardFontDataFactory({baseUrl:H.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=P,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return ar(this,oe)}getRenderingIntent(r,O=_util.AnnotationMode.ENABLE,P=!1){let H=_util.RenderingIntentFlag.DISPLAY,E="";switch(r){case"any":H=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":H=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${r}`)}switch(O){case _util.AnnotationMode.DISABLE:H+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:H+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:H+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,E=this.annotationStorage.lastModified;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${O}`)}return P&&(H+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:H,cacheKey:`${H}_${E}`}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const r=[];for(const P of ar(this,S).values())r.push(P._destroy());ar(this,S).clear(),ar(this,a).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const O=this.messageHandler.sendWithPromise("Terminate",null);return r.push(O),Promise.all(r).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),qa(this,C,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:r,loadingTask:O}=this;r.on("GetReader",(P,H)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=E=>{this._lastProgress={loaded:E.loaded,total:E.total}},H.onPull=()=>{this._fullReader.read().then(function({value:E,done:ee}){ee?H.close():((0,_util.assert)((0,_util.isArrayBuffer)(E),"GetReader - expected an ArrayBuffer."),H.enqueue(new Uint8Array(E),1,[E]))}).catch(E=>{H.error(E)})},H.onCancel=E=>{this._fullReader.cancel(E),H.ready.catch(ee=>{if(!this.destroyed)throw ee})}}),r.on("ReaderHeadersReady",P=>{const H=(0,_util.createPromiseCapability)(),E=this._fullReader;return E.headersReady.then(()=>{var ee;(!E.isStreamingSupported||!E.isRangeSupported)&&(this._lastProgress&&(null==(ee=O.onProgress)||ee.call(O,this._lastProgress)),E.onProgress=x=>{var U;null==(U=O.onProgress)||U.call(O,{loaded:x.loaded,total:x.total})}),H.resolve({isStreamingSupported:E.isStreamingSupported,isRangeSupported:E.isRangeSupported,contentLength:E.contentLength})},H.reject),H.promise}),r.on("GetRangeReader",(P,H)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const E=this._networkStream.getRangeReader(P.begin,P.end);E?(H.onPull=()=>{E.read().then(function({value:ee,done:x}){x?H.close():((0,_util.assert)((0,_util.isArrayBuffer)(ee),"GetRangeReader - expected an ArrayBuffer."),H.enqueue(new Uint8Array(ee),1,[ee]))}).catch(ee=>{H.error(ee)})},H.onCancel=ee=>{E.cancel(ee),H.ready.catch(x=>{if(!this.destroyed)throw x})}):H.close()}),r.on("GetDoc",({pdfInfo:P})=>{this._numPages=P.numPages,this._htmlForXfa=P.htmlForXfa,delete P.htmlForXfa,O._capability.resolve(new PDFDocumentProxy(P,this))}),r.on("DocException",function(P){let H;switch(P.name){case"PasswordException":H=new _util.PasswordException(P.message,P.code);break;case"InvalidPDFException":H=new _util.InvalidPDFException(P.message);break;case"MissingPDFException":H=new _util.MissingPDFException(P.message);break;case"UnexpectedResponseException":H=new _util.UnexpectedResponseException(P.message,P.status);break;case"UnknownErrorException":H=new _util.UnknownErrorException(P.message,P.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}O._capability.reject(H)}),r.on("PasswordRequest",P=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),O.onPassword){const H=E=>{E instanceof Error?this._passwordCapability.reject(E):this._passwordCapability.resolve({password:E})};try{O.onPassword(H,P.code)}catch(E){this._passwordCapability.reject(E)}}else this._passwordCapability.reject(new _util.PasswordException(P.message,P.code));return this._passwordCapability.promise}),r.on("DataLoaded",P=>{var H;null==(H=O.onProgress)||H.call(O,{loaded:P.length,total:P.length}),this.downloadInfoCapability.resolve(P)}),r.on("StartRenderPage",P=>{this.destroyed||ar(this,S).get(P.pageIndex)._startRenderPage(P.transparency,P.cacheKey)}),r.on("commonobj",([P,H,E])=>{var ee;if(!this.destroyed&&!this.commonObjs.has(P))switch(H){case"Font":const x=this._params;if("error"in E){const xe=E.error;(0,_util.warn)(`Error during font loading: ${xe}`),this.commonObjs.resolve(P,xe);break}let U=null;x.pdfBug&&(null==(ee=globalThis.FontInspector)?void 0:ee.enabled)&&(U={registerFont(xe,re){globalThis.FontInspector.fontAdded(xe,re)}});const le=new _font_loader.FontFaceObject(E,{isEvalSupported:x.isEvalSupported,disableFontFace:x.disableFontFace,ignoreErrors:x.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:U});this.fontLoader.bind(le).catch(xe=>r.sendWithPromise("FontFallback",{id:P})).finally(()=>{!x.fontExtraProperties&&le.data&&(le.data=null),this.commonObjs.resolve(P,le)});break;case"FontPath":case"Image":this.commonObjs.resolve(P,E);break;default:throw new Error(`Got unknown common object type ${H}`)}}),r.on("obj",([P,H,E,ee])=>{var U;if(this.destroyed)return;const x=ar(this,S).get(H);if(!x.objs.has(P))switch(E){case"Image":x.objs.resolve(P,ee),(null==(U=null==ee?void 0:ee.data)?void 0:U.length)>8e6&&(x.cleanupAfterRender=!0);break;case"Pattern":x.objs.resolve(P,ee);break;default:throw new Error(`Got unknown object type ${E}`)}}),r.on("DocProgress",P=>{var H;this.destroyed||null==(H=O.onProgress)||H.call(O,{loaded:P.loaded,total:P.total})}),r.on("DocStats",P=>{this.destroyed||qa(this,oe,Object.freeze({streamTypes:Object.freeze(P.streamTypes),fontTypes:Object.freeze(P.fontTypes)}))}),r.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),r.on("FetchBuiltInCMap",P=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(P):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),r.on("FetchStandardFontData",P=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(P):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature({featureId:r}){var O,P;this.destroyed||null==(P=(O=this.loadingTask).onUnsupportedFeature)||P.call(O,r)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(r){if(!Number.isInteger(r)||r<=0||r>this._numPages)return Promise.reject(new Error("Invalid page request."));const O=r-1,P=ar(this,a).get(O);if(P)return P;const H=this.messageHandler.sendWithPromise("GetPage",{pageIndex:O}).then(E=>{if(this.destroyed)throw new Error("Transport destroyed");const ee=new PDFPageProxy(O,E,this,this._params.ownerDocument,this._params.pdfBug);return ar(this,S).set(O,ee),ee});return ar(this,a).set(O,H),H}getPageIndex(r){return"object"!=typeof r||null===r||!Number.isInteger(r.num)||r.num<0||!Number.isInteger(r.gen)||r.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:r.num,gen:r.gen})}getAnnotations(r,O){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:r,intent:O})}saveDocument(){var r,O;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!=(O=null==(r=this._fullReader)?void 0:r.filename)?O:null}).finally(()=>{this.annotationStorage.resetModified()})}getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(r){return"string"!=typeof r?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:r})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(r){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:r})}getStructTree(r){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:r})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(r=>new _optional_content_config.OptionalContentConfig(r))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return ar(this,C)||qa(this,C,this.messageHandler.sendWithPromise("GetMetadata",null).then(r=>{var O,P,H,E;return{info:r[0],metadata:r[1]?new _metadata.Metadata(r[1]):null,contentDispositionFilename:null!=(P=null==(O=this._fullReader)?void 0:O.filename)?P:null,contentLength:null!=(E=null==(H=this._fullReader)?void 0:H.contentLength)?E:null}}))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(r=!1){var O=this;return _asyncToGenerator(function*(){if(yield O.messageHandler.sendWithPromise("Cleanup",null),!O.destroyed){for(const P of ar(O,S).values())if(!P.cleanup())throw new Error(`startCleanup: Page ${P.pageNumber} is currently rendering.`);O.commonObjs.clear(),r||O.fontLoader.clear(),qa(O,C,null),O._getFieldObjectsPromise=null,O._hasJSActionsPromise=null}})()}get loadingParams(){const r=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:r.disableAutoFetch,enableXfa:r.enableXfa})}}oe=new WeakMap,S=new WeakMap,a=new WeakMap,C=new WeakMap;class PDFObjects{constructor(){Qo(this,ze),Qo(this,N,Object.create(null))}get(r,O=null){if(O){const H=Hl(this,ze,XM).call(this,r);return H.capability.promise.then(()=>O(H.data)),null}const P=ar(this,N)[r];if(!(null==P?void 0:P.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${r}.`);return P.data}has(r){const O=ar(this,N)[r];return(null==O?void 0:O.capability.settled)||!1}resolve(r,O=null){const P=Hl(this,ze,XM).call(this,r);P.data=O,P.capability.resolve()}clear(){qa(this,N,Object.create(null))}}N=new WeakMap,ze=new WeakSet,XM=function(r){return ar(this,N)[r]||(ar(this,N)[r]={capability:(0,_util.createPromiseCapability)(),data:null})};class RenderTask{constructor(r){this._internalRenderTask=r,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}exports.RenderTask=RenderTask;class InternalRenderTask{static get canvasInUse(){return(0,_util.shadow)(this,"canvasInUse",new WeakSet)}constructor({callback:r,params:O,objs:P,commonObjs:H,annotationCanvasMap:E,operatorList:ee,pageIndex:x,canvasFactory:U,useRequestAnimationFrame:le=!1,pdfBug:xe=!1}){this.callback=r,this.params=O,this.objs=P,this.commonObjs=H,this.annotationCanvasMap=E,this.operatorListIdx=null,this.operatorList=ee,this._pageIndex=x,this.canvasFactory=U,this._pdfBug=xe,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===le&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=O.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:r=!1,optionalContentConfig:O}){var U;if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.canvasInUse.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.canvasInUse.add(this._canvas)}this._pdfBug&&(null==(U=globalThis.StepperManager)?void 0:U.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:P,viewport:H,transform:E,imageLayer:ee,background:x}=this.params;this.gfx=new _canvas.CanvasGraphics(P,this.commonObjs,this.objs,this.canvasFactory,ee,O,this.annotationCanvasMap),this.gfx.beginDrawing({transform:E,viewport:H,transparency:r,background:x}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(r=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&InternalRenderTask.canvasInUse.delete(this._canvas),this.callback(r||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var r=this;return _asyncToGenerator(function*(){r.cancelled||(r.operatorListIdx=r.gfx.executeOperatorList(r.operatorList,r.operatorListIdx,r._continueBound,r.stepper),r.operatorListIdx===r.operatorList.argsArray.length&&(r.running=!1,r.operatorList.lastChunk&&(r.gfx.endDrawing(),r._canvas&&InternalRenderTask.canvasInUse.delete(r._canvas),r.callback())))})()}}const version="2.13.216";exports.version=version;const build="399a0ec60";exports.build=build},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.StatTimer=oe.RenderingCancelledException=oe.PixelsPerInch=oe.PageViewport=oe.PDFDateString=oe.DOMStandardFontDataFactory=oe.DOMSVGFactory=oe.DOMCanvasFactory=oe.DOMCMapReaderFactory=void 0,oe.deprecated=function(e){console.log("Deprecated API usage: "+e)},oe.getFilenameFromUrl=function(e){const z=e.indexOf("#"),je=e.indexOf("?"),rt=Math.min(z>0?z:e.length,je>0?je:e.length);return e.substring(e.lastIndexOf("/",rt)+1,rt)},oe.getPdfFilenameFromUrl=function(e,z="document.pdf"){if("string"!=typeof e)return z;if(x(e))return(0,C.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),z;const rt=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,it=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let ct=rt.exec(it[1])||rt.exec(it[2])||rt.exec(it[3]);if(ct&&(ct=ct[0],ct.includes("%")))try{ct=rt.exec(decodeURIComponent(ct))[0]}catch(g){}return ct||z},oe.getXfaPageViewport=function(e,{scale:z=1,rotation:je=0}){const{width:rt,height:it}=e.attributes.style,ct=[0,0,parseInt(rt),parseInt(it)];return new E({viewBox:ct,scale:z,rotation:je})},oe.isDataScheme=x,oe.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},oe.isValidFetchUrl=ce,oe.loadScript=function(e,z=!1){return new Promise((je,rt)=>{const it=document.createElement("script");it.src=e,it.onload=function(ct){z&&it.remove(),je(ct)},it.onerror=function(){rt(new Error(`Cannot load script at: ${it.src}`))},(document.head||document.documentElement).appendChild(it)})};var a=S(6),C=S(1);const Ce=class{};let we,ze=Ce;function K(e){return r.apply(this,arguments)}function r(){return(r=_asyncToGenerator(function*(e,z=!1){if(ce(e,document.baseURI)){const je=yield fetch(e);if(!je.ok)throw new Error(je.statusText);return z?new Uint8Array(yield je.arrayBuffer()):(0,C.stringToBytes)(yield je.text())}return new Promise((je,rt)=>{const it=new XMLHttpRequest;it.open("GET",e,!0),z&&(it.responseType="arraybuffer"),it.onreadystatechange=()=>{if(it.readyState===XMLHttpRequest.DONE){if(200===it.status||0===it.status){let ct;if(z&&it.response?ct=new Uint8Array(it.response):!z&&it.responseText&&(ct=(0,C.stringToBytes)(it.responseText)),ct)return void je(ct)}rt(new Error(it.statusText))}},it.send(null)})})).apply(this,arguments)}jb(ze,"CSS",96),jb(ze,"PDF",72),jb(ze,"PDF_TO_CSS_UNITS",Ce.CSS/Ce.PDF),oe.PixelsPerInch=ze,oe.DOMCanvasFactory=class extends a.BaseCanvasFactory{constructor({ownerDocument:z=globalThis.document}={}){super(),this._document=z}_createCanvas(z,je){const rt=this._document.createElement("canvas");return rt.width=z,rt.height=je,rt}},oe.DOMCMapReaderFactory=class extends a.BaseCMapReaderFactory{_fetchData(z,je){return K(z,this.isCompressed).then(rt=>({cMapData:rt,compressionType:je}))}},oe.DOMStandardFontDataFactory=class extends a.BaseStandardFontDataFactory{_fetchData(z){return K(z,!0)}},oe.DOMSVGFactory=class extends a.BaseSVGFactory{_createSVG(z){return document.createElementNS("http://www.w3.org/2000/svg",z)}};class E{constructor({viewBox:z,scale:je,rotation:rt,offsetX:it=0,offsetY:ct=0,dontFlip:g=!1}){this.viewBox=z,this.scale=je,this.rotation=rt,this.offsetX=it,this.offsetY=ct;const qe=(z[2]+z[0])/2,Ve=(z[3]+z[1])/2;let He,X,Le,Te,Ze,he,Ne,Me;switch((rt%=360)<0&&(rt+=360),rt){case 180:He=-1,X=0,Le=0,Te=1;break;case 90:He=0,X=1,Le=1,Te=0;break;case 270:He=0,X=-1,Le=-1,Te=0;break;case 0:He=1,X=0,Le=0,Te=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}g&&(Le=-Le,Te=-Te),0===He?(Ze=Math.abs(Ve-z[1])*je+it,he=Math.abs(qe-z[0])*je+ct,Ne=Math.abs(z[3]-z[1])*je,Me=Math.abs(z[2]-z[0])*je):(Ze=Math.abs(qe-z[0])*je+it,he=Math.abs(Ve-z[1])*je+ct,Ne=Math.abs(z[2]-z[0])*je,Me=Math.abs(z[3]-z[1])*je),this.transform=[He*je,X*je,Le*je,Te*je,Ze-He*je*qe-Le*je*Ve,he-X*je*qe-Te*je*Ve],this.width=Ne,this.height=Me}clone({scale:z=this.scale,rotation:je=this.rotation,offsetX:rt=this.offsetX,offsetY:it=this.offsetY,dontFlip:ct=!1}={}){return new E({viewBox:this.viewBox.slice(),scale:z,rotation:je,offsetX:rt,offsetY:it,dontFlip:ct})}convertToViewportPoint(z,je){return C.Util.applyTransform([z,je],this.transform)}convertToViewportRectangle(z){const je=C.Util.applyTransform([z[0],z[1]],this.transform),rt=C.Util.applyTransform([z[2],z[3]],this.transform);return[je[0],je[1],rt[0],rt[1]]}convertToPdfPoint(z,je){return C.Util.applyInverseTransform([z,je],this.transform)}}function x(e){const z=e.length;let je=0;for(;jeje&&(je=it.length)}for(const rt of this.times){const it=rt.end-rt.start;z.push(`${rt.name.padEnd(je)} ${it}ms\n`)}return z.join("")}},oe.PDFDateString=class{static toDateObject(z){if(!z||"string"!=typeof z)return null;we||(we=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const je=we.exec(z);if(!je)return null;const rt=parseInt(je[1],10);let it=parseInt(je[2],10);it=it>=1&&it<=12?it-1:0;let ct=parseInt(je[3],10);ct=ct>=1&&ct<=31?ct:1;let g=parseInt(je[4],10);g=g>=0&&g<=23?g:0;let qe=parseInt(je[5],10);qe=qe>=0&&qe<=59?qe:0;let Ve=parseInt(je[6],10);Ve=Ve>=0&&Ve<=59?Ve:0;const He=je[7]||"Z";let X=parseInt(je[8],10);X=X>=0&&X<=23?X:0;let Le=parseInt(je[9],10)||0;return Le=Le>=0&&Le<=59?Le:0,"-"===He?(g+=X,qe+=Le):"+"===He&&(g-=X,qe-=Le),new Date(Date.UTC(rt,it,ct,g,qe,Ve))}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.BaseStandardFontDataFactory=oe.BaseSVGFactory=oe.BaseCanvasFactory=oe.BaseCMapReaderFactory=void 0;var a=S(1);class C{constructor(){this.constructor===C&&(0,a.unreachable)("Cannot initialize BaseCanvasFactory.")}create(r,O){if(r<=0||O<=0)throw new Error("Invalid canvas size");const P=this._createCanvas(r,O);return{canvas:P,context:P.getContext("2d")}}reset(r,O,P){if(!r.canvas)throw new Error("Canvas is not specified");if(O<=0||P<=0)throw new Error("Invalid canvas size");r.canvas.width=O,r.canvas.height=P}destroy(r){if(!r.canvas)throw new Error("Canvas is not specified");r.canvas.width=0,r.canvas.height=0,r.canvas=null,r.context=null}_createCanvas(r,O){(0,a.unreachable)("Abstract method `_createCanvas` called.")}}oe.BaseCanvasFactory=C;class N{constructor({baseUrl:r=null,isCompressed:O=!1}){this.constructor===N&&(0,a.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=r,this.isCompressed=O}fetch({name:r}){var O=this;return _asyncToGenerator(function*(){if(!O.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!r)throw new Error("CMap name must be specified.");const P=O.baseUrl+r+(O.isCompressed?".bcmap":"");return O._fetchData(P,O.isCompressed?a.CMapCompressionType.BINARY:a.CMapCompressionType.NONE).catch(E=>{throw new Error(`Unable to load ${O.isCompressed?"binary ":""}CMap at: ${P}`)})})()}_fetchData(r,O){(0,a.unreachable)("Abstract method `_fetchData` called.")}}oe.BaseCMapReaderFactory=N;class ze{constructor({baseUrl:r=null}){this.constructor===ze&&(0,a.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=r}fetch({filename:r}){var O=this;return _asyncToGenerator(function*(){if(!O.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!r)throw new Error("Font filename must be specified.");const P=`${O.baseUrl}${r}`;return O._fetchData(P).catch(H=>{throw new Error(`Unable to load font data at: ${P}`)})})()}_fetchData(r){(0,a.unreachable)("Abstract method `_fetchData` called.")}}oe.BaseStandardFontDataFactory=ze;class p{constructor(){this.constructor===p&&(0,a.unreachable)("Cannot initialize BaseSVGFactory.")}create(r,O){if(r<=0||O<=0)throw new Error("Invalid SVG dimensions");const P=this._createSVG("svg:svg");return P.setAttribute("version","1.1"),P.setAttribute("width",`${r}px`),P.setAttribute("height",`${O}px`),P.setAttribute("preserveAspectRatio","none"),P.setAttribute("viewBox",`0 0 ${r} ${O}`),P}createElement(r){if("string"!=typeof r)throw new Error("Invalid SVG element type");return this._createSVG(r)}_createSVG(r){(0,a.unreachable)("Abstract method `_createSVG` called.")}}oe.BaseSVGFactory=p},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.FontLoader=oe.FontFaceObject=void 0;var a=S(1);class C{constructor({docId:K,onUnsupportedFeature:r,ownerDocument:O=globalThis.document,styleElement:P=null}){this.constructor===C&&(0,a.unreachable)("Cannot initialize BaseFontLoader."),this.docId=K,this._onUnsupportedFeature=r,this._document=O,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(K){this.nativeFontFaces.push(K),this._document.fonts.add(K)}insertRule(K){let r=this.styleElement;r||(r=this.styleElement=this._document.createElement("style"),r.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(r));const O=r.sheet;O.insertRule(K,O.cssRules.length)}clear(){for(const K of this.nativeFontFaces)this._document.fonts.delete(K);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}bind(K){var r=this;return _asyncToGenerator(function*(){if(K.attached||K.missingFile)return;if(K.attached=!0,r.isFontLoadingAPISupported){const P=K.createNativeFontFace();if(P){r.addNativeFontFace(P);try{yield P.loaded}catch(H){throw r._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,a.warn)(`Failed to load font '${P.family}': '${H}'.`),K.disableFontFace=!0,H}}return}const O=K.createFontFaceRule();if(O){if(r.insertRule(O),r.isSyncFontLoadingSupported)return;yield new Promise(P=>{const H=r._queueLoadingCallback(P);r._prepareFontLoadEvent([O],[K],H)})}})()}_queueLoadingCallback(K){(0,a.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){var r;const K=!!(null==(r=this._document)?void 0:r.fonts);return(0,a.shadow)(this,"isFontLoadingAPISupported",K)}get isSyncFontLoadingSupported(){(0,a.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,a.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(K,r,O){(0,a.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let N;oe.FontLoader=N,oe.FontLoader=N=class extends C{constructor(K){super(K),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let K=!1;if("undefined"==typeof navigator)K=!0;else{const r=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(null==r?void 0:r[1])>=14&&(K=!0)}return(0,a.shadow)(this,"isSyncFontLoadingSupported",K)}_queueLoadingCallback(K){const O=this.loadingContext,P={id:"pdfjs-font-loading-"+O.nextRequestId++,done:!1,complete:function(){for((0,a.assert)(!P.done,"completeRequest() cannot be called twice."),P.done=!0;O.requests.length>0&&O.requests[0].done;){const H=O.requests.shift();setTimeout(H.callback,0)}},callback:K};return O.requests.push(P),P}get _loadTestFont(){return(0,a.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(K,r,O){function P(je,rt){return je.charCodeAt(rt)<<24|je.charCodeAt(rt+1)<<16|je.charCodeAt(rt+2)<<8|255&je.charCodeAt(rt+3)}function H(je,rt,it,ct){return je.substring(0,rt)+ct+je.substring(rt+it)}let E,ee;const x=this._document.createElement("canvas");x.width=1,x.height=1;const U=x.getContext("2d");let le=0;const re=`lt${Date.now()}${this.loadTestFontId++}`;let ce=this._loadTestFont;ce=H(ce,976,re.length,re);const we=1482184792;let ge=P(ce,16);for(E=0,ee=re.length-3;E30)return(0,a.warn)("Load test font never loaded."),void rt();U.font="30px "+je,U.fillText(".",0,20),U.getImageData(0,0,1,1).data[3]>0?rt():setTimeout(xe.bind(null,je,rt))}(re,()=>{z.remove(),O.complete()})}},oe.FontFaceObject=class{constructor(K,{isEvalSupported:r=!0,disableFontFace:O=!1,ignoreErrors:P=!1,onUnsupportedFeature:H,fontRegistry:E=null}){this.compiledGlyphs=Object.create(null);for(const ee in K)this[ee]=K[ee];this.isEvalSupported=!1!==r,this.disableFontFace=!0===O,this.ignoreErrors=!0===P,this._onUnsupportedFeature=H,this.fontRegistry=E}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let K;if(this.cssFontInfo){const r={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(r.style=`oblique ${this.cssFontInfo.italicAngle}deg`),K=new FontFace(this.cssFontInfo.fontFamily,this.data,r)}else K=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),K}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const K=(0,a.bytesToString)(this.data),r=`url(data:${this.mimetype};base64,${btoa(K)});`;let O;if(this.cssFontInfo){let P=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(P+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),O=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${P}src:${r}}`}else O=`@font-face {font-family:"${this.loadedName}";src:${r}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,r),O}getPathGenerator(K,r){if(void 0!==this.compiledGlyphs[r])return this.compiledGlyphs[r];let O;try{O=K.get(this.loadedName+"_path_"+r)}catch(P){if(!this.ignoreErrors)throw P;return this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,a.warn)(`getPathGenerator - ignoring character: "${P}".`),this.compiledGlyphs[r]=function(H,E){}}if(this.isEvalSupported&&a.IsEvalSupportedCached.value){const P=[];for(const H of O){const E=void 0!==H.args?H.args.join(","):"";P.push("c.",H.cmd,"(",E,");\n")}return this.compiledGlyphs[r]=new Function("c","size",P.join(""))}return this.compiledGlyphs[r]=function(P,H){for(const E of O)"scale"===E.cmd&&(E.args=[H,-H]),P[E.cmd].apply(P,E.args)}}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.NodeStandardFontDataFactory=oe.NodeCanvasFactory=oe.NodeCMapReaderFactory=void 0;var a=S(6),C=S(3),N=S(1);let ze=class{constructor(){(0,N.unreachable)("Not implemented: NodeCanvasFactory")}};oe.NodeCanvasFactory=ze;let p=class{constructor(){(0,N.unreachable)("Not implemented: NodeCMapReaderFactory")}};oe.NodeCMapReaderFactory=p;let K=class{constructor(){(0,N.unreachable)("Not implemented: NodeStandardFontDataFactory")}};if(oe.NodeStandardFontDataFactory=K,C.isNodeJS){const r=function(O){return new Promise((P,H)=>{__webpack_require__(172).readFile(O,(ee,x)=>{!ee&&x?P(new Uint8Array(x)):H(new Error(ee))})})};oe.NodeCanvasFactory=ze=class extends a.BaseCanvasFactory{_createCanvas(O,P){return __webpack_require__(3414).createCanvas(O,P)}},oe.NodeCMapReaderFactory=p=class extends a.BaseCMapReaderFactory{_fetchData(O,P){return r(O).then(H=>({cMapData:H,compressionType:P}))}},oe.NodeStandardFontDataFactory=K=class extends a.BaseStandardFontDataFactory{_fetchData(O){return r(O)}}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.AnnotationStorage=void 0;var a=S(1);oe.AnnotationStorage=class{constructor(){this._storage=new Map,this._timeStamp=Date.now(),this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(ze,p){const K=this._storage.get(ze);return void 0===K?p:Object.assign(p,K)}setValue(ze,p){const K=this._storage.get(ze);let r=!1;if(void 0!==K)for(const[O,P]of Object.entries(p))K[O]!==P&&(r=!0,K[O]=P);else r=!0,this._storage.set(ze,p);r&&(this._timeStamp=Date.now(),this._setModified())}getAll(){return this._storage.size>0?(0,a.objectFromMap)(this._storage):null}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get serializable(){return this._storage.size>0?this._storage:null}get lastModified(){return this._timeStamp.toString()}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.CanvasGraphics=void 0;var a=S(1),C=S(11),N=S(5);const K=4096,E=16;function U(Ve){if(Ve._transformStack&&(Ve._transformStack=[]),!Ve.mozCurrentTransform){Ve._originalSave=Ve.save,Ve._originalRestore=Ve.restore,Ve._originalRotate=Ve.rotate,Ve._originalScale=Ve.scale,Ve._originalTranslate=Ve.translate,Ve._originalTransform=Ve.transform,Ve._originalSetTransform=Ve.setTransform,Ve._originalResetTransform=Ve.resetTransform,Ve._transformMatrix=Ve._transformMatrix||[1,0,0,1,0,0],Ve._transformStack=[];try{const He=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Ve),"lineWidth");Ve._setLineWidth=He.set,Ve._getLineWidth=He.get,Object.defineProperty(Ve,"lineWidth",{set:function(Le){this._setLineWidth(1.000001*Le)},get:function(){return this._getLineWidth()}})}catch(He){}Object.defineProperty(Ve,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(Ve,"mozCurrentTransformInverse",{get:function(){const[X,Le,Te,Ze,he,Ne]=this._transformMatrix,Me=X*Ze-Le*Te,ke=Le*Te-X*Ze;return[Ze/Me,Le/ke,Te/ke,X/Me,(Ze*he-Te*Ne)/ke,(Le*he-X*Ne)/Me]}}),Ve.save=function(){const X=this._transformMatrix;this._transformStack.push(X),this._transformMatrix=X.slice(0,6),this._originalSave()},Ve.restore=function(){0===this._transformStack.length&&(0,a.warn)("Tried to restore a ctx when the stack was already empty.");const X=this._transformStack.pop();X&&(this._transformMatrix=X,this._originalRestore())},Ve.translate=function(X,Le){const Te=this._transformMatrix;Te[4]=Te[0]*X+Te[2]*Le+Te[4],Te[5]=Te[1]*X+Te[3]*Le+Te[5],this._originalTranslate(X,Le)},Ve.scale=function(X,Le){const Te=this._transformMatrix;Te[0]*=X,Te[1]*=X,Te[2]*=Le,Te[3]*=Le,this._originalScale(X,Le)},Ve.transform=function(X,Le,Te,Ze,he,Ne){const Me=this._transformMatrix;this._transformMatrix=[Me[0]*X+Me[2]*Le,Me[1]*X+Me[3]*Le,Me[0]*Te+Me[2]*Ze,Me[1]*Te+Me[3]*Ze,Me[0]*he+Me[2]*Ne+Me[4],Me[1]*he+Me[3]*Ne+Me[5]],Ve._originalTransform(X,Le,Te,Ze,he,Ne)},Ve.setTransform=function(X,Le,Te,Ze,he,Ne){this._transformMatrix=[X,Le,Te,Ze,he,Ne],Ve._originalSetTransform(X,Le,Te,Ze,he,Ne)},Ve.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],Ve._originalResetTransform()},Ve.rotate=function(X){const Le=Math.cos(X),Te=Math.sin(X),Ze=this._transformMatrix;this._transformMatrix=[Ze[0]*Le+Ze[2]*Te,Ze[1]*Le+Ze[3]*Te,Ze[0]*-Te+Ze[2]*Le,Ze[1]*-Te+Ze[3]*Le,Ze[4],Ze[5]],this._originalRotate(X)}}}class le{constructor(He){this.canvasFactory=He,this.cache=Object.create(null)}getCanvas(He,X,Le,Te){let Ze;return void 0!==this.cache[He]?(Ze=this.cache[He],this.canvasFactory.reset(Ze,X,Le),Ze.context.setTransform(1,0,0,1,0,0)):(Ze=this.canvasFactory.create(X,Le),this.cache[He]=Ze),Te&&U(Ze.context),Ze}clear(){for(const He in this.cache)this.canvasFactory.destroy(this.cache[He]),delete this.cache[He]}}class re{constructor(He,X){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=a.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=a.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,He,X])}clone(){const He=Object.create(this);return He.clipBox=this.clipBox.slice(),He}setCurrentPoint(He,X){this.x=He,this.y=X}updatePathMinMax(He,X,Le){[X,Le]=a.Util.applyTransform([X,Le],He),this.minX=Math.min(this.minX,X),this.minY=Math.min(this.minY,Le),this.maxX=Math.max(this.maxX,X),this.maxY=Math.max(this.maxY,Le)}updateCurvePathMinMax(He,X,Le,Te,Ze,he,Ne,Me,ke){const G=a.Util.bezierBoundingBox(X,Le,Te,Ze,he,Ne,Me,ke);this.updatePathMinMax(He,G[0],G[1]),this.updatePathMinMax(He,G[2],G[3])}getPathBoundingBox(He=C.PathType.FILL,X=null){const Le=[this.minX,this.minY,this.maxX,this.maxY];if(He===C.PathType.STROKE){X||(0,a.unreachable)("Stroke bounding box must include transform.");const Te=a.Util.singularValueDecompose2dScale(X),Ze=Te[0]*this.lineWidth/2,he=Te[1]*this.lineWidth/2;Le[0]-=Ze,Le[1]-=he,Le[2]+=Ze,Le[3]+=he}return Le}updateClipFromPath(){const He=a.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(He||[0,0,0,0])}startNewPathAndClipBox(He){this.clipBox=He,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(He=C.PathType.FILL,X=null){return a.Util.intersect(this.clipBox,this.getPathBoundingBox(He,X))}}function ce(Ve,He,X=null){if("undefined"!=typeof ImageData&&He instanceof ImageData)return void Ve.putImageData(He,0,0);const Le=He.height,Te=He.width,Ze=Le%E,he=(Le-Ze)/E,Ne=0===Ze?he:he+1,Me=Ve.createImageData(Te,E);let G,ke=0;const ot=He.data,We=Me.data;let ut,Mt,At,Jt,Wt,Sn,ye,be;if(X)switch(X.length){case 1:Wt=X[0],Sn=X[0],ye=X[0],be=X[0];break;case 4:Wt=X[0],Sn=X[1],ye=X[2],be=X[3]}if(He.kind===a.ImageKind.GRAYSCALE_1BPP){const Je=ot.byteLength,gt=new Uint32Array(We.buffer,0,We.byteLength>>2),Nt=gt.length,$t=Te+7>>3;let ft=4294967295,mt=a.IsLittleEndianCached.value?4278190080:255;for(be&&255===be[0]&&0===be[255]&&([ft,mt]=[mt,ft]),ut=0;ut$t?Te:8*Re-7,hn=-8&Kt;let xn=0,Mn=0;for(;zt>=1}for(;G=he&&(At=Ze,Jt=Te*At),G=0,Mt=Jt;Mt--;)We[G++]=ot[ke++],We[G++]=ot[ke++],We[G++]=ot[ke++],We[G++]=255;if(Je)for(let gt=0;gt>=1}Ve.putImageData(Ne,0,ot*E)}}function J(Ve,He){const X=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let Le=0,Te=X.length;Le>8,Ve[Ze-2]=Ve[Ze-2]*he+X*Ne>>8,Ve[Ze-1]=Ve[Ze-1]*he+Le*Ne>>8}}}function fe(Ve,He,X){const Le=Ve.length;for(let Ze=3;Ze>8]>>8:He[Te]*Ze>>16}}function je(Ve,He){const X=a.Util.singularValueDecompose2dScale(Ve);X[0]=Math.fround(X[0]),X[1]=Math.fround(X[1]);const Le=Math.fround((globalThis.devicePixelRatio||1)*N.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==He?He:X[0]<=Le||X[1]<=Le}const rt=["butt","round","square"],it=["miter","round","bevel"],ct={},g={};class qe{constructor(He,X,Le,Te,Ze,he,Ne){this.ctx=He,this.current=new re(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=X,this.objs=Le,this.canvasFactory=Te,this.imageLayer=Ze,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=he,this.cachedCanvases=new le(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=Ne,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,He&&U(He),this._cachedGetSinglePixelWidth=null}beginDrawing({transform:He,viewport:X,transparency:Le=!1,background:Te=null}){const Ze=this.ctx.canvas.width,he=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=Te||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,Ze,he),this.ctx.restore(),Le){const Ne=this.cachedCanvases.getCanvas("transparent",Ze,he,!0);this.compositeCtx=this.ctx,this.transparentCanvas=Ne.canvas,this.ctx=Ne.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),we(this.ctx),He&&(this.ctx.transform.apply(this.ctx,He),this.outputScaleX=He[0],this.outputScaleY=He[0]),this.ctx.transform.apply(this.ctx,X.transform),this.viewportScale=X.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this._combinedScaleFactor=Math.hypot(this.baseTransform[0],this.baseTransform[2]),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(He,X,Le,Te){const Ze=He.argsArray,he=He.fnArray;let Ne=X||0;const Me=Ze.length;if(Me===Ne)return Ne;const ke=Me-Ne>10&&"function"==typeof Le,G=ke?Date.now()+15:0;let ot=0;const We=this.commonObjs,ut=this.objs;let Mt;for(;;){if(void 0!==Te&&Ne===Te.nextBreakPoint)return Te.breakIt(Ne,Le),Ne;if(Mt=he[Ne],Mt!==a.OPS.dependency)this[Mt].apply(this,Ze[Ne]);else for(const At of Ze[Ne]){const Jt=At.startsWith("g_")?We:ut;if(!Jt.has(At))return Jt.get(At,Le),Ne}if(Ne++,Ne===Me)return Ne;if(ke&&++ot>10){if(Date.now()>G)return Le(),Ne;ot=0}}}endDrawing(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(He,X){const Le=He.width,Te=He.height;let G,ot,Ze=Math.max(Math.hypot(X[0],X[1]),1),he=Math.max(Math.hypot(X[2],X[3]),1),Ne=Le,Me=Te,ke="prescale1";for(;Ze>2&&Ne>1||he>2&&Me>1;){let We=Ne,ut=Me;Ze>2&&Ne>1&&(We=Math.ceil(Ne/2),Ze/=Ne/We),he>2&&Me>1&&(ut=Math.ceil(Me/2),he/=Me/ut),G=this.cachedCanvases.getCanvas(ke,We,ut),ot=G.context,ot.clearRect(0,0,We,ut),ot.drawImage(He,0,0,Ne,Me,0,0,We,ut),He=G.canvas,Ne=We,Me=ut,ke="prescale1"===ke?"prescale2":"prescale1"}return{img:He,paintWidth:Ne,paintHeight:Me}}_createMaskCanvas(He){const X=this.ctx,Le=He.width,Te=He.height,Ze=this.current.fillColor,he=this.current.patternFill,Ne=this.cachedCanvases.getCanvas("maskCanvas",Le,Te);L(Ne.context,He);let G=a.Util.transform(X.mozCurrentTransform,[1/Le,0,0,-1/Te,0,0]);G=a.Util.transform(G,[1,0,0,1,0,-Te]);const ot=a.Util.applyTransform([0,0],G),We=a.Util.applyTransform([Le,Te],G),ut=a.Util.normalizeRect([ot[0],ot[1],We[0],We[1]]),Mt=Math.ceil(ut[2]-ut[0]),At=Math.ceil(ut[3]-ut[1]),Jt=this.cachedCanvases.getCanvas("fillCanvas",Mt,At,!0),Wt=Jt.context,Sn=Math.min(ot[0],We[0]),ye=Math.min(ot[1],We[1]);Wt.translate(-Sn,-ye),Wt.transform.apply(Wt,G);const be=this._scaleImage(Ne.canvas,Wt.mozCurrentTransformInverse);Wt.imageSmoothingEnabled=je(Wt.mozCurrentTransform,He.interpolate),Wt.drawImage(be.img,0,0,be.img.width,be.img.height,0,0,Le,Te),Wt.globalCompositeOperation="source-in";const Je=a.Util.transform(Wt.mozCurrentTransformInverse,[1,0,0,1,-Sn,-ye]);return Wt.fillStyle=he?Ze.getPattern(X,this,Je,C.PathType.FILL):Ze,Wt.fillRect(0,0,Le,Te),{canvas:Jt.canvas,offsetX:Math.round(Sn),offsetY:Math.round(ye)}}setLineWidth(He){this.current.lineWidth=He,this.ctx.lineWidth=He}setLineCap(He){this.ctx.lineCap=rt[He]}setLineJoin(He){this.ctx.lineJoin=it[He]}setMiterLimit(He){this.ctx.miterLimit=He}setDash(He,X){const Le=this.ctx;void 0!==Le.setLineDash&&(Le.setLineDash(He),Le.lineDashOffset=X)}setRenderingIntent(He){}setFlatness(He){}setGState(He){for(let X=0,Le=He.length;X{Ve.save=Ve.__originalSave,Ve.restore=Ve.__originalRestore,Ve.rotate=Ve.__originalRotate,Ve.scale=Ve.__originalScale,Ve.translate=Ve.__originalTranslate,Ve.transform=Ve.__originalTransform,Ve.setTransform=Ve.__originalSetTransform,Ve.resetTransform=Ve.__originalResetTransform,Ve.clip=Ve.__originalClip,Ve.moveTo=Ve.__originalMoveTo,Ve.lineTo=Ve.__originalLineTo,Ve.bezierCurveTo=Ve.__originalBezierCurveTo,Ve.rect=Ve.__originalRect,Ve.closePath=Ve.__originalClosePath,Ve.beginPath=Ve.__originalBeginPath,delete Ve._removeMirroring},Ve.save=function(){He.save(),this.__originalSave()},Ve.restore=function(){He.restore(),this.__originalRestore()},Ve.translate=function(Le,Te){He.translate(Le,Te),this.__originalTranslate(Le,Te)},Ve.scale=function(Le,Te){He.scale(Le,Te),this.__originalScale(Le,Te)},Ve.transform=function(Le,Te,Ze,he,Ne,Me){He.transform(Le,Te,Ze,he,Ne,Me),this.__originalTransform(Le,Te,Ze,he,Ne,Me)},Ve.setTransform=function(Le,Te,Ze,he,Ne,Me){He.setTransform(Le,Te,Ze,he,Ne,Me),this.__originalSetTransform(Le,Te,Ze,he,Ne,Me)},Ve.resetTransform=function(){He.resetTransform(),this.__originalResetTransform()},Ve.rotate=function(Le){He.rotate(Le),this.__originalRotate(Le)},Ve.clip=function(Le){He.clip(Le),this.__originalClip(Le)},Ve.moveTo=function(X,Le){He.moveTo(X,Le),this.__originalMoveTo(X,Le)},Ve.lineTo=function(X,Le){He.lineTo(X,Le),this.__originalLineTo(X,Le)},Ve.bezierCurveTo=function(X,Le,Te,Ze,he,Ne){He.bezierCurveTo(X,Le,Te,Ze,he,Ne),this.__originalBezierCurveTo(X,Le,Te,Ze,he,Ne)},Ve.rect=function(X,Le,Te,Ze){He.rect(X,Le,Te,Ze),this.__originalRect(X,Le,Te,Ze)},Ve.closePath=function(){He.closePath(),this.__originalClosePath()},Ve.beginPath=function(){He.beginPath(),this.__originalBeginPath()}}(Ze,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),J(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(He){this.current.activeSMask&&(He?(He[0]=Math.floor(He[0]),He[1]=Math.floor(He[1]),He[2]=Math.ceil(He[2]),He[3]=Math.ceil(He[3])):He=[0,0,this.ctx.canvas.width,this.ctx.canvas.height],function(Ve,He,X,Le){const Te=Le[0],Ze=Le[1],he=Le[2]-Te,Ne=Le[3]-Ze;0===he||0===Ne||(function(Ve,He,X,Le,Te,Ze,he,Ne,Me,ke,G){const ot=!!Ze,We=ot?Ze[0]:0,ut=ot?Ze[1]:0,Mt=ot?Ze[2]:0;let At;At="Luminosity"===Te?Ce:fe;const Wt=Math.min(Le,Math.ceil(1048576/X));for(let Sn=0;Sn=this.current.lineWidth?(X.save(),X.resetTransform(),X.lineWidth=Math.floor(this._combinedScaleFactor),X.stroke(),X.restore()):(X.lineWidth=Math.max(Te,this.current.lineWidth),X.stroke())}He&&this.consumePath(this.current.getClippedPathBoundingBox()),X.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(He){He=void 0===He||He;const X=this.ctx,Le=this.current.fillColor;let Ze=!1;this.current.patternFill&&(X.save(),X.fillStyle=Le.getPattern(X,this,X.mozCurrentTransformInverse,C.PathType.FILL),Ze=!0);const he=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==he&&(this.pendingEOFill?(X.fill("evenodd"),this.pendingEOFill=!1):X.fill()),Ze&&X.restore(),He&&this.consumePath(he)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=ct}eoClip(){this.pendingClip=g}beginText(){this.current.textMatrix=a.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const He=this.pendingTextPaths,X=this.ctx;if(void 0!==He){X.save(),X.beginPath();for(let Le=0;Le100&&(ke=100),this.current.fontSizeScale=X/ke,this.ctx.font=`${Ne} ${he} ${ke}px ${Me}`}setTextRenderingMode(He){this.current.textRenderingMode=He}setTextRise(He){this.current.textRise=He}moveText(He,X){this.current.x=this.current.lineX+=He,this.current.y=this.current.lineY+=X}setLeadingMoveText(He,X){this.setLeading(-X),this.moveText(He,X)}setTextMatrix(He,X,Le,Te,Ze,he){this.current.textMatrix=[He,X,Le,Te,Ze,he],this.current.textMatrixScale=Math.hypot(He,X),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(He,X,Le,Te,Ze){const he=this.ctx,Ne=this.current,Me=Ne.font,ke=Ne.textRenderingMode,G=Ne.fontSize/Ne.fontSizeScale,ot=ke&a.TextRenderingMode.FILL_STROKE_MASK,We=!!(ke&a.TextRenderingMode.ADD_TO_PATH_FLAG),ut=Ne.patternFill&&!Me.missingFile;let Mt;(Me.disableFontFace||We||ut)&&(Mt=Me.getPathGenerator(this.commonObjs,He)),Me.disableFontFace||ut?(he.save(),he.translate(X,Le),he.beginPath(),Mt(he,G),Te&&he.setTransform.apply(he,Te),(ot===a.TextRenderingMode.FILL||ot===a.TextRenderingMode.FILL_STROKE)&&he.fill(),(ot===a.TextRenderingMode.STROKE||ot===a.TextRenderingMode.FILL_STROKE)&&(Ze&&(he.resetTransform(),he.lineWidth=Math.floor(this._combinedScaleFactor)),he.stroke()),he.restore()):((ot===a.TextRenderingMode.FILL||ot===a.TextRenderingMode.FILL_STROKE)&&he.fillText(He,X,Le),(ot===a.TextRenderingMode.STROKE||ot===a.TextRenderingMode.FILL_STROKE)&&(Ze?(he.save(),he.moveTo(X,Le),he.resetTransform(),he.lineWidth=Math.floor(this._combinedScaleFactor),he.strokeText(He,0,0),he.restore()):he.strokeText(He,X,Le))),We&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:he.mozCurrentTransform,x:X,y:Le,fontSize:G,addToPath:Mt})}get isFontSubpixelAAEnabled(){const{context:He}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);He.scale(1.5,1),He.fillText("I",0,10);const X=He.getImageData(0,0,10,10).data;let Le=!1;for(let Te=3;Te0&&X[Te]<255){Le=!0;break}return(0,a.shadow)(this,"isFontSubpixelAAEnabled",Le)}showText(He){const X=this.current,Le=X.font;if(Le.isType3Font)return this.showType3Text(He);const Te=X.fontSize;if(0===Te)return;const Ze=this.ctx,he=X.fontSizeScale,Ne=X.charSpacing,Me=X.wordSpacing,ke=X.fontDirection,G=X.textHScale*ke,ot=He.length,We=Le.vertical,ut=We?1:-1,Mt=Le.defaultVMetrics,At=Te*X.fontMatrix[0],Jt=X.textRenderingMode===a.TextRenderingMode.FILL&&!Le.disableFontFace&&!X.patternFill;let Wt;if(Ze.save(),Ze.transform.apply(Ze,X.textMatrix),Ze.translate(X.x,X.y+X.textRise),Ze.scale(G,ke>0?-1:1),X.patternFill){Ze.save();const Nt=X.fillColor.getPattern(Ze,this,Ze.mozCurrentTransformInverse,C.PathType.FILL);Wt=Ze.mozCurrentTransform,Ze.restore(),Ze.fillStyle=Nt}let Sn=X.lineWidth,ye=!1;const be=X.textMatrixScale;if(0===be||0===Sn){const Nt=X.textRenderingMode&a.TextRenderingMode.FILL_STROKE_MASK;(Nt===a.TextRenderingMode.STROKE||Nt===a.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,Sn=this.getSinglePixelWidth(),ye=Sn<0)}else Sn/=be;1!==he&&(Ze.scale(he,he),Sn/=he),Ze.lineWidth=Sn;let gt,Je=0;for(gt=0;gt0){const Mn=1e3*Ze.measureText(mt).width/Te*he;if(hnnew qe(he,this.commonObjs,this.objs,this.canvasFactory)},Te)}else X=this._getPattern(He[1],He[2]);return X}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(He,X,Le){const Te=a.Util.makeHexColor(He,X,Le);this.ctx.strokeStyle=Te,this.current.strokeColor=Te}setFillRGBColor(He,X,Le){const Te=a.Util.makeHexColor(He,X,Le);this.ctx.fillStyle=Te,this.current.fillColor=Te,this.current.patternFill=!1}_getPattern(He,X=null){let Le;return this.cachedPatterns.has(He)?Le=this.cachedPatterns.get(He):(Le=(0,C.getShadingPattern)(this.objs.get(He)),this.cachedPatterns.set(He,Le)),X&&(Le.matrix=X),Le}shadingFill(He){if(!this.contentVisible)return;const X=this.ctx;this.save();const Le=this._getPattern(He);X.fillStyle=Le.getPattern(X,this,X.mozCurrentTransformInverse,C.PathType.SHADING);const Te=X.mozCurrentTransformInverse;if(Te){const Ze=X.canvas,he=Ze.width,Ne=Ze.height,Me=a.Util.applyTransform([0,0],Te),ke=a.Util.applyTransform([0,Ne],Te),G=a.Util.applyTransform([he,0],Te),ot=a.Util.applyTransform([he,Ne],Te),We=Math.min(Me[0],ke[0],G[0],ot[0]),ut=Math.min(Me[1],ke[1],G[1],ot[1]),Mt=Math.max(Me[0],ke[0],G[0],ot[0]),At=Math.max(Me[1],ke[1],G[1],ot[1]);this.ctx.fillRect(We,ut,Mt-We,At-ut)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,a.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,a.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(He,X){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(He)&&6===He.length&&this.transform.apply(this,He),this.baseTransform=this.ctx.mozCurrentTransform,X)&&(this.ctx.rect(X[0],X[1],X[2]-X[0],X[3]-X[1]),this.current.updatePathMinMax(this.ctx.mozCurrentTransform,X[0],X[1]),this.current.updatePathMinMax(this.ctx.mozCurrentTransform,X[2],X[3]),this.clip(),this.endPath())}paintFormXObjectEnd(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(He){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const X=this.ctx;He.isolated||(0,a.info)("TODO: Support non-isolated groups."),He.knockout&&(0,a.warn)("Knockout groups not supported.");const Le=X.mozCurrentTransform;if(He.matrix&&X.transform.apply(X,He.matrix),!He.bbox)throw new Error("Bounding box is required.");let Te=a.Util.getAxialAlignedBoundingBox(He.bbox,X.mozCurrentTransform);Te=a.Util.intersect(Te,[0,0,X.canvas.width,X.canvas.height])||[0,0,0,0];const he=Math.floor(Te[0]),Ne=Math.floor(Te[1]);let Me=Math.max(Math.ceil(Te[2])-he,1),ke=Math.max(Math.ceil(Te[3])-Ne,1),G=1,ot=1;Me>K&&(G=Me/K,Me=K),ke>K&&(ot=ke/K,ke=K),this.current.startNewPathAndClipBox([0,0,Me,ke]);let We="groupAt"+this.groupLevel;He.smask&&(We+="_smask_"+this.smaskCounter++%2);const ut=this.cachedCanvases.getCanvas(We,Me,ke,!0),Mt=ut.context;Mt.scale(1/G,1/ot),Mt.translate(-he,-Ne),Mt.transform.apply(Mt,Le),He.smask?this.smaskStack.push({canvas:ut.canvas,context:Mt,offsetX:he,offsetY:Ne,scaleX:G,scaleY:ot,subtype:He.smask.subtype,backdrop:He.smask.backdrop,transferMap:He.smask.transferMap||null,startTransformInverse:null}):(X.setTransform(1,0,0,1,0,0),X.translate(he,Ne),X.scale(G,ot),X.save()),J(X,Mt),this.ctx=Mt,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(X),this.groupLevel++}endGroup(He){if(!this.contentVisible)return;this.groupLevel--;const X=this.ctx,Le=this.groupStack.pop();if(this.ctx=Le,this.ctx.imageSmoothingEnabled=!1,He.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const Te=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,Te);const Ze=a.Util.getAxialAlignedBoundingBox([0,0,X.canvas.width,X.canvas.height],Te);this.ctx.drawImage(X.canvas,0,0),this.ctx.restore(),this.compose(Ze)}}beginAnnotations(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}endAnnotations(){this.restore()}beginAnnotation(He,X,Le,Te,Ze){if(this.save(),Array.isArray(X)&&4===X.length){const he=X[2]-X[0],Ne=X[3]-X[1];if(Ze&&this.annotationCanvasMap){(Le=Le.slice())[4]-=X[0],Le[5]-=X[1],(X=X.slice())[0]=X[1]=0,X[2]=he,X[3]=Ne;const[Me,ke]=a.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),{viewportScale:G}=this,ot=Math.ceil(he*this.outputScaleX*G),We=Math.ceil(Ne*this.outputScaleY*G);this.annotationCanvas=this.canvasFactory.create(ot,We);const{canvas:ut,context:Mt}=this.annotationCanvas;ut.style.width=`calc(${he}px * var(--viewport-scale-factor))`,ut.style.height=`calc(${Ne}px * var(--viewport-scale-factor))`,this.annotationCanvasMap.set(He,ut),this.annotationCanvas.savedCtx=this.ctx,this.ctx=Mt,this.ctx.setTransform(Me,0,0,-ke,0,Ne*ke),U(this.ctx),we(this.ctx)}else we(this.ctx),this.ctx.rect(X[0],X[1],he,Ne),this.clip(),this.endPath()}this.current=new re(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,Le),this.transform.apply(this,Te)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}paintImageMaskXObject(He){if(!this.contentVisible)return;const X=this.ctx,Le=He.width,Te=He.height,Ze=this.processingType3;if(Ze&&void 0===Ze.compiled&&(Ze.compiled=Le<=1e3&&Te<=1e3?function(Ve){const X=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),Le=Ve.width,Te=Ve.height,Ze=Le+1;let he,Ne,Me,ke;const G=new Uint8Array(Ze*(Te+1)),ot=Le+7&-8,We=Ve.data,ut=new Uint8Array(ot*Te);let Mt=0;for(he=0,Ne=We.length;he0;)ut[Mt++]=ye&be?0:255,be>>=1}let At=0;for(Mt=0,0!==ut[Mt]&&(G[0]=1,++At),Me=1;Me>2)+(ut[Mt+1]?4:0)+(ut[Mt-ot+1]?8:0),X[ye]&&(G[ke+Me]=X[ye],++At),Mt++;if(ut[Mt-ot]!==ut[Mt]&&(G[ke+Me]=ut[Mt]?2:4,++At),At>1e3)return null}for(Mt=ot*(Te-1),ke=he*Ze,0!==ut[Mt]&&(G[ke]=8,++At),Me=1;Me1e3)return null;const Jt=new Int32Array([0,Ze,-1,0,-Ze,0,0,0,1]),Wt=[];for(he=0;At&&he<=Te;he++){let ye=he*Ze;const be=ye+Le;for(;ye>4,G[ye]&=Nt>>2|Nt<<2),Je.push(ye%Ze,ye/Ze|0),G[ye]||--At}while(gt!==ye);Wt.push(Je),--he}return function(ye){ye.save(),ye.scale(1/Le,-1/Te),ye.translate(0,-Te),ye.beginPath();for(let be=0,Je=Wt.length;be1?-this._combinedScaleFactor*Ze:X>Number.EPSILON?Ze:1}return this._cachedGetSinglePixelWidth}getCanvasPosition(He,X){const Le=this.ctx.mozCurrentTransform;return[Le[0]*He+Le[2]*X+Le[4],Le[1]*He+Le[3]*X+Le[5]]}isContentVisible(){for(let He=this.markedContentStack.length-1;He>=0;He--)if(!this.markedContentStack[He].visible)return!1;return!0}}oe.CanvasGraphics=qe;for(const Ve in a.OPS)void 0!==qe.prototype[Ve]&&(qe.prototype[a.OPS[Ve]]=qe.prototype[Ve])},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.TilingPattern=oe.PathType=void 0,oe.getShadingPattern=function(x){switch(x[0]){case"RadialAxial":return new p(x);case"Mesh":return new O(x);case"Dummy":return new P}throw new Error(`Unknown IR type: ${x[0]}`)};var a=S(1);const C={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function N(x,U){if(!U||"undefined"==typeof Path2D)return;const le=U[2]-U[0],xe=U[3]-U[1],re=new Path2D;re.rect(U[0],U[1],le,xe),x.clip(re)}oe.PathType=C;class ze{constructor(){this.constructor===ze&&(0,a.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,a.unreachable)("Abstract method `getPattern` called.")}}class p extends ze{constructor(U){super(),this._type=U[1],this._bbox=U[2],this._colorStops=U[3],this._p0=U[4],this._p1=U[5],this._r0=U[6],this._r1=U[7],this.matrix=null}_createGradient(U){let le;"axial"===this._type?le=U.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(le=U.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const xe of this._colorStops)le.addColorStop(xe[0],xe[1]);return le}getPattern(U,le,xe,re){let ce;if(re===C.STROKE||re===C.FILL){const L=le.current.getClippedPathBoundingBox(re,U.mozCurrentTransform)||[0,0,0,0],J=Math.ceil(L[2]-L[0])||1,we=Math.ceil(L[3]-L[1])||1,ge=le.cachedCanvases.getCanvas("pattern",J,we,!0),fe=ge.context;fe.clearRect(0,0,fe.canvas.width,fe.canvas.height),fe.beginPath(),fe.rect(0,0,fe.canvas.width,fe.canvas.height),fe.translate(-L[0],-L[1]),xe=a.Util.transform(xe,[1,0,0,1,L[0],L[1]]),fe.transform.apply(fe,le.baseTransform),this.matrix&&fe.transform.apply(fe,this.matrix),N(fe,this._bbox),fe.fillStyle=this._createGradient(fe),fe.fill(),ce=U.createPattern(ge.canvas,"no-repeat");const Ce=new DOMMatrix(xe);try{ce.setTransform(Ce)}catch(e){(0,a.warn)(`RadialAxialShadingPattern.getPattern: "${null==e?void 0:e.message}".`)}}else N(U,this._bbox),ce=this._createGradient(U);return ce}}function K(x,U,le,xe,re,ce,L,J){const we=U.coords,ge=U.colors,fe=x.data,Ce=4*x.width;let e;we[le+1]>we[xe+1]&&(e=le,le=xe,xe=e,e=ce,ce=L,L=e),we[xe+1]>we[re+1]&&(e=xe,xe=re,re=e,e=L,L=J,J=e),we[le+1]>we[xe+1]&&(e=le,le=xe,xe=e,e=ce,ce=L,L=e);const z=(we[le]+U.offsetX)*U.scaleX,je=(we[le+1]+U.offsetY)*U.scaleY,rt=(we[xe]+U.offsetX)*U.scaleX,it=(we[xe+1]+U.offsetY)*U.scaleY,ct=(we[re]+U.offsetX)*U.scaleX,g=(we[re+1]+U.offsetY)*U.scaleY;if(je>=g)return;const qe=ge[ce],Ve=ge[ce+1],He=ge[ce+2],X=ge[L],Le=ge[L+1],Te=ge[L+2],Ze=ge[J],he=ge[J+1],Ne=ge[J+2],Me=Math.round(je),ke=Math.round(g);let G,ot,We,ut,Mt,At,Jt,Wt;for(let Sn=Me;Sn<=ke;Sn++){if(Sng?1:it===g?0:(it-Sn)/(it-g),G=rt-(rt-ct)*Nt,ot=X-(X-Ze)*Nt,We=Le-(Le-he)*Nt,ut=Te-(Te-Ne)*Nt}let ye;ye=Sng?1:(je-Sn)/(je-g),Mt=z-(z-ct)*ye,At=qe-(qe-Ze)*ye,Jt=Ve-(Ve-he)*ye,Wt=He-(He-Ne)*ye;const be=Math.round(Math.min(G,Mt)),Je=Math.round(Math.max(G,Mt));let gt=Ce*Sn+4*be;for(let Nt=be;Nt<=Je;Nt++)ye=(G-Nt)/(G-Mt),ye<0?ye=0:ye>1&&(ye=1),fe[gt++]=ot-(ot-At)*ye|0,fe[gt++]=We-(We-Jt)*ye|0,fe[gt++]=ut-(ut-Wt)*ye|0,fe[gt++]=255}}function r(x,U,le){const xe=U.coords,re=U.colors;let ce,L;switch(U.type){case"lattice":const J=U.verticesPerRow,we=Math.floor(xe.length/J)-1,ge=J-1;for(ce=0;ce=re?ce=re:xe=ce/U,{scale:xe,size:ce}}clipBbox(U,le,xe,re,ce){U.ctx.rect(le,xe,re-le,ce-xe),U.clip(),U.endPath()}setFillAndStrokeStyleToContext(U,le,xe){const re=U.ctx,ce=U.current;switch(le){case 1:const L=this.ctx;re.fillStyle=L.fillStyle,re.strokeStyle=L.strokeStyle,ce.fillColor=L.fillStyle,ce.strokeColor=L.strokeStyle;break;case 2:const J=a.Util.makeHexColor(xe[0],xe[1],xe[2]);re.fillStyle=J,re.strokeStyle=J,ce.fillColor=J,ce.strokeColor=J;break;default:throw new a.FormatError(`Unsupported paint type: ${le}`)}}getPattern(U,le,xe,re){let ce=xe;re!==C.SHADING&&(ce=a.Util.transform(ce,le.baseTransform),this.matrix&&(ce=a.Util.transform(ce,this.matrix)));const L=this.createPatternCanvas(le);let J=new DOMMatrix(ce);J=J.translate(L.offsetX,L.offsetY),J=J.scale(1/L.scaleX,1/L.scaleY);const we=U.createPattern(L.canvas,"repeat");try{we.setTransform(J)}catch(ge){(0,a.warn)(`TilingPattern.getPattern: "${null==ge?void 0:ge.message}".`)}return we}}oe.TilingPattern=ee},(St,oe)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.GlobalWorkerOptions=void 0;const S=Object.create(null);oe.GlobalWorkerOptions=S,S.workerPort=void 0===S.workerPort?null:S.workerPort,S.workerSrc=void 0===S.workerSrc?"":S.workerSrc},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.MessageHandler=void 0;var a=S(1);function ze(K){switch(K instanceof Error||"object"==typeof K&&null!==K||(0,a.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),K.name){case"AbortException":return new a.AbortException(K.message);case"MissingPDFException":return new a.MissingPDFException(K.message);case"PasswordException":return new a.PasswordException(K.message,K.code);case"UnexpectedResponseException":return new a.UnexpectedResponseException(K.message,K.status);case"UnknownErrorException":return new a.UnknownErrorException(K.message,K.details);default:return new a.UnknownErrorException(K.message,K.toString())}}oe.MessageHandler=class{constructor(r,O,P){this.sourceName=r,this.targetName=O,this.comObj=P,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=H=>{const E=H.data;if(E.targetName!==this.sourceName)return;if(E.stream)return void this._processStreamMessage(E);if(E.callback){const x=E.callbackId,U=this.callbackCapabilities[x];if(!U)throw new Error(`Cannot resolve callback ${x}`);if(delete this.callbackCapabilities[x],1===E.callback)U.resolve(E.data);else{if(2!==E.callback)throw new Error("Unexpected callback case");U.reject(ze(E.reason))}return}const ee=this.actionHandler[E.action];if(!ee)throw new Error(`Unknown action from worker: ${E.action}`);if(E.callbackId){const x=this.sourceName,U=E.sourceName;new Promise(function(le){le(ee(E.data))}).then(function(le){P.postMessage({sourceName:x,targetName:U,callback:1,callbackId:E.callbackId,data:le})},function(le){P.postMessage({sourceName:x,targetName:U,callback:2,callbackId:E.callbackId,reason:ze(le)})})}else E.streamId?this._createStreamSink(E):ee(E.data)},P.addEventListener("message",this._onComObjOnMessage)}on(r,O){const P=this.actionHandler;if(P[r])throw new Error(`There is already an actionName called "${r}"`);P[r]=O}send(r,O,P){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:r,data:O},P)}sendWithPromise(r,O,P){const H=this.callbackId++,E=(0,a.createPromiseCapability)();this.callbackCapabilities[H]=E;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:r,callbackId:H,data:O},P)}catch(ee){E.reject(ee)}return E.promise}sendWithStream(r,O,P,H){const E=this.streamId++,ee=this.sourceName,x=this.targetName,U=this.comObj;return new ReadableStream({start:le=>{const xe=(0,a.createPromiseCapability)();return this.streamControllers[E]={controller:le,startCall:xe,pullCall:null,cancelCall:null,isClosed:!1},U.postMessage({sourceName:ee,targetName:x,action:r,streamId:E,data:O,desiredSize:le.desiredSize},H),xe.promise},pull:le=>{const xe=(0,a.createPromiseCapability)();return this.streamControllers[E].pullCall=xe,U.postMessage({sourceName:ee,targetName:x,stream:6,streamId:E,desiredSize:le.desiredSize}),xe.promise},cancel:le=>{(0,a.assert)(le instanceof Error,"cancel must have a valid reason");const xe=(0,a.createPromiseCapability)();return this.streamControllers[E].cancelCall=xe,this.streamControllers[E].isClosed=!0,U.postMessage({sourceName:ee,targetName:x,stream:1,streamId:E,reason:ze(le)}),xe.promise}},P)}_createStreamSink(r){const O=r.streamId,P=this.sourceName,H=r.sourceName,E=this.comObj,ee=this,x=this.actionHandler[r.action],U={enqueue(le,xe=1,re){if(this.isCancelled)return;const ce=this.desiredSize;this.desiredSize-=xe,ce>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),E.postMessage({sourceName:P,targetName:H,stream:4,streamId:O,chunk:le},re)},close(){this.isCancelled||(this.isCancelled=!0,E.postMessage({sourceName:P,targetName:H,stream:3,streamId:O}),delete ee.streamSinks[O])},error(le){(0,a.assert)(le instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,E.postMessage({sourceName:P,targetName:H,stream:5,streamId:O,reason:ze(le)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:r.desiredSize,ready:null};U.sinkCapability.resolve(),U.ready=U.sinkCapability.promise,this.streamSinks[O]=U,new Promise(function(le){le(x(r.data,U))}).then(function(){E.postMessage({sourceName:P,targetName:H,stream:8,streamId:O,success:!0})},function(le){E.postMessage({sourceName:P,targetName:H,stream:8,streamId:O,reason:ze(le)})})}_processStreamMessage(r){const O=r.streamId,P=this.sourceName,H=r.sourceName,E=this.comObj,ee=this.streamControllers[O],x=this.streamSinks[O];switch(r.stream){case 8:r.success?ee.startCall.resolve():ee.startCall.reject(ze(r.reason));break;case 7:r.success?ee.pullCall.resolve():ee.pullCall.reject(ze(r.reason));break;case 6:if(!x){E.postMessage({sourceName:P,targetName:H,stream:7,streamId:O,success:!0});break}x.desiredSize<=0&&r.desiredSize>0&&x.sinkCapability.resolve(),x.desiredSize=r.desiredSize,new Promise(function(U){U(x.onPull&&x.onPull())}).then(function(){E.postMessage({sourceName:P,targetName:H,stream:7,streamId:O,success:!0})},function(U){E.postMessage({sourceName:P,targetName:H,stream:7,streamId:O,reason:ze(U)})});break;case 4:if((0,a.assert)(ee,"enqueue should have stream controller"),ee.isClosed)break;ee.controller.enqueue(r.chunk);break;case 3:if((0,a.assert)(ee,"close should have stream controller"),ee.isClosed)break;ee.isClosed=!0,ee.controller.close(),this._deleteStreamController(ee,O);break;case 5:(0,a.assert)(ee,"error should have stream controller"),ee.controller.error(ze(r.reason)),this._deleteStreamController(ee,O);break;case 2:r.success?ee.cancelCall.resolve():ee.cancelCall.reject(ze(r.reason)),this._deleteStreamController(ee,O);break;case 1:if(!x)break;new Promise(function(U){U(x.onCancel&&x.onCancel(ze(r.reason)))}).then(function(){E.postMessage({sourceName:P,targetName:H,stream:2,streamId:O,success:!0})},function(U){E.postMessage({sourceName:P,targetName:H,stream:2,streamId:O,reason:ze(U)})}),x.sinkCapability.reject(ze(r.reason)),x.isCancelled=!0,delete this.streamSinks[O];break;default:throw new Error("Unexpected stream case")}}_deleteStreamController(r,O){var P=this;return _asyncToGenerator(function*(){yield Promise.allSettled([r.startCall&&r.startCall.promise,r.pullCall&&r.pullCall.promise,r.cancelCall&&r.cancelCall.promise]),delete P.streamControllers[O]})()}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(St,oe,S)=>{var N,ze;Object.defineProperty(oe,"__esModule",{value:!0}),oe.Metadata=void 0;var a=S(1);N=new WeakMap,ze=new WeakMap,oe.Metadata=class{constructor({parsedData:K,rawData:r}){Qo(this,N,void 0),Qo(this,ze,void 0),qa(this,N,K),qa(this,ze,r)}getRaw(){return ar(this,ze)}get(K){var r;return null!=(r=ar(this,N).get(K))?r:null}getAll(){return(0,a.objectFromMap)(ar(this,N))}has(K){return ar(this,N).has(K)}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.OptionalContentConfig=void 0;var a=S(1);class C{constructor(p,K){this.visible=!0,this.name=p,this.intent=K}}oe.OptionalContentConfig=class{constructor(p){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==p){this.name=p.name,this.creator=p.creator,this._order=p.order;for(const K of p.groups)this._groups.set(K.id,new C(K.name,K.intent));if("OFF"===p.baseState)for(const K of this._groups)K.visible=!1;for(const K of p.on)this._groups.get(K).visible=!0;for(const K of p.off)this._groups.get(K).visible=!1}}_evaluateVisibilityExpression(p){const K=p.length;if(K<2)return!0;const r=p[0];for(let O=1;O0?(0,a.objectFromMap)(this._groups):null}getGroup(p){return this._groups.get(p)||null}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.PDFDataTransportStream=void 0;var a=S(1),C=S(5);oe.PDFDataTransportStream=class{constructor(r,O){(0,a.assert)(O,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=r.progressiveDone||!1,this._contentDispositionFilename=r.contentDispositionFilename||null;const P=r.initialData;if((null==P?void 0:P.length)>0){const H=new Uint8Array(P).buffer;this._queuedChunks.push(H)}this._pdfDataRangeTransport=O,this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._contentLength=r.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((H,E)=>{this._onReceiveData({begin:H,chunk:E})}),this._pdfDataRangeTransport.addProgressListener((H,E)=>{this._onProgress({loaded:H,total:E})}),this._pdfDataRangeTransport.addProgressiveReadListener(H=>{this._onReceiveData({chunk:H})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(r){const O=new Uint8Array(r.chunk).buffer;if(void 0===r.begin)this._fullRequestReader?this._fullRequestReader._enqueue(O):this._queuedChunks.push(O);else{const P=this._rangeReaders.some(function(H){return H._begin===r.begin&&(H._enqueue(O),!0)});(0,a.assert)(P,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var r,O;return null!=(O=null==(r=this._fullRequestReader)?void 0:r._loaded)?O:0}_onProgress(r){if(void 0===r.total){const O=this._rangeReaders[0];(null==O?void 0:O.onProgress)&&O.onProgress({loaded:r.loaded})}else{const O=this._fullRequestReader;(null==O?void 0:O.onProgress)&&O.onProgress({loaded:r.loaded,total:r.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(r){const O=this._rangeReaders.indexOf(r);O>=0&&this._rangeReaders.splice(O,1)}getFullReader(){(0,a.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const r=this._queuedChunks;return this._queuedChunks=null,new ze(this,r,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(r,O){if(O<=this._progressiveDataLength)return null;const P=new p(this,r,O);return this._pdfDataRangeTransport.requestDataRange(r,O),this._rangeReaders.push(P),P}cancelAllRequests(r){this._fullRequestReader&&this._fullRequestReader.cancel(r);for(const O of this._rangeReaders.slice(0))O.cancel(r);this._pdfDataRangeTransport.abort()}};class ze{constructor(r,O,P=!1,H=null){this._stream=r,this._done=P||!1,this._filename=(0,C.isPdfFile)(H)?H:null,this._queuedChunks=O||[],this._loaded=0;for(const E of this._queuedChunks)this._loaded+=E.byteLength;this._requests=[],this._headersReady=Promise.resolve(),r._fullRequestReader=this,this.onProgress=null}_enqueue(r){this._done||(this._requests.length>0?this._requests.shift().resolve({value:r,done:!1}):this._queuedChunks.push(r),this._loaded+=r.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var r=this;return _asyncToGenerator(function*(){if(r._queuedChunks.length>0)return{value:r._queuedChunks.shift(),done:!1};if(r._done)return{value:void 0,done:!0};const O=(0,a.createPromiseCapability)();return r._requests.push(O),O.promise})()}cancel(r){this._done=!0;for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class p{constructor(r,O,P){this._stream=r,this._begin=O,this._end=P,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(r){if(!this._done){if(0===this._requests.length)this._queuedChunk=r;else{this._requests.shift().resolve({value:r,done:!1});for(const P of this._requests)P.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var r=this;return _asyncToGenerator(function*(){if(r._queuedChunk){const P=r._queuedChunk;return r._queuedChunk=null,{value:P,done:!1}}if(r._done)return{value:void 0,done:!0};const O=(0,a.createPromiseCapability)();return r._requests.push(O),O.promise})()}cancel(r){this._done=!0;for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(St,oe)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.XfaText=void 0;class S{static textContent(C){const N=[],ze={items:N,styles:Object.create(null)};return function p(K){var P;if(!K)return;let r=null;const O=K.name;if("#text"===O)r=K.value;else{if(!S.shouldBuildText(O))return;(null==(P=null==K?void 0:K.attributes)?void 0:P.textContent)?r=K.attributes.textContent:K.value&&(r=K.value)}if(null!==r&&N.push({str:r}),K.children)for(const H of K.children)p(H)}(C),ze}static shouldBuildText(C){return!("textarea"===C||"input"===C||"option"===C||"select"===C)}}oe.XfaText=S},(St,oe,S)=>{var Le,eI;Object.defineProperty(oe,"__esModule",{value:!0}),oe.AnnotationLayer=void 0;var a=S(1),C=S(5),N=S(9),ze=S(19),p=S(20);const K=1e3,r=new WeakSet;function O(Ze){return{width:Ze[2]-Ze[0],height:Ze[3]-Ze[1]}}class P{static create(he){switch(he.data.annotationType){case a.AnnotationType.LINK:return new E(he);case a.AnnotationType.TEXT:return new ee(he);case a.AnnotationType.WIDGET:switch(he.data.fieldType){case"Tx":return new U(he);case"Btn":return he.data.radioButton?new xe(he):he.data.checkBox?new le(he):new re(he);case"Ch":return new ce(he)}return new x(he);case a.AnnotationType.POPUP:return new L(he);case a.AnnotationType.FREETEXT:return new we(he);case a.AnnotationType.LINE:return new ge(he);case a.AnnotationType.SQUARE:return new fe(he);case a.AnnotationType.CIRCLE:return new Ce(he);case a.AnnotationType.POLYLINE:return new e(he);case a.AnnotationType.CARET:return new je(he);case a.AnnotationType.INK:return new rt(he);case a.AnnotationType.POLYGON:return new z(he);case a.AnnotationType.HIGHLIGHT:return new it(he);case a.AnnotationType.UNDERLINE:return new ct(he);case a.AnnotationType.SQUIGGLY:return new g(he);case a.AnnotationType.STRIKEOUT:return new qe(he);case a.AnnotationType.STAMP:return new Ve(he);case a.AnnotationType.FILEATTACHMENT:return new He(he);default:return new H(he)}}}class H{constructor(he,{isRenderable:Ne=!1,ignoreBorder:Me=!1,createQuadrilaterals:ke=!1}={}){this.isRenderable=Ne,this.data=he.data,this.layer=he.layer,this.page=he.page,this.viewport=he.viewport,this.linkService=he.linkService,this.downloadManager=he.downloadManager,this.imageResourcesPath=he.imageResourcesPath,this.renderForms=he.renderForms,this.svgFactory=he.svgFactory,this.annotationStorage=he.annotationStorage,this.enableScripting=he.enableScripting,this.hasJSActions=he.hasJSActions,this._fieldObjects=he.fieldObjects,this._mouseState=he.mouseState,Ne&&(this.container=this._createContainer(Me)),ke&&(this.quadrilaterals=this._createQuadrilaterals(Me))}_createContainer(he=!1){const Ne=this.data,Me=this.page,ke=this.viewport,G=document.createElement("section");let{width:ot,height:We}=O(Ne.rect);G.setAttribute("data-annotation-id",Ne.id);const ut=a.Util.normalizeRect([Ne.rect[0],Me.view[3]-Ne.rect[1]+Me.view[1],Ne.rect[2],Me.view[3]-Ne.rect[3]+Me.view[1]]);if(Ne.hasOwnCanvas){const Mt=ke.transform.slice(),[At,Jt]=a.Util.singularValueDecompose2dScale(Mt);ot=Math.ceil(ot*At),We=Math.ceil(We*Jt),ut[0]*=At,ut[1]*=Jt;for(let Wt=0;Wt<4;Wt++)Mt[Wt]=Math.sign(Mt[Wt]);G.style.transform=`matrix(${Mt.join(",")})`}else G.style.transform=`matrix(${ke.transform.join(",")})`;if(G.style.transformOrigin=`${-ut[0]}px ${-ut[1]}px`,!he&&Ne.borderStyle.width>0){G.style.borderWidth=`${Ne.borderStyle.width}px`,Ne.borderStyle.style!==a.AnnotationBorderStyleType.UNDERLINE&&(ot-=2*Ne.borderStyle.width,We-=2*Ne.borderStyle.width);const Mt=Ne.borderStyle.horizontalCornerRadius,At=Ne.borderStyle.verticalCornerRadius;switch((Mt>0||At>0)&&(G.style.borderRadius=`${Mt}px / ${At}px`),Ne.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:G.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:G.style.borderStyle="dashed";break;case a.AnnotationBorderStyleType.BEVELED:(0,a.warn)("Unimplemented border style: beveled");break;case a.AnnotationBorderStyleType.INSET:(0,a.warn)("Unimplemented border style: inset");break;case a.AnnotationBorderStyleType.UNDERLINE:G.style.borderBottomStyle="solid"}Ne.borderColor||Ne.color?G.style.borderColor=a.Util.makeHexColor(0|Ne.color[0],0|Ne.color[1],0|Ne.color[2]):G.style.borderWidth=0}return G.style.left=`${ut[0]}px`,G.style.top=`${ut[1]}px`,Ne.hasOwnCanvas?G.style.width=G.style.height="auto":(G.style.width=`${ot}px`,G.style.height=`${We}px`),G}_createQuadrilaterals(he=!1){if(!this.data.quadPoints)return null;const Ne=[],Me=this.data.rect;for(const ke of this.data.quadPoints)this.data.rect=[ke[2].x,ke[2].y,ke[1].x,ke[1].y],Ne.push(this._createContainer(he));return this.data.rect=Me,Ne}_createPopup(he,Ne){let Me=this.container;this.quadrilaterals&&(he=he||this.quadrilaterals,Me=this.quadrilaterals[0]),he||((he=document.createElement("div")).style.height=Me.style.height,he.style.width=Me.style.width,Me.appendChild(he));const G=new J({container:Me,trigger:he,color:Ne.color,titleObj:Ne.titleObj,modificationDate:Ne.modificationDate,contentsObj:Ne.contentsObj,richText:Ne.richText,hideWrapper:!0}).render();G.style.left=Me.style.width,Me.appendChild(G)}_renderQuadrilaterals(he){for(const Ne of this.quadrilaterals)Ne.className=he;return this.quadrilaterals}render(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(he,Ne=null){const Me=[];if(this._fieldObjects){const ke=this._fieldObjects[he];if(ke)for(const{page:G,id:ot,exportValues:We}of ke){if(-1===G||ot===Ne)continue;const ut="string"==typeof We?We:null,Mt=document.getElementById(ot);!Mt||r.has(Mt)?Me.push({id:ot,exportValue:ut,domElement:Mt}):(0,a.warn)(`_getElementsByName - element not allowed: ${ot}`)}return Me}for(const ke of document.getElementsByName(he)){const{id:G,exportValue:ot}=ke;G!==Ne&&(!r.has(ke)||Me.push({id:G,exportValue:ot,domElement:ke}))}return Me}static get platform(){const he="undefined"!=typeof navigator?navigator.platform:"";return(0,a.shadow)(this,"platform",{isWin:he.includes("Win"),isMac:he.includes("Mac")})}}class E extends H{constructor(he,Ne=null){super(he,{isRenderable:!!(he.data.url||he.data.dest||he.data.action||he.data.isTooltipOnly||he.data.resetForm||he.data.actions&&(he.data.actions.Action||he.data.actions["Mouse Up"]||he.data.actions["Mouse Down"])),ignoreBorder:!!(null==Ne?void 0:Ne.ignoreBorder),createQuadrilaterals:!0})}render(){var ke;const{data:he,linkService:Ne}=this,Me=document.createElement("a");if(he.url)Ne.addLinkAttributes||(0,a.warn)("LinkAnnotationElement.render - missing `addLinkAttributes`-method on the `linkService`-instance."),null==(ke=Ne.addLinkAttributes)||ke.call(Ne,Me,he.url,he.newWindow);else if(he.action)this._bindNamedAction(Me,he.action);else if(he.dest)this._bindLink(Me,he.dest);else{let G=!1;he.actions&&(he.actions.Action||he.actions["Mouse Up"]||he.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(G=!0,this._bindJSAction(Me,he)),he.resetForm?this._bindResetFormAction(Me,he.resetForm):G||this._bindLink(Me,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((G,ot)=>{const We=0===ot?Me:Me.cloneNode();return G.appendChild(We),G}):(this.container.className="linkAnnotation",this.container.appendChild(Me),this.container)}_bindLink(he,Ne){he.href=this.linkService.getDestinationHash(Ne),he.onclick=()=>(Ne&&this.linkService.goToDestination(Ne),!1),(Ne||""===Ne)&&(he.className="internalLink")}_bindNamedAction(he,Ne){he.href=this.linkService.getAnchorUrl(""),he.onclick=()=>(this.linkService.executeNamedAction(Ne),!1),he.className="internalLink"}_bindJSAction(he,Ne){he.href=this.linkService.getAnchorUrl("");const Me=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const ke of Object.keys(Ne.actions)){const G=Me.get(ke);!G||(he[G]=()=>{var ot;return null==(ot=this.linkService.eventBus)||ot.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Ne.id,name:ke}}),!1})}he.onclick||(he.onclick=()=>!1),he.className="internalLink"}_bindResetFormAction(he,Ne){const Me=he.onclick;if(Me||(he.href=this.linkService.getAnchorUrl("")),he.className="internalLink",!this._fieldObjects)return(0,a.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(Me||(he.onclick=()=>!1));he.onclick=()=>{var At;Me&&Me();const{fields:ke,refs:G,include:ot}=Ne,We=[];if(0!==ke.length||0!==G.length){const Jt=new Set(G);for(const Wt of ke){const Sn=this._fieldObjects[Wt]||[];for(const{id:ye}of Sn)Jt.add(ye)}for(const Wt of Object.values(this._fieldObjects))for(const Sn of Wt)Jt.has(Sn.id)===ot&&We.push(Sn)}else for(const Jt of Object.values(this._fieldObjects))We.push(...Jt);const ut=this.annotationStorage,Mt=[];for(const Jt of We){const{id:Wt}=Jt;switch(Mt.push(Wt),Jt.type){case"text":{const ye=Jt.defaultValue||"";ut.setValue(Wt,{value:ye,valueAsString:ye});break}case"checkbox":case"radiobutton":ut.setValue(Wt,{value:Jt.defaultValue===Jt.exportValues});break;case"combobox":case"listbox":ut.setValue(Wt,{value:Jt.defaultValue||""});break;default:continue}const Sn=document.getElementById(Wt);!Sn||!r.has(Sn)||Sn.dispatchEvent(new Event("resetform"))}return this.enableScripting&&(null==(At=this.linkService.eventBus)||At.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:Mt,name:"ResetForm"}})),!1}}}class ee extends H{constructor(he){var Me,ke,G;super(he,{isRenderable:!!(he.data.hasPopup||(null==(Me=he.data.titleObj)?void 0:Me.str)||(null==(ke=he.data.contentsObj)?void 0:ke.str)||(null==(G=he.data.richText)?void 0:G.str))})}render(){this.container.className="textAnnotation";const he=document.createElement("img");return he.style.height=this.container.style.height,he.style.width=this.container.style.width,he.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",he.alt="[{{type}} Annotation]",he.dataset.l10nId="text_annotation_type",he.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(he,this.data),this.container.appendChild(he),this.container}}class x extends H{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(he){const{isWin:Ne,isMac:Me}=H.platform;return Ne&&he.ctrlKey||Me&&he.metaKey}_setEventListener(he,Ne,Me,ke){Ne.includes("mouse")?he.addEventListener(Ne,G=>{var ot;null==(ot=this.linkService.eventBus)||ot.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Me,value:ke(G),shift:G.shiftKey,modifier:this._getKeyModifier(G)}})}):he.addEventListener(Ne,G=>{var ot;null==(ot=this.linkService.eventBus)||ot.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Me,value:ke(G)}})})}_setEventListeners(he,Ne,Me){var ke;for(const[G,ot]of Ne)("Action"===ot||(null==(ke=this.data.actions)?void 0:ke[ot]))&&this._setEventListener(he,G,ot,Me)}_setBackgroundColor(he){const Ne=this.data.backgroundColor||null;he.style.backgroundColor=null===Ne?"transparent":a.Util.makeHexColor(Ne[0],Ne[1],Ne[2])}_dispatchEventFromSandbox(he,Ne){const Me=(G,ot,We)=>{const ut=We.detail[G];We.target.style[ot]=ze.ColorConverters[`${ut[0]}_HTML`](ut.slice(1))},ke={display:G=>{const ot=G.detail.display%2==1;G.target.style.visibility=ot?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:ot,print:0===G.detail.display||3===G.detail.display})},print:G=>{this.annotationStorage.setValue(this.data.id,{print:G.detail.print})},hidden:G=>{G.target.style.visibility=G.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:G.detail.hidden})},focus:G=>{setTimeout(()=>G.target.focus({preventScroll:!1}),0)},userName:G=>{G.target.title=G.detail.userName},readonly:G=>{G.detail.readonly?G.target.setAttribute("readonly",""):G.target.removeAttribute("readonly")},required:G=>{G.detail.required?G.target.setAttribute("required",""):G.target.removeAttribute("required")},bgColor:G=>{Me("bgColor","backgroundColor",G)},fillColor:G=>{Me("fillColor","backgroundColor",G)},fgColor:G=>{Me("fgColor","color",G)},textColor:G=>{Me("textColor","color",G)},borderColor:G=>{Me("borderColor","borderColor",G)},strokeColor:G=>{Me("strokeColor","borderColor",G)}};for(const G of Object.keys(Ne.detail)){const ot=he[G]||ke[G];ot&&ot(Ne)}}}class U extends x{constructor(he){super(he,{isRenderable:he.renderForms||!he.data.hasAppearance&&!!he.data.fieldValue})}setPropertyOnSiblings(he,Ne,Me,ke){const G=this.annotationStorage;for(const ot of this._getElementsByName(he.name,he.id))ot.domElement&&(ot.domElement[Ne]=Me),G.setValue(ot.id,{[ke]:Me})}render(){var ke;const he=this.annotationStorage,Ne=this.data.id;this.container.className="textWidgetAnnotation";let Me=null;if(this.renderForms){const G=he.getValue(Ne,{value:this.data.fieldValue,valueAsString:this.data.fieldValue}),ot=G.valueAsString||G.value||"",We={userValue:null,formattedValue:null};this.data.multiLine?(Me=document.createElement("textarea"),Me.textContent=ot):(Me=document.createElement("input"),Me.type="text",Me.setAttribute("value",ot)),r.add(Me),Me.disabled=this.data.readOnly,Me.name=this.data.fieldName,Me.tabIndex=K,We.userValue=ot,Me.setAttribute("id",Ne),Me.addEventListener("input",Mt=>{he.setValue(Ne,{value:Mt.target.value}),this.setPropertyOnSiblings(Me,"value",Mt.target.value,"value")}),Me.addEventListener("resetform",Mt=>{Me.value=We.userValue=this.data.defaultFieldValue||"",delete We.formattedValue});let ut=Mt=>{We.formattedValue&&(Mt.target.value=We.formattedValue),Mt.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){Me.addEventListener("focus",At=>{We.userValue&&(At.target.value=We.userValue)}),Me.addEventListener("updatefromsandbox",At=>{this._dispatchEventFromSandbox({value(Wt){We.userValue=Wt.detail.value||"",he.setValue(Ne,{value:We.userValue.toString()}),We.formattedValue||(Wt.target.value=We.userValue)},valueAsString(Wt){We.formattedValue=Wt.detail.valueAsString||"",Wt.target!==document.activeElement&&(Wt.target.value=We.formattedValue),he.setValue(Ne,{formattedValue:We.formattedValue})},selRange(Wt){const[Sn,ye]=Wt.detail.selRange;Sn>=0&&ye{var Wt;let Jt=-1;"Escape"===At.key?Jt=0:"Enter"===At.key?Jt=2:"Tab"===At.key&&(Jt=3),-1!==Jt&&(We.userValue=At.target.value,null==(Wt=this.linkService.eventBus)||Wt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Ne,name:"Keystroke",value:At.target.value,willCommit:!0,commitKey:Jt,selStart:At.target.selectionStart,selEnd:At.target.selectionEnd}}))});const Mt=ut;ut=null,Me.addEventListener("blur",At=>{var Jt;We.userValue=At.target.value,this._mouseState.isDown&&(null==(Jt=this.linkService.eventBus)||Jt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Ne,name:"Keystroke",value:At.target.value,willCommit:!0,commitKey:1,selStart:At.target.selectionStart,selEnd:At.target.selectionEnd}})),Mt(At)}),(null==(ke=this.data.actions)?void 0:ke.Keystroke)&&Me.addEventListener("beforeinput",At=>{var Je;We.formattedValue="";const{data:Jt,target:Wt}=At,{value:Sn,selectionStart:ye,selectionEnd:be}=Wt;null==(Je=this.linkService.eventBus)||Je.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Ne,name:"Keystroke",value:Sn,change:Jt,willCommit:!1,selStart:ye,selEnd:be}})}),this._setEventListeners(Me,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],At=>At.target.value)}if(ut&&Me.addEventListener("blur",ut),null!==this.data.maxLen&&(Me.maxLength=this.data.maxLen),this.data.comb){const At=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;Me.classList.add("comb"),Me.style.letterSpacing=`calc(${At}px - 1ch)`}}else Me=document.createElement("div"),Me.textContent=this.data.fieldValue,Me.style.verticalAlign="middle",Me.style.display="table-cell";return this._setTextStyle(Me),this._setBackgroundColor(Me),this.container.appendChild(Me),this.container}_setTextStyle(he){const{fontSize:Me,fontColor:ke}=this.data.defaultAppearanceData,G=he.style;Me&&(G.fontSize=`${Me}px`),G.color=a.Util.makeHexColor(ke[0],ke[1],ke[2]),null!==this.data.textAlignment&&(G.textAlign=["left","center","right"][this.data.textAlignment])}}class le extends x{constructor(he){super(he,{isRenderable:he.renderForms})}render(){const he=this.annotationStorage,Ne=this.data,Me=Ne.id;let ke=he.getValue(Me,{value:Ne.exportValue===Ne.fieldValue}).value;"string"==typeof ke&&(ke="Off"!==ke,he.setValue(Me,{value:ke})),this.container.className="buttonWidgetAnnotation checkBox";const G=document.createElement("input");return r.add(G),G.disabled=Ne.readOnly,G.type="checkbox",G.name=Ne.fieldName,ke&&G.setAttribute("checked",!0),G.setAttribute("id",Me),G.setAttribute("exportValue",Ne.exportValue),G.tabIndex=K,G.addEventListener("change",ot=>{const{name:We,checked:ut}=ot.target;for(const Mt of this._getElementsByName(We,Me)){const At=ut&&Mt.exportValue===Ne.exportValue;Mt.domElement&&(Mt.domElement.checked=At),he.setValue(Mt.id,{value:At})}he.setValue(Me,{value:ut})}),G.addEventListener("resetform",ot=>{ot.target.checked=(Ne.defaultFieldValue||"Off")===Ne.exportValue}),this.enableScripting&&this.hasJSActions&&(G.addEventListener("updatefromsandbox",ot=>{this._dispatchEventFromSandbox({value(ut){ut.target.checked="Off"!==ut.detail.value,he.setValue(Me,{value:ut.target.checked})}},ot)}),this._setEventListeners(G,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ot=>ot.target.checked)),this._setBackgroundColor(G),this.container.appendChild(G),this.container}}class xe extends x{constructor(he){super(he,{isRenderable:he.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const he=this.annotationStorage,Ne=this.data,Me=Ne.id;let ke=he.getValue(Me,{value:Ne.fieldValue===Ne.buttonValue}).value;"string"==typeof ke&&(ke=ke!==Ne.buttonValue,he.setValue(Me,{value:ke}));const G=document.createElement("input");if(r.add(G),G.disabled=Ne.readOnly,G.type="radio",G.name=Ne.fieldName,ke&&G.setAttribute("checked",!0),G.setAttribute("id",Me),G.tabIndex=K,G.addEventListener("change",ot=>{const{name:We,checked:ut}=ot.target;for(const Mt of this._getElementsByName(We,Me))he.setValue(Mt.id,{value:!1});he.setValue(Me,{value:ut})}),G.addEventListener("resetform",ot=>{const We=Ne.defaultFieldValue;ot.target.checked=null!=We&&We===Ne.buttonValue}),this.enableScripting&&this.hasJSActions){const ot=Ne.buttonValue;G.addEventListener("updatefromsandbox",We=>{this._dispatchEventFromSandbox({value:Mt=>{const At=ot===Mt.detail.value;for(const Jt of this._getElementsByName(Mt.target.name)){const Wt=At&&Jt.id===Me;Jt.domElement&&(Jt.domElement.checked=Wt),he.setValue(Jt.id,{value:Wt})}}},We)}),this._setEventListeners(G,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],We=>We.target.checked)}return this._setBackgroundColor(G),this.container.appendChild(G),this.container}}class re extends E{constructor(he){super(he,{ignoreBorder:he.data.hasAppearance})}render(){const he=super.render();return he.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(he.title=this.data.alternativeText),he}}class ce extends x{constructor(he){super(he,{isRenderable:he.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const he=this.annotationStorage,Ne=this.data.id;he.getValue(Ne,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0});let{fontSize:Me}=this.data.defaultAppearanceData;Me||(Me=9);const ke=`calc(${Me}px * var(--zoom-factor))`,G=document.createElement("select");r.add(G),G.disabled=this.data.readOnly,G.name=this.data.fieldName,G.setAttribute("id",Ne),G.tabIndex=K,G.style.fontSize=`${Me}px`,this.data.combo||(G.size=this.data.options.length,this.data.multiSelect&&(G.multiple=!0)),G.addEventListener("resetform",ut=>{const Mt=this.data.defaultFieldValue;for(const At of G.options)At.selected=At.value===Mt});for(const ut of this.data.options){const Mt=document.createElement("option");Mt.textContent=ut.displayValue,Mt.value=ut.exportValue,this.data.combo&&(Mt.style.fontSize=ke),this.data.fieldValue.includes(ut.exportValue)&&Mt.setAttribute("selected",!0),G.appendChild(Mt)}const ot=(ut,Mt)=>{const At=Mt?"value":"textContent",Jt=ut.target.options;return ut.target.multiple?Array.prototype.filter.call(Jt,Wt=>Wt.selected).map(Wt=>Wt[At]):-1===Jt.selectedIndex?null:Jt[Jt.selectedIndex][At]},We=ut=>Array.prototype.map.call(ut.target.options,At=>({displayValue:At.textContent,exportValue:At.value}));return this.enableScripting&&this.hasJSActions?(G.addEventListener("updatefromsandbox",ut=>{this._dispatchEventFromSandbox({value(At){const Jt=At.detail.value,Wt=new Set(Array.isArray(Jt)?Jt:[Jt]);for(const Sn of G.options)Sn.selected=Wt.has(Sn.value);he.setValue(Ne,{value:ot(At,!0)})},multipleSelection(At){G.multiple=!0},remove(At){const Jt=G.options,Wt=At.detail.remove;Jt[Wt].selected=!1,G.remove(Wt),Jt.length>0&&-1===Array.prototype.findIndex.call(Jt,ye=>ye.selected)&&(Jt[0].selected=!0),he.setValue(Ne,{value:ot(At,!0),items:We(At)})},clear(At){for(;0!==G.length;)G.remove(0);he.setValue(Ne,{value:null,items:[]})},insert(At){const{index:Jt,displayValue:Wt,exportValue:Sn}=At.detail.insert,ye=document.createElement("option");ye.textContent=Wt,ye.value=Sn,G.insertBefore(ye,G.children[Jt]),he.setValue(Ne,{value:ot(At,!0),items:We(At)})},items(At){const{items:Jt}=At.detail;for(;0!==G.length;)G.remove(0);for(const Wt of Jt){const{displayValue:Sn,exportValue:ye}=Wt,be=document.createElement("option");be.textContent=Sn,be.value=ye,G.appendChild(be)}G.options.length>0&&(G.options[0].selected=!0),he.setValue(Ne,{value:ot(At,!0),items:We(At)})},indices(At){const Jt=new Set(At.detail.indices);for(const Wt of At.target.options)Wt.selected=Jt.has(Wt.index);he.setValue(Ne,{value:ot(At,!0)})},editable(At){At.target.disabled=!At.detail.editable}},ut)}),G.addEventListener("input",ut=>{var Jt;const Mt=ot(ut,!0),At=ot(ut,!1);he.setValue(Ne,{value:Mt}),null==(Jt=this.linkService.eventBus)||Jt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Ne,name:"Keystroke",value:At,changeEx:Mt,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(G,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],ut=>ut.target.checked)):G.addEventListener("input",function(ut){he.setValue(Ne,{value:ot(ut)})}),this._setBackgroundColor(G),this.container.appendChild(G),this.container}}class L extends H{constructor(he){var Me,ke,G;super(he,{isRenderable:!!((null==(Me=he.data.titleObj)?void 0:Me.str)||(null==(ke=he.data.contentsObj)?void 0:ke.str)||(null==(G=he.data.richText)?void 0:G.str))})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const Me=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(0===Me.length)return this.container;const ke=new J({container:this.container,trigger:Array.from(Me),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),G=this.page,ot=a.Util.normalizeRect([this.data.parentRect[0],G.view[3]-this.data.parentRect[1]+G.view[1],this.data.parentRect[2],G.view[3]-this.data.parentRect[3]+G.view[1]]),We=ot[0]+this.data.parentRect[2]-this.data.parentRect[0],ut=ot[1];return this.container.style.transformOrigin=`${-We}px ${-ut}px`,this.container.style.left=`${We}px`,this.container.style.top=`${ut}px`,this.container.appendChild(ke.render()),this.container}}class J{constructor(he){this.container=he.container,this.trigger=he.trigger,this.color=he.color,this.titleObj=he.titleObj,this.modificationDate=he.modificationDate,this.contentsObj=he.contentsObj,this.richText=he.richText,this.hideWrapper=he.hideWrapper||!1,this.pinned=!1}render(){var We,ut;const Ne=document.createElement("div");Ne.className="popupWrapper",this.hideElement=this.hideWrapper?Ne:this.container,this.hideElement.hidden=!0;const Me=document.createElement("div");Me.className="popup";const ke=this.color;ke&&(Me.style.backgroundColor=a.Util.makeHexColor(0|.7*(255-ke[0])+ke[0],0|.7*(255-ke[1])+ke[1],0|.7*(255-ke[2])+ke[2]));const G=document.createElement("h1");G.dir=this.titleObj.dir,G.textContent=this.titleObj.str,Me.appendChild(G);const ot=C.PDFDateString.toDateObject(this.modificationDate);if(ot){const Mt=document.createElement("span");Mt.className="popupDate",Mt.textContent="{{date}}, {{time}}",Mt.dataset.l10nId="annotation_date_string",Mt.dataset.l10nArgs=JSON.stringify({date:ot.toLocaleDateString(),time:ot.toLocaleTimeString()}),Me.appendChild(Mt)}if(!(null==(We=this.richText)?void 0:We.str)||(null==(ut=this.contentsObj)?void 0:ut.str)&&this.contentsObj.str!==this.richText.str){const Mt=this._formatContents(this.contentsObj);Me.appendChild(Mt)}else p.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:Me}),Me.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const Mt of this.trigger)Mt.addEventListener("click",this._toggle.bind(this)),Mt.addEventListener("mouseover",this._show.bind(this,!1)),Mt.addEventListener("mouseout",this._hide.bind(this,!1));return Me.addEventListener("click",this._hide.bind(this,!0)),Ne.appendChild(Me),Ne}_formatContents({str:he,dir:Ne}){const Me=document.createElement("p");Me.className="popupContent",Me.dir=Ne;const ke=he.split(/(?:\r\n?|\n)/);for(let G=0,ot=ke.length;G{function S(C){return Math.floor(255*Math.max(0,Math.min(1,C))).toString(16).padStart(2,"0")}Object.defineProperty(oe,"__esModule",{value:!0}),oe.ColorConverters=void 0,oe.ColorConverters=class{static CMYK_G([N,ze,p,K]){return["G",1-Math.min(1,.3*N+.59*p+.11*ze+K)]}static G_CMYK([N]){return["CMYK",0,0,0,1-N]}static G_RGB([N]){return["RGB",N,N,N]}static G_HTML([N]){const ze=S(N);return`#${ze}${ze}${ze}`}static RGB_G([N,ze,p]){return["G",.3*N+.59*ze+.11*p]}static RGB_HTML([N,ze,p]){return`#${S(N)}${S(ze)}${S(p)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([N,ze,p,K]){return["RGB",1-Math.min(1,N+K),1-Math.min(1,p+K),1-Math.min(1,ze+K)]}static CMYK_HTML(N){return this.RGB_HTML(this.CMYK_RGB(N))}static RGB_CMYK([N,ze,p]){const K=1-N,r=1-ze,O=1-p;return["CMYK",K,r,O,Math.min(K,r,O)]}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.XfaLayer=void 0;var a=S(1),C=S(17);oe.XfaLayer=class{static setupStorage(p,K,r,O,P){const H=O.getValue(K,{value:null});switch(r.name){case"textarea":if(null!==H.value&&(p.textContent=H.value),"print"===P)break;p.addEventListener("input",E=>{O.setValue(K,{value:E.target.value})});break;case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(H.value===r.attributes.xfaOn?p.setAttribute("checked",!0):H.value===r.attributes.xfaOff&&p.removeAttribute("checked"),"print"===P)break;p.addEventListener("change",E=>{O.setValue(K,{value:E.target.getAttribute(E.target.checked?"xfaOn":"xfaOff")})})}else{if(null!==H.value&&p.setAttribute("value",H.value),"print"===P)break;p.addEventListener("input",E=>{O.setValue(K,{value:E.target.value})})}break;case"select":if(null!==H.value)for(const E of r.children)E.attributes.value===H.value&&(E.attributes.selected=!0);p.addEventListener("input",E=>{const ee=E.target.options;O.setValue(K,{value:-1===ee.selectedIndex?"":ee[ee.selectedIndex].value})})}}static setAttributes({html:p,element:K,storage:r=null,intent:O,linkService:P}){var ee;const{attributes:H}=K,E=p instanceof HTMLAnchorElement;"radio"===H.type&&(H.name=`${H.name}-${O}`);for(const[x,U]of Object.entries(H))if(null!=U&&"dataId"!==x)if("style"!==x)if("textContent"===x)p.textContent=U;else if("class"===x)U.length&&p.setAttribute(x,U.join(" "));else{if(E&&("href"===x||"newWindow"===x))continue;p.setAttribute(x,U)}else Object.assign(p.style,U);E&&(P.addLinkAttributes||(0,a.warn)("XfaLayer.setAttribute - missing `addLinkAttributes`-method on the `linkService`-instance."),null==(ee=P.addLinkAttributes)||ee.call(P,p,H.href,H.newWindow)),r&&H.dataId&&this.setupStorage(p,H.dataId,K,r)}static render(p){var U;const K=p.annotationStorage,r=p.linkService,O=p.xfaHtml,P=p.intent||"display",H=document.createElement(O.name);O.attributes&&this.setAttributes({html:H,element:O,intent:P,linkService:r});const E=[[O,-1,H]],ee=p.div;if(ee.appendChild(H),p.viewport){const le=`matrix(${p.viewport.transform.join(",")})`;ee.style.transform=le}"richText"!==P&&ee.setAttribute("class","xfaLayer xfaFont");const x=[];for(;E.length>0;){const[le,xe,re]=E[E.length-1];if(xe+1===le.children.length){E.pop();continue}const ce=le.children[++E[E.length-1][1]];if(null===ce)continue;const{name:L}=ce;if("#text"===L){const we=document.createTextNode(ce.value);x.push(we),re.appendChild(we);continue}let J;if(J=(null==(U=null==ce?void 0:ce.attributes)?void 0:U.xmlns)?document.createElementNS(ce.attributes.xmlns,L):document.createElement(L),re.appendChild(J),ce.attributes&&this.setAttributes({html:J,element:ce,storage:K,intent:P,linkService:r}),ce.children&&ce.children.length>0)E.push([ce,-1,J]);else if(ce.value){const we=document.createTextNode(ce.value);C.XfaText.shouldBuildText(L)&&x.push(we),J.appendChild(we)}}for(const le of ee.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))le.setAttribute("readOnly",!0);return{textDivs:x}}static update(p){const K=`matrix(${p.viewport.transform.join(",")})`;p.div.style.transform=K,p.div.hidden=!1}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.renderTextLayer=function(xe){const re=new U({textContent:xe.textContent,textContentStream:xe.textContentStream,container:xe.container,viewport:xe.viewport,textDivs:xe.textDivs,textContentItemsStr:xe.textContentItemsStr,enhanceTextSelection:xe.enhanceTextSelection});return re._render(xe.timeout),re};var a=S(1);const N=30,p=new Map,K=/^\s+$/g;function O(xe,re,ce,L){const J=document.createElement("span"),we=xe._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==re.str,hasEOL:re.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:""!==re.str,hasEOL:re.hasEOL};xe._textDivs.push(J);const ge=a.Util.transform(xe._viewport.transform,re.transform);let fe=Math.atan2(ge[1],ge[0]);const Ce=ce[re.fontName];Ce.vertical&&(fe+=Math.PI/2);const e=Math.hypot(ge[2],ge[3]),z=e*function(xe,re){const ce=p.get(xe);if(ce)return ce;re.save(),re.font=`30px ${xe}`;const L=re.measureText("");let J=L.fontBoundingBoxAscent,we=Math.abs(L.fontBoundingBoxDescent);if(J){re.restore();const fe=J/(J+we);return p.set(xe,fe),fe}re.strokeStyle="red",re.clearRect(0,0,N,N),re.strokeText("g",0,0);let ge=re.getImageData(0,0,N,N).data;we=0;for(let fe=ge.length-1-3;fe>=0;fe-=4)if(ge[fe]>0){we=Math.ceil(fe/4/N);break}re.clearRect(0,0,N,N),re.strokeText("A",0,N),ge=re.getImageData(0,0,N,N).data,J=0;for(let fe=0,Ce=ge.length;fe0){J=N-Math.floor(fe/4/N);break}if(re.restore(),J){const fe=J/(J+we);return p.set(xe,fe),fe}return p.set(xe,.8),.8}(Ce.fontFamily,L);let je,rt;0===fe?(je=ge[4],rt=ge[5]-z):(je=ge[4]+z*Math.sin(fe),rt=ge[5]-z*Math.cos(fe)),J.style.left=`${je}px`,J.style.top=`${rt}px`,J.style.fontSize=`${e}px`,J.style.fontFamily=Ce.fontFamily,J.setAttribute("role","presentation"),J.textContent=re.str,J.dir=re.dir,xe._fontInspectorEnabled&&(J.dataset.fontName=re.fontName),0!==fe&&(we.angle=fe*(180/Math.PI));let it=!1;if(re.str.length>1||xe._enhanceTextSelection&&K.test(re.str))it=!0;else if(" "!==re.str&&re.transform[0]!==re.transform[3]){const ct=Math.abs(re.transform[0]),g=Math.abs(re.transform[3]);ct!==g&&Math.max(ct,g)/Math.min(ct,g)>1.5&&(it=!0)}if(it&&(we.canvasWidth=Ce.vertical?re.height*xe._viewport.scale:re.width*xe._viewport.scale),xe._textDivProperties.set(J,we),xe._textContentStream&&xe._layoutText(J),xe._enhanceTextSelection&&we.hasText){let ct=1,g=0;0!==fe&&(ct=Math.cos(fe),g=Math.sin(fe));const qe=(Ce.vertical?re.height:re.width)*xe._viewport.scale,Ve=e;let He,X;0!==fe?(He=[ct,g,-g,ct,je,rt],X=a.Util.getAxialAlignedBoundingBox([0,0,qe,Ve],He)):X=[je,rt,je+qe,rt+Ve],xe._bounds.push({left:X[0],top:X[1],right:X[2],bottom:X[3],div:J,size:[qe,Ve],m:He})}}function P(xe){if(xe._canceled)return;const re=xe._textDivs,ce=xe._capability,L=re.length;if(L>1e5)return xe._renderingDone=!0,void ce.resolve();if(!xe._textContentStream)for(let J=0;J0&&(L=L?Math.min(we,L):we)}return L}function x(xe,re){re.sort(function(J,we){return J.x1-we.x1||J.index-we.index});const L=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const J of re){let we=0;for(;we=0&&L[ge].start>=J.y2;)ge--;let fe,Ce,e,z,je=-1/0;for(e=we;e<=ge;e++){let ct;fe=L[e],Ce=fe.boundary,ct=Ce.x2>J.x1?Ce.index>J.index?Ce.x1New:J.x1:void 0===Ce.x2New?(Ce.x2+J.x1)/2:Ce.x2New,ct>je&&(je=ct)}for(J.x1New=je,e=we;e<=ge;e++)fe=L[e],Ce=fe.boundary,void 0===Ce.x2New?Ce.x2>J.x1?Ce.index>J.index&&(Ce.x2New=Ce.x2):Ce.x2New=je:Ce.x2New>je&&(Ce.x2New=Math.max(je,Ce.x2));const rt=[];let it=null;for(e=we;e<=ge;e++){fe=L[e],Ce=fe.boundary;const ct=Ce.x2>J.x2?Ce:J;it===ct?rt[rt.length-1].end=fe.end:(rt.push({start:fe.start,end:fe.end,boundary:ct}),it=ct)}for(L[we].start=0&&L[z].start>=Ce.y1;z--)ct=L[z].boundary===Ce;for(z=ge+1;!ct&&z{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new a.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(re,ce){for(let L=0,J=re.length;L0){const fe=ce.canvasWidth/ge;this._enhanceTextSelection&&(ce.scale=fe),L=`scaleX(${fe})`}}if(0!==ce.angle&&(L=`rotate(${ce.angle}deg) ${L}`),L.length>0&&(this._enhanceTextSelection&&(ce.originalTransform=L),re.style.transform=L),ce.hasText&&this._container.appendChild(re),ce.hasEOL){const J=document.createElement("br");J.setAttribute("role","presentation"),this._container.appendChild(J)}}_render(re=0){const ce=(0,a.createPromiseCapability)();let L=Object.create(null);const J=this._document.createElement("canvas");if(J.height=J.width=N,J.mozOpaque=!0,this._layoutTextCtx=J.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),ce.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const we=()=>{this._reader.read().then(({value:ge,done:fe})=>{fe?ce.resolve():(Object.assign(L,ge.styles),this._processItems(ge.items,L),we())},ce.reject)};this._reader=this._textContentStream.getReader(),we()}}ce.promise.then(()=>{L=null,re?this._renderTimer=setTimeout(()=>{P(this),this._renderTimer=null},re):P(this)},this._capability.reject)}expandTextDivs(re=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function(xe){const re=xe._bounds,ce=xe._viewport,L=function(xe,re,ce){const L=ce.map(function(we,ge){return{x1:we.left,y1:we.top,x2:we.right,y2:we.bottom,index:ge,x1New:void 0,x2New:void 0}});x(xe,L);const J=new Array(ce.length);for(const we of L)J[we.index]={left:we.x1New,top:0,right:we.x2New,bottom:0};ce.map(function(we,ge){const fe=J[ge],Ce=L[ge];Ce.x1=we.top,Ce.y1=xe-fe.right,Ce.x2=we.bottom,Ce.y2=xe-fe.left,Ce.index=ge,Ce.x1New=void 0,Ce.x2New=void 0}),x(re,L);for(const we of L){const ge=we.index;J[ge].top=we.x1New,J[ge].bottom=we.x2New}return J}(ce.width,ce.height,re);for(let J=0;J0?(L.push(`${fe.paddingTop}px`),ce.push(`translateY(${-fe.paddingTop}px)`)):L.push(0),L.push(fe.paddingRight>0?fe.paddingRight/fe.scale+"px":0),L.push(fe.paddingBottom>0?`${fe.paddingBottom}px`:0),fe.paddingLeft>0?(L.push(fe.paddingLeft/fe.scale+"px"),ce.push(`translateX(${-fe.paddingLeft/fe.scale}px)`)):L.push(0),ge.style.padding=L.join(" "),ce.length&&(ge.style.transform=ce.join(" "))):(ge.style.padding=null,ge.style.transform=fe.originalTransform))}}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.SVGGraphics=void 0;var a=S(1),C=S(5),N=S(3);let ze=class{constructor(){(0,a.unreachable)("Not implemented: SVGGraphics")}};oe.SVGGraphics=ze;{let x=function(L){let J=[];const we=[];for(const ge of L)"save"!==ge.fn?"restore"===ge.fn?J=we.pop():J.push(ge):(J.push({fnId:92,fn:"group",items:[]}),we.push(J),J=J[J.length-1].items);return J},U=function(L){if(Number.isInteger(L))return L.toString();const J=L.toFixed(10);let we=J.length-1;if("0"!==J[we])return J;do{we--}while("0"===J[we]);return J.substring(0,"."===J[we]?we:we+1)},le=function(L){if(0===L[4]&&0===L[5]){if(0===L[1]&&0===L[2])return 1===L[0]&&1===L[3]?"":`scale(${U(L[0])} ${U(L[3])})`;if(L[0]===L[3]&&L[1]===-L[2]){const J=180*Math.acos(L[0])/Math.PI;return`rotate(${U(J)})`}}else if(1===L[0]&&0===L[1]&&0===L[2]&&1===L[3])return`translate(${U(L[4])} ${U(L[5])})`;return`matrix(${U(L[0])} ${U(L[1])} ${U(L[2])} ${U(L[3])} ${U(L[4])} ${U(L[5])})`};const p={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},K="http://www.w3.org/XML/1998/namespace",r="http://www.w3.org/1999/xlink",O=["butt","round","square"],P=["miter","round","bevel"],H=function(L,J="",we=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!we)return URL.createObjectURL(new Blob([L],{type:J}));const ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let fe=`data:${J};base64,`;for(let Ce=0,e=L.length;Ce>2]+ge[(3&z)<<4|je>>4]+ge[Ce+1>6:64]+ge[Ce+2>1&2147483647:it>>1&2147483647;we[rt]=it}function fe(rt,it,ct,g){let qe=g;const Ve=it.length;ct[qe]=Ve>>24&255,ct[qe+1]=Ve>>16&255,ct[qe+2]=Ve>>8&255,ct[qe+3]=255&Ve,qe+=4,ct[qe]=255&rt.charCodeAt(0),ct[qe+1]=255&rt.charCodeAt(1),ct[qe+2]=255&rt.charCodeAt(2),ct[qe+3]=255&rt.charCodeAt(3),qe+=4,ct.set(it,qe),qe+=it.length;const He=function(rt,it,ct){let g=-1;for(let qe=it;qe>>8^we[255&(g^rt[qe])];return-1^g}(ct,g+4,qe);ct[qe]=He>>24&255,ct[qe+1]=He>>16&255,ct[qe+2]=He>>8&255,ct[qe+3]=255&He}function z(rt){let it=rt.length;const ct=65535,g=Math.ceil(it/ct),qe=new Uint8Array(2+it+5*g+4);let Ve=0;qe[Ve++]=120,qe[Ve++]=156;let He=0;for(;it>ct;)qe[Ve++]=0,qe[Ve++]=255,qe[Ve++]=255,qe[Ve++]=0,qe[Ve++]=0,qe.set(rt.subarray(He,He+ct),Ve),Ve+=ct,He+=ct,it-=ct;qe[Ve++]=1,qe[Ve++]=255&it,qe[Ve++]=it>>8&255,qe[Ve++]=255&~it,qe[Ve++]=(65535&~it)>>8&255,qe.set(rt.subarray(He),Ve),Ve+=rt.length-He;const X=function(rt,it,ct){let g=1,qe=0;for(let Ve=0;Ve>24&255,qe[Ve++]=X>>16&255,qe[Ve++]=X>>8&255,qe[Ve++]=255&X,qe}return function(it,ct,g){return function(rt,it,ct,g){const qe=rt.width,Ve=rt.height;let He,X,Le;const Te=rt.data;switch(it){case a.ImageKind.GRAYSCALE_1BPP:X=0,He=1,Le=qe+7>>3;break;case a.ImageKind.RGB_24BPP:X=2,He=8,Le=3*qe;break;case a.ImageKind.RGBA_32BPP:X=6,He=8,Le=4*qe;break;default:throw new Error("invalid format")}const Ze=new Uint8Array((1+Le)*Ve);let he=0,Ne=0;for(let ut=0;ut>24&255,qe>>16&255,qe>>8&255,255&qe,Ve>>24&255,Ve>>16&255,Ve>>8&255,255&Ve,He,X,0,0,0]),ke=function(rt){if(!N.isNodeJS)return z(rt);try{let it;it=parseInt(process.versions.node)>=8?rt:Buffer.from(rt);const ct=__webpack_require__(2258).deflateSync(it,{level:9});return ct instanceof Uint8Array?ct:new Uint8Array(ct)}catch(it){(0,a.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+it)}return z(rt)}(Ze),ot=new Uint8Array(L.length+36+Me.length+ke.length);let We=0;return ot.set(L,We),We+=L.length,fe("IHDR",Me,ot,We),We+=12+Me.length,fe("IDATA",ke,ot,We),We+=12+ke.length,fe("IEND",new Uint8Array(0),ot,We),H(ot,"image/png",ct)}(it,void 0===it.kind?a.ImageKind.GRAYSCALE_1BPP:it.kind,ct,g)}}();class ee{constructor(){this.fontSizeScale=1,this.fontWeight=p.fontWeight,this.fontSize=0,this.textMatrix=a.IDENTITY_MATRIX,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=a.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=p.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(J,we){this.x=J,this.y=we}}let xe=0,re=0,ce=0;oe.SVGGraphics=ze=class{constructor(L,J,we=!1){this.svgFactory=new C.DOMSVGFactory,this.current=new ee,this.transformMatrix=a.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=L,this.objs=J,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!we,this._operatorIdMapping=[];for(const ge in a.OPS)this._operatorIdMapping[a.OPS[ge]]=ge}save(){this.transformStack.push(this.transformMatrix);const L=this.current;this.extraStack.push(L),this.current=L.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(L){this.save(),this.executeOpTree(L),this.restore()}loadDependencies(L){const J=L.fnArray,we=L.argsArray;for(let ge=0,fe=J.length;ge{e.get(Ce,je)});this.current.dependencies.push(z)}return Promise.all(this.current.dependencies)}transform(L,J,we,ge,fe,Ce){this.transformMatrix=a.Util.transform(this.transformMatrix,[L,J,we,ge,fe,Ce]),this.tgrp=null}getSVG(L,J){this.viewport=J;const we=this._initialize(J);return this.loadDependencies(L).then(()=>(this.transformMatrix=a.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(L)),we))}convertOpList(L){const J=this._operatorIdMapping,we=L.argsArray,ge=L.fnArray,fe=[];for(let Ce=0,e=ge.length;Ce0&&(this.current.lineWidth=L)}setLineCap(L){this.current.lineCap=O[L]}setLineJoin(L){this.current.lineJoin=P[L]}setMiterLimit(L){this.current.miterLimit=L}setStrokeAlpha(L){this.current.strokeAlpha=L}setStrokeRGBColor(L,J,we){this.current.strokeColor=a.Util.makeHexColor(L,J,we)}setFillAlpha(L){this.current.fillAlpha=L}setFillRGBColor(L,J,we){this.current.fillColor=a.Util.makeHexColor(L,J,we),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(L){this.current.strokeColor=this._makeColorN_Pattern(L)}setFillColorN(L){this.current.fillColor=this._makeColorN_Pattern(L)}shadingFill(L){const J=this.viewport.width,we=this.viewport.height,ge=a.Util.inverseTransform(this.transformMatrix),fe=a.Util.applyTransform([0,0],ge),Ce=a.Util.applyTransform([0,we],ge),e=a.Util.applyTransform([J,0],ge),z=a.Util.applyTransform([J,we],ge),je=Math.min(fe[0],Ce[0],e[0],z[0]),rt=Math.min(fe[1],Ce[1],e[1],z[1]),it=Math.max(fe[0],Ce[0],e[0],z[0]),ct=Math.max(fe[1],Ce[1],e[1],z[1]),g=this.svgFactory.createElement("svg:rect");g.setAttributeNS(null,"x",je),g.setAttributeNS(null,"y",rt),g.setAttributeNS(null,"width",it-je),g.setAttributeNS(null,"height",ct-rt),g.setAttributeNS(null,"fill",this._makeShadingPattern(L)),this.current.fillAlpha<1&&g.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(g)}_makeColorN_Pattern(L){return"TilingPattern"===L[0]?this._makeTilingPattern(L):this._makeShadingPattern(L)}_makeTilingPattern(L){const J=L[1],we=L[2],ge=L[3]||a.IDENTITY_MATRIX,[fe,Ce,e,z]=L[4],je=L[5],rt=L[6],it=L[7],ct="shading"+ce++,[g,qe,Ve,He]=a.Util.normalizeRect([...a.Util.applyTransform([fe,Ce],ge),...a.Util.applyTransform([e,z],ge)]),[X,Le]=a.Util.singularValueDecompose2dScale(ge),Te=je*X,Ze=rt*Le,he=this.svgFactory.createElement("svg:pattern");he.setAttributeNS(null,"id",ct),he.setAttributeNS(null,"patternUnits","userSpaceOnUse"),he.setAttributeNS(null,"width",Te),he.setAttributeNS(null,"height",Ze),he.setAttributeNS(null,"x",`${g}`),he.setAttributeNS(null,"y",`${qe}`);const Ne=this.svg,Me=this.transformMatrix,ke=this.current.fillColor,G=this.current.strokeColor,ot=this.svgFactory.create(Ve-g,He-qe);if(this.svg=ot,this.transformMatrix=ge,2===it){const We=a.Util.makeHexColor(...J);this.current.fillColor=We,this.current.strokeColor=We}return this.executeOpTree(this.convertOpList(we)),this.svg=Ne,this.transformMatrix=Me,this.current.fillColor=ke,this.current.strokeColor=G,he.appendChild(ot.childNodes[0]),this.defs.appendChild(he),`url(#${ct})`}_makeShadingPattern(L){switch("string"==typeof L&&(L=this.objs.get(L)),L[0]){case"RadialAxial":const J="shading"+ce++,we=L[3];let ge;switch(L[1]){case"axial":const fe=L[4],Ce=L[5];ge=this.svgFactory.createElement("svg:linearGradient"),ge.setAttributeNS(null,"id",J),ge.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),ge.setAttributeNS(null,"x1",fe[0]),ge.setAttributeNS(null,"y1",fe[1]),ge.setAttributeNS(null,"x2",Ce[0]),ge.setAttributeNS(null,"y2",Ce[1]);break;case"radial":const e=L[4],z=L[5],je=L[6],rt=L[7];ge=this.svgFactory.createElement("svg:radialGradient"),ge.setAttributeNS(null,"id",J),ge.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),ge.setAttributeNS(null,"cx",z[0]),ge.setAttributeNS(null,"cy",z[1]),ge.setAttributeNS(null,"r",rt),ge.setAttributeNS(null,"fx",e[0]),ge.setAttributeNS(null,"fy",e[1]),ge.setAttributeNS(null,"fr",je);break;default:throw new Error(`Unknown RadialAxial type: ${L[1]}`)}for(const fe of we){const Ce=this.svgFactory.createElement("svg:stop");Ce.setAttributeNS(null,"offset",fe[0]),Ce.setAttributeNS(null,"stop-color",fe[1]),ge.appendChild(Ce)}return this.defs.appendChild(ge),`url(#${J})`;case"Mesh":return(0,a.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${L[0]}`)}}setDash(L,J){this.current.dashArray=L,this.current.dashPhase=J}constructPath(L,J){const we=this.current;let ge=we.x,fe=we.y,Ce=[],e=0;for(const z of L)switch(0|z){case a.OPS.rectangle:ge=J[e++],fe=J[e++];const it=ge+J[e++],ct=fe+J[e++];Ce.push("M",U(ge),U(fe),"L",U(it),U(fe),"L",U(it),U(ct),"L",U(ge),U(ct),"Z");break;case a.OPS.moveTo:ge=J[e++],fe=J[e++],Ce.push("M",U(ge),U(fe));break;case a.OPS.lineTo:ge=J[e++],fe=J[e++],Ce.push("L",U(ge),U(fe));break;case a.OPS.curveTo:ge=J[e+4],fe=J[e+5],Ce.push("C",U(J[e]),U(J[e+1]),U(J[e+2]),U(J[e+3]),U(ge),U(fe)),e+=6;break;case a.OPS.curveTo2:Ce.push("C",U(ge),U(fe),U(J[e]),U(J[e+1]),U(J[e+2]),U(J[e+3])),ge=J[e+2],fe=J[e+3],e+=4;break;case a.OPS.curveTo3:ge=J[e+2],fe=J[e+3],Ce.push("C",U(J[e]),U(J[e+1]),U(ge),U(fe),U(ge),U(fe)),e+=4;break;case a.OPS.closePath:Ce.push("Z")}Ce=Ce.join(" "),we.path&&L.length>0&&L[0]!==a.OPS.rectangle&&L[0]!==a.OPS.moveTo?Ce=we.path.getAttributeNS(null,"d")+Ce:(we.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(we.path)),we.path.setAttributeNS(null,"d",Ce),we.path.setAttributeNS(null,"fill","none"),we.element=we.path,we.setCurrentPoint(ge,fe)}endPath(){const L=this.current;if(L.path=null,!this.pendingClip)return;if(!L.element)return void(this.pendingClip=null);const J="clippath"+xe++,we=this.svgFactory.createElement("svg:clipPath");we.setAttributeNS(null,"id",J),we.setAttributeNS(null,"transform",le(this.transformMatrix));const ge=L.element.cloneNode(!0);if(ge.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,we.appendChild(ge),this.defs.appendChild(we),L.activeClipUrl){L.clipGroup=null;for(const fe of this.extraStack)fe.clipGroup=null;we.setAttributeNS(null,"clip-path",L.activeClipUrl)}L.activeClipUrl=`url(#${J})`,this.tgrp=null}clip(L){this.pendingClip=L}closePath(){const L=this.current;if(L.path){const J=`${L.path.getAttributeNS(null,"d")}Z`;L.path.setAttributeNS(null,"d",J)}}setLeading(L){this.current.leading=-L}setTextRise(L){this.current.textRise=L}setTextRenderingMode(L){this.current.textRenderingMode=L}setHScale(L){this.current.textHScale=L/100}setRenderingIntent(L){}setFlatness(L){}setGState(L){for(const[J,we]of L)switch(J){case"LW":this.setLineWidth(we);break;case"LC":this.setLineCap(we);break;case"LJ":this.setLineJoin(we);break;case"ML":this.setMiterLimit(we);break;case"D":this.setDash(we[0],we[1]);break;case"RI":this.setRenderingIntent(we);break;case"FL":this.setFlatness(we);break;case"Font":this.setFont(we);break;case"CA":this.setStrokeAlpha(we);break;case"ca":this.setFillAlpha(we);break;default:(0,a.warn)(`Unimplemented graphic state operator ${J}`)}}fill(){const L=this.current;L.element&&(L.element.setAttributeNS(null,"fill",L.fillColor),L.element.setAttributeNS(null,"fill-opacity",L.fillAlpha),this.endPath())}stroke(){const L=this.current;L.element&&(this._setStrokeAttributes(L.element),L.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(L,J=1){const we=this.current;let ge=we.dashArray;1!==J&&ge.length>0&&(ge=ge.map(function(fe){return J*fe})),L.setAttributeNS(null,"stroke",we.strokeColor),L.setAttributeNS(null,"stroke-opacity",we.strokeAlpha),L.setAttributeNS(null,"stroke-miterlimit",U(we.miterLimit)),L.setAttributeNS(null,"stroke-linecap",we.lineCap),L.setAttributeNS(null,"stroke-linejoin",we.lineJoin),L.setAttributeNS(null,"stroke-width",U(J*we.lineWidth)+"px"),L.setAttributeNS(null,"stroke-dasharray",ge.map(U).join(" ")),L.setAttributeNS(null,"stroke-dashoffset",U(J*we.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x","0"),L.setAttributeNS(null,"y","0"),L.setAttributeNS(null,"width","1px"),L.setAttributeNS(null,"height","1px"),L.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(L)}paintImageXObject(L){const J=L.startsWith("g_")?this.commonObjs.get(L):this.objs.get(L);J?this.paintInlineImageXObject(J):(0,a.warn)(`Dependent image with object ID ${L} is not ready yet`)}paintInlineImageXObject(L,J){const we=L.width,ge=L.height,fe=E(L,this.forceDataSchema,!!J),Ce=this.svgFactory.createElement("svg:rect");Ce.setAttributeNS(null,"x","0"),Ce.setAttributeNS(null,"y","0"),Ce.setAttributeNS(null,"width",U(we)),Ce.setAttributeNS(null,"height",U(ge)),this.current.element=Ce,this.clip("nonzero");const e=this.svgFactory.createElement("svg:image");e.setAttributeNS(r,"xlink:href",fe),e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y",U(-ge)),e.setAttributeNS(null,"width",U(we)+"px"),e.setAttributeNS(null,"height",U(ge)+"px"),e.setAttributeNS(null,"transform",`scale(${U(1/we)} ${U(-1/ge)})`),J?J.appendChild(e):this._ensureTransformGroup().appendChild(e)}paintImageMaskXObject(L){const J=this.current,we=L.width,ge=L.height,fe=J.fillColor;J.maskId="mask"+re++;const Ce=this.svgFactory.createElement("svg:mask");Ce.setAttributeNS(null,"id",J.maskId);const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width",U(we)),e.setAttributeNS(null,"height",U(ge)),e.setAttributeNS(null,"fill",fe),e.setAttributeNS(null,"mask",`url(#${J.maskId})`),this.defs.appendChild(Ce),this._ensureTransformGroup().appendChild(e),this.paintInlineImageXObject(L,Ce)}paintFormXObjectBegin(L,J){if(Array.isArray(L)&&6===L.length&&this.transform(L[0],L[1],L[2],L[3],L[4],L[5]),J){const we=J[2]-J[0],ge=J[3]-J[1],fe=this.svgFactory.createElement("svg:rect");fe.setAttributeNS(null,"x",J[0]),fe.setAttributeNS(null,"y",J[1]),fe.setAttributeNS(null,"width",U(we)),fe.setAttributeNS(null,"height",U(ge)),this.current.element=fe,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(L){const J=this.svgFactory.create(L.width,L.height),we=this.svgFactory.createElement("svg:defs");J.appendChild(we),this.defs=we;const ge=this.svgFactory.createElement("svg:g");return ge.setAttributeNS(null,"transform",le(L.transform)),J.appendChild(ge),this.svg=ge,J}_ensureClipGroup(){if(!this.current.clipGroup){const L=this.svgFactory.createElement("svg:g");L.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(L),this.current.clipGroup=L}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",le(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.PDFNodeStream=void 0;var a=S(1),C=S(24);const N=__webpack_require__(172),ze=__webpack_require__(2001),p=__webpack_require__(3779),K=__webpack_require__(6558),r=/^file:\/\/\/[a-zA-Z]:\//;oe.PDFNodeStream=class{constructor(ce){this.source=ce,this.url=function(re){const ce=K.parse(re);return"file:"===ce.protocol||ce.host?ce:/^[a-z]:[/\\]/i.test(re)?K.parse(`file:///${re}`):(ce.host||(ce.protocol="file:"),ce)}(ce.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&ce.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var ce,L;return null!=(L=null==(ce=this._fullRequestReader)?void 0:ce._loaded)?L:0}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new le(this):new x(this),this._fullRequestReader}getRangeReader(ce,L){if(L<=this._progressiveDataLength)return null;const J=this.isFsUrl?new xe(this,ce,L):new U(this,ce,L);return this._rangeRequestReaders.push(J),J}cancelAllRequests(ce){this._fullRequestReader&&this._fullRequestReader.cancel(ce);for(const L of this._rangeRequestReaders.slice(0))L.cancel(ce)}};class H{constructor(ce){this._url=ce.url,this._done=!1,this._storedError=null,this.onProgress=null;const L=ce.source;this._contentLength=L.length,this._loaded=0,this._filename=null,this._disableRange=L.disableRange||!1,this._rangeChunkSize=L.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!L.disableStream,this._isRangeSupported=!L.disableRange,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._headersCapability=(0,a.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var ce=this;return _asyncToGenerator(function*(){if(yield ce._readCapability.promise,ce._done)return{value:void 0,done:!0};if(ce._storedError)throw ce._storedError;const L=ce._readableStream.read();return null===L?(ce._readCapability=(0,a.createPromiseCapability)(),ce.read()):(ce._loaded+=L.length,ce.onProgress&&ce.onProgress({loaded:ce._loaded,total:ce._contentLength}),{value:new Uint8Array(L).buffer,done:!1})})()}cancel(ce){this._readableStream?this._readableStream.destroy(ce):this._error(ce)}_error(ce){this._storedError=ce,this._readCapability.resolve()}_setReadableStream(ce){this._readableStream=ce,ce.on("readable",()=>{this._readCapability.resolve()}),ce.on("end",()=>{ce.destroy(),this._done=!0,this._readCapability.resolve()}),ce.on("error",L=>{this._error(L)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new a.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class E{constructor(ce){this._url=ce.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!ce.source.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var ce=this;return _asyncToGenerator(function*(){if(yield ce._readCapability.promise,ce._done)return{value:void 0,done:!0};if(ce._storedError)throw ce._storedError;const L=ce._readableStream.read();return null===L?(ce._readCapability=(0,a.createPromiseCapability)(),ce.read()):(ce._loaded+=L.length,ce.onProgress&&ce.onProgress({loaded:ce._loaded}),{value:new Uint8Array(L).buffer,done:!1})})()}cancel(ce){this._readableStream?this._readableStream.destroy(ce):this._error(ce)}_error(ce){this._storedError=ce,this._readCapability.resolve()}_setReadableStream(ce){this._readableStream=ce,ce.on("readable",()=>{this._readCapability.resolve()}),ce.on("end",()=>{ce.destroy(),this._done=!0,this._readCapability.resolve()}),ce.on("error",L=>{this._error(L)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function ee(re,ce){return{protocol:re.protocol,auth:re.auth,host:re.hostname,port:re.port,path:re.path,method:"GET",headers:ce}}class x extends H{constructor(ce){super(ce);const L=J=>{if(404===J.statusCode){const Ce=new a.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=Ce,void this._headersCapability.reject(Ce)}this._headersCapability.resolve(),this._setReadableStream(J);const we=Ce=>this._readableStream.headers[Ce.toLowerCase()],{allowRangeRequests:ge,suggestedLength:fe}=(0,C.validateRangeRequestCapabilities)({getResponseHeader:we,isHttp:ce.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=ge,this._contentLength=fe||this._contentLength,this._filename=(0,C.extractFilenameFromHeader)(we)};this._request=null,this._request="http:"===this._url.protocol?ze.request(ee(this._url,ce.httpHeaders),L):p.request(ee(this._url,ce.httpHeaders),L),this._request.on("error",J=>{this._storedError=J,this._headersCapability.reject(J)}),this._request.end()}}class U extends E{constructor(ce,L,J){super(ce),this._httpHeaders={};for(const ge in ce.httpHeaders){const fe=ce.httpHeaders[ge];void 0!==fe&&(this._httpHeaders[ge]=fe)}this._httpHeaders.Range=`bytes=${L}-${J-1}`;const we=ge=>{if(404!==ge.statusCode)this._setReadableStream(ge);else{const fe=new a.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=fe}};this._request=null,this._request="http:"===this._url.protocol?ze.request(ee(this._url,this._httpHeaders),we):p.request(ee(this._url,this._httpHeaders),we),this._request.on("error",ge=>{this._storedError=ge}),this._request.end()}}class le extends H{constructor(ce){super(ce);let L=decodeURIComponent(this._url.path);r.test(this._url.href)&&(L=L.replace(/^\//,"")),N.lstat(L,(J,we)=>{if(J)return"ENOENT"===J.code&&(J=new a.MissingPDFException(`Missing PDF "${L}".`)),this._storedError=J,void this._headersCapability.reject(J);this._contentLength=we.size,this._setReadableStream(N.createReadStream(L)),this._headersCapability.resolve()})}}class xe extends E{constructor(ce,L,J){super(ce);let we=decodeURIComponent(this._url.path);r.test(this._url.href)&&(we=we.replace(/^\//,"")),this._setReadableStream(N.createReadStream(we,{start:L,end:J-1}))}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.createResponseStatusError=function(O,P){return 404===O||0===O&&P.startsWith("file:")?new a.MissingPDFException('Missing PDF "'+P+'".'):new a.UnexpectedResponseException(`Unexpected server response (${O}) while retrieving PDF "${P}".`,O)},oe.extractFilenameFromHeader=function(O){const P=O("Content-Disposition");if(P){let H=(0,C.getFilenameFromContentDispositionHeader)(P);if(H.includes("%"))try{H=decodeURIComponent(H)}catch(E){}if((0,N.isPdfFile)(H))return H}return null},oe.validateRangeRequestCapabilities=function({getResponseHeader:O,isHttp:P,rangeChunkSize:H,disableRange:E}){(0,a.assert)(H>0,"Range chunk size must be larger than zero");const ee={allowRangeRequests:!1,suggestedLength:void 0},x=parseInt(O("Content-Length"),10);return!Number.isInteger(x)||(ee.suggestedLength=x,x<=2*H)||E||!P||"bytes"!==O("Accept-Ranges")||"identity"!==(O("Content-Encoding")||"identity")||(ee.allowRangeRequests=!0),ee},oe.validateResponseStatus=function(O){return 200===O||206===O};var a=S(1),C=S(25),N=S(5)},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.getFilenameFromContentDispositionHeader=function(N){let ze=!0,p=K("filename\\*","i").exec(N);if(p){p=p[1];let x=H(p);return x=unescape(x),x=E(x),x=ee(x),O(x)}if(p=function(x){const U=[];let le;const xe=K("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(le=xe.exec(x));){let[,ce,L,J]=le;if(ce=parseInt(ce,10),ce in U){if(0===ce)break}else U[ce]=[L,J]}const re=[];for(let ce=0;ce{Object.defineProperty(oe,"__esModule",{value:!0}),oe.PDFNetworkStream=void 0;var a=S(1),C=S(24);class K{constructor(E,ee={}){this.url=E,this.isHttp=/^https?:/i.test(E),this.httpHeaders=this.isHttp&&ee.httpHeaders||Object.create(null),this.withCredentials=ee.withCredentials||!1,this.getXhr=ee.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(E,ee,x){const U={begin:E,end:ee};for(const le in x)U[le]=x[le];return this.request(U)}requestFull(E){return this.request(E)}request(E){const ee=this.getXhr(),x=this.currXhrId++,U=this.pendingRequests[x]={xhr:ee};ee.open("GET",this.url),ee.withCredentials=this.withCredentials;for(const le in this.httpHeaders){const xe=this.httpHeaders[le];void 0!==xe&&ee.setRequestHeader(le,xe)}return this.isHttp&&"begin"in E&&"end"in E?(ee.setRequestHeader("Range",`bytes=${E.begin}-${E.end-1}`),U.expectedStatus=206):U.expectedStatus=200,ee.responseType="arraybuffer",E.onError&&(ee.onerror=function(le){E.onError(ee.status)}),ee.onreadystatechange=this.onStateChange.bind(this,x),ee.onprogress=this.onProgress.bind(this,x),U.onHeadersReceived=E.onHeadersReceived,U.onDone=E.onDone,U.onError=E.onError,U.onProgress=E.onProgress,ee.send(null),x}onProgress(E,ee){var U;const x=this.pendingRequests[E];!x||null==(U=x.onProgress)||U.call(x,ee)}onStateChange(E,ee){var ce,L,J;const x=this.pendingRequests[E];if(!x)return;const U=x.xhr;if(U.readyState>=2&&x.onHeadersReceived&&(x.onHeadersReceived(),delete x.onHeadersReceived),4!==U.readyState||!(E in this.pendingRequests))return;if(delete this.pendingRequests[E],0===U.status&&this.isHttp)return void(null==(ce=x.onError)||ce.call(x,U.status));const le=U.status||200;if((200!==le||206!==x.expectedStatus)&&le!==x.expectedStatus)return void(null==(L=x.onError)||L.call(x,U.status));const re=function(H){const E=H.response;return"string"!=typeof E?E:(0,a.stringToBytes)(E).buffer}(U);if(206===le){const we=U.getResponseHeader("Content-Range"),ge=/bytes (\d+)-(\d+)\/(\d+)/.exec(we);x.onDone({begin:parseInt(ge[1],10),chunk:re})}else re?x.onDone({begin:0,chunk:re}):null==(J=x.onError)||J.call(x,U.status)}getRequestXhr(E){return this.pendingRequests[E].xhr}isPendingRequest(E){return E in this.pendingRequests}abortRequest(E){const ee=this.pendingRequests[E].xhr;delete this.pendingRequests[E],ee.abort()}}oe.PDFNetworkStream=class{constructor(E){this._source=E,this._manager=new K(E.url,{httpHeaders:E.httpHeaders,withCredentials:E.withCredentials}),this._rangeChunkSize=E.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(E){const ee=this._rangeRequestReaders.indexOf(E);ee>=0&&this._rangeRequestReaders.splice(ee,1)}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new O(this._manager,this._source),this._fullRequestReader}getRangeReader(E,ee){const x=new P(this._manager,E,ee);return x.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(x),x}cancelAllRequests(E){var ee;null==(ee=this._fullRequestReader)||ee.cancel(E);for(const x of this._rangeRequestReaders.slice(0))x.cancel(E)}};class O{constructor(E,ee){this._manager=E;const x={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=ee.url,this._fullRequestId=E.requestFull(x),this._headersReceivedCapability=(0,a.createPromiseCapability)(),this._disableRange=ee.disableRange||!1,this._contentLength=ee.length,this._rangeChunkSize=ee.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const E=this._fullRequestId,ee=this._manager.getRequestXhr(E),x=xe=>ee.getResponseHeader(xe),{allowRangeRequests:U,suggestedLength:le}=(0,C.validateRangeRequestCapabilities)({getResponseHeader:x,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});U&&(this._isRangeSupported=!0),this._contentLength=le||this._contentLength,this._filename=(0,C.extractFilenameFromHeader)(x),this._isRangeSupported&&this._manager.abortRequest(E),this._headersReceivedCapability.resolve()}_onDone(E){if(E&&(this._requests.length>0?this._requests.shift().resolve({value:E.chunk,done:!1}):this._cachedChunks.push(E.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const ee of this._requests)ee.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(E){this._storedError=(0,C.createResponseStatusError)(E,this._url),this._headersReceivedCapability.reject(this._storedError);for(const ee of this._requests)ee.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(E){var ee;null==(ee=this.onProgress)||ee.call(this,{loaded:E.loaded,total:E.lengthComputable?E.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var E=this;return _asyncToGenerator(function*(){if(E._storedError)throw E._storedError;if(E._cachedChunks.length>0)return{value:E._cachedChunks.shift(),done:!1};if(E._done)return{value:void 0,done:!0};const ee=(0,a.createPromiseCapability)();return E._requests.push(ee),ee.promise})()}cancel(E){this._done=!0,this._headersReceivedCapability.reject(E);for(const ee of this._requests)ee.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class P{constructor(E,ee,x){this._manager=E;const U={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=E.url,this._requestId=E.requestRange(ee,x,U),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var E;null==(E=this.onClosed)||E.call(this,this)}_onDone(E){const ee=E.chunk;this._requests.length>0?this._requests.shift().resolve({value:ee,done:!1}):this._queuedChunk=ee,this._done=!0;for(const x of this._requests)x.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(E){this._storedError=(0,C.createResponseStatusError)(E,this._url);for(const ee of this._requests)ee.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(E){var ee;this.isStreamingSupported||null==(ee=this.onProgress)||ee.call(this,{loaded:E.loaded})}get isStreamingSupported(){return!1}read(){var E=this;return _asyncToGenerator(function*(){if(E._storedError)throw E._storedError;if(null!==E._queuedChunk){const x=E._queuedChunk;return E._queuedChunk=null,{value:x,done:!1}}if(E._done)return{value:void 0,done:!0};const ee=(0,a.createPromiseCapability)();return E._requests.push(ee),ee.promise})()}cancel(E){this._done=!0;for(const ee of this._requests)ee.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(St,oe,S)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.PDFFetchStream=void 0;var a=S(1),C=S(24);function N(O,P,H){return{method:"GET",headers:O,signal:null==H?void 0:H.signal,mode:"cors",credentials:P?"include":"same-origin",redirect:"follow"}}function ze(O){const P=new Headers;for(const H in O){const E=O[H];void 0!==E&&P.append(H,E)}return P}oe.PDFFetchStream=class{constructor(P){this.source=P,this.isHttp=/^https?:/i.test(P.url),this.httpHeaders=this.isHttp&&P.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var P,H;return null!=(H=null==(P=this._fullRequestReader)?void 0:P._loaded)?H:0}getFullReader(){return(0,a.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new K(this),this._fullRequestReader}getRangeReader(P,H){if(H<=this._progressiveDataLength)return null;const E=new r(this,P,H);return this._rangeRequestReaders.push(E),E}cancelAllRequests(P){this._fullRequestReader&&this._fullRequestReader.cancel(P);for(const H of this._rangeRequestReaders.slice(0))H.cancel(P)}};class K{constructor(P){this._stream=P,this._reader=null,this._loaded=0,this._filename=null;const H=P.source;this._withCredentials=H.withCredentials||!1,this._contentLength=H.length,this._headersCapability=(0,a.createPromiseCapability)(),this._disableRange=H.disableRange||!1,this._rangeChunkSize=H.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!H.disableStream,this._isRangeSupported=!H.disableRange,this._headers=ze(this._stream.httpHeaders);const E=H.url;fetch(E,N(this._headers,this._withCredentials,this._abortController)).then(ee=>{if(!(0,C.validateResponseStatus)(ee.status))throw(0,C.createResponseStatusError)(ee.status,E);this._reader=ee.body.getReader(),this._headersCapability.resolve();const x=xe=>ee.headers.get(xe),{allowRangeRequests:U,suggestedLength:le}=(0,C.validateRangeRequestCapabilities)({getResponseHeader:x,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=U,this._contentLength=le||this._contentLength,this._filename=(0,C.extractFilenameFromHeader)(x),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new a.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var P=this;return _asyncToGenerator(function*(){yield P._headersCapability.promise;const{value:H,done:E}=yield P._reader.read();return E?{value:H,done:E}:(P._loaded+=H.byteLength,P.onProgress&&P.onProgress({loaded:P._loaded,total:P._contentLength}),{value:new Uint8Array(H).buffer,done:!1})})()}cancel(P){this._reader&&this._reader.cancel(P),this._abortController&&this._abortController.abort()}}class r{constructor(P,H,E){this._stream=P,this._reader=null,this._loaded=0;const ee=P.source;this._withCredentials=ee.withCredentials||!1,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!ee.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=ze(this._stream.httpHeaders),this._headers.append("Range",`bytes=${H}-${E-1}`);const x=ee.url;fetch(x,N(this._headers,this._withCredentials,this._abortController)).then(U=>{if(!(0,C.validateResponseStatus)(U.status))throw(0,C.createResponseStatusError)(U.status,x);this._readCapability.resolve(),this._reader=U.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var P=this;return _asyncToGenerator(function*(){yield P._readCapability.promise;const{value:H,done:E}=yield P._reader.read();return E?{value:H,done:E}:(P._loaded+=H.byteLength,P.onProgress&&P.onProgress({loaded:P._loaded}),{value:new Uint8Array(H).buffer,done:!1})})()}cancel(P){this._reader&&this._reader.cancel(P),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(St){var oe=__webpack_module_cache__[St];if(void 0!==oe)return oe.exports;var S=__webpack_module_cache__[St]={exports:{}};return __webpack_modules__[St](S,S.exports,__w_pdfjs_require__),S.exports}var __webpack_exports__={};return(()=>{var St=__webpack_exports__;Object.defineProperty(St,"__esModule",{value:!0}),Object.defineProperty(St,"AnnotationLayer",{enumerable:!0,get:function(){return C.AnnotationLayer}}),Object.defineProperty(St,"AnnotationMode",{enumerable:!0,get:function(){return oe.AnnotationMode}}),Object.defineProperty(St,"CMapCompressionType",{enumerable:!0,get:function(){return oe.CMapCompressionType}}),Object.defineProperty(St,"GlobalWorkerOptions",{enumerable:!0,get:function(){return N.GlobalWorkerOptions}}),Object.defineProperty(St,"InvalidPDFException",{enumerable:!0,get:function(){return oe.InvalidPDFException}}),Object.defineProperty(St,"LoopbackPort",{enumerable:!0,get:function(){return S.LoopbackPort}}),Object.defineProperty(St,"MissingPDFException",{enumerable:!0,get:function(){return oe.MissingPDFException}}),Object.defineProperty(St,"OPS",{enumerable:!0,get:function(){return oe.OPS}}),Object.defineProperty(St,"PDFDataRangeTransport",{enumerable:!0,get:function(){return S.PDFDataRangeTransport}}),Object.defineProperty(St,"PDFDateString",{enumerable:!0,get:function(){return a.PDFDateString}}),Object.defineProperty(St,"PDFWorker",{enumerable:!0,get:function(){return S.PDFWorker}}),Object.defineProperty(St,"PasswordResponses",{enumerable:!0,get:function(){return oe.PasswordResponses}}),Object.defineProperty(St,"PermissionFlag",{enumerable:!0,get:function(){return oe.PermissionFlag}}),Object.defineProperty(St,"PixelsPerInch",{enumerable:!0,get:function(){return a.PixelsPerInch}}),Object.defineProperty(St,"RenderingCancelledException",{enumerable:!0,get:function(){return a.RenderingCancelledException}}),Object.defineProperty(St,"SVGGraphics",{enumerable:!0,get:function(){return K.SVGGraphics}}),Object.defineProperty(St,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return oe.UNSUPPORTED_FEATURES}}),Object.defineProperty(St,"UnexpectedResponseException",{enumerable:!0,get:function(){return oe.UnexpectedResponseException}}),Object.defineProperty(St,"Util",{enumerable:!0,get:function(){return oe.Util}}),Object.defineProperty(St,"VerbosityLevel",{enumerable:!0,get:function(){return oe.VerbosityLevel}}),Object.defineProperty(St,"XfaLayer",{enumerable:!0,get:function(){return r.XfaLayer}}),Object.defineProperty(St,"build",{enumerable:!0,get:function(){return S.build}}),Object.defineProperty(St,"createPromiseCapability",{enumerable:!0,get:function(){return oe.createPromiseCapability}}),Object.defineProperty(St,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return oe.createValidAbsoluteUrl}}),Object.defineProperty(St,"getDocument",{enumerable:!0,get:function(){return S.getDocument}}),Object.defineProperty(St,"getFilenameFromUrl",{enumerable:!0,get:function(){return a.getFilenameFromUrl}}),Object.defineProperty(St,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return a.getPdfFilenameFromUrl}}),Object.defineProperty(St,"getXfaPageViewport",{enumerable:!0,get:function(){return a.getXfaPageViewport}}),Object.defineProperty(St,"isPdfFile",{enumerable:!0,get:function(){return a.isPdfFile}}),Object.defineProperty(St,"loadScript",{enumerable:!0,get:function(){return a.loadScript}}),Object.defineProperty(St,"renderTextLayer",{enumerable:!0,get:function(){return p.renderTextLayer}}),Object.defineProperty(St,"shadow",{enumerable:!0,get:function(){return oe.shadow}}),Object.defineProperty(St,"version",{enumerable:!0,get:function(){return S.version}});var oe=__w_pdfjs_require__(1),S=__w_pdfjs_require__(4),a=__w_pdfjs_require__(5),C=__w_pdfjs_require__(18),N=__w_pdfjs_require__(12),ze=__w_pdfjs_require__(3),p=__w_pdfjs_require__(21),K=__w_pdfjs_require__(22),r=__w_pdfjs_require__(20);if(ze.isNodeJS){const{PDFNodeStream:H}=__w_pdfjs_require__(23);(0,S.setPDFNetworkStreamFactory)(E=>new H(E))}else{const{PDFNetworkStream:H}=__w_pdfjs_require__(26),{PDFFetchStream:E}=__w_pdfjs_require__(27);(0,S.setPDFNetworkStreamFactory)(ee=>(0,a.isValidFetchUrl)(ee.url)?new E(ee):new H(ee))}})(),__webpack_exports__})()},module.exports=S()},2813:function(St,oe,S){var a=S(8926).default;St.exports=(()=>{"use strict";var C=[,(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DefaultXfaLayerFactory=r.DefaultTextLayerFactory=r.DefaultStructTreeLayerFactory=r.DefaultAnnotationLayerFactory=void 0;var P=O(2),H=O(4),E=O(5),ee=O(7),x=O(8),U=O(9);r.DefaultAnnotationLayerFactory=class{createAnnotationLayerBuilder(J,we,ge=null,fe="",Ce=!0,e=H.NullL10n,z=!1,je=null,rt=null,it=null,ct=null){return new P.AnnotationLayerBuilder({pageDiv:J,pdfPage:we,imageResourcesPath:fe,renderForms:Ce,linkService:new E.SimpleLinkService,l10n:e,annotationStorage:ge,enableScripting:z,hasJSActionsPromise:je,fieldObjectsPromise:it,mouseState:rt,annotationCanvasMap:ct})}};r.DefaultStructTreeLayerFactory=class{createStructTreeLayerBuilder(J){return new ee.StructTreeLayerBuilder({pdfPage:J})}};r.DefaultTextLayerFactory=class{createTextLayerBuilder(J,we,ge,fe=!1,Ce,e){return new x.TextLayerBuilder({textLayerDiv:J,pageIndex:we,viewport:ge,enhanceTextSelection:fe,eventBus:Ce,highlighter:e})}};r.DefaultXfaLayerFactory=class{createXfaLayerBuilder(J,we,ge=null,fe=null){return new U.XfaLayerBuilder({pageDiv:J,pdfPage:we,annotationStorage:ge,linkService:new E.SimpleLinkService,xfaHtml:fe})}}},(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AnnotationLayerBuilder=void 0;var P=O(3),H=O(4);r.AnnotationLayerBuilder=class{constructor({pageDiv:x,pdfPage:U,linkService:le,downloadManager:xe,annotationStorage:re=null,imageResourcesPath:ce="",renderForms:L=!0,l10n:J=H.NullL10n,enableScripting:we=!1,hasJSActionsPromise:ge=null,fieldObjectsPromise:fe=null,mouseState:Ce=null,annotationCanvasMap:e=null}){this.pageDiv=x,this.pdfPage=U,this.linkService=le,this.downloadManager=xe,this.imageResourcesPath=ce,this.renderForms=L,this.l10n=J,this.annotationStorage=re,this.enableScripting=we,this._hasJSActionsPromise=ge,this._fieldObjectsPromise=fe,this._mouseState=Ce,this._annotationCanvasMap=e,this.div=null,this._cancelled=!1}render(x,U="display"){var le=this;return a(function*(){const[xe,re=!1,ce=null]=yield Promise.all([le.pdfPage.getAnnotations({intent:U}),le._hasJSActionsPromise,le._fieldObjectsPromise]);if(le._cancelled||0===xe.length)return;const L={viewport:x.clone({dontFlip:!0}),div:le.div,annotations:xe,page:le.pdfPage,imageResourcesPath:le.imageResourcesPath,renderForms:le.renderForms,linkService:le.linkService,downloadManager:le.downloadManager,annotationStorage:le.annotationStorage,enableScripting:le.enableScripting,hasJSActions:re,fieldObjects:ce,mouseState:le._mouseState,annotationCanvasMap:le._annotationCanvasMap};le.div?P.AnnotationLayer.update(L):(le.div=document.createElement("div"),le.div.className="annotationLayer",le.pageDiv.appendChild(le.div),L.div=le.div,P.AnnotationLayer.render(L),le.l10n.translate(le.div))})()}cancel(){this._cancelled=!0}hide(){!this.div||(this.div.hidden=!0)}}},K=>{let r;r="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:S(6036),K.exports=r},(K,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.NullL10n=void 0,r.fixupLangCode=function(U){return H[null==U?void 0:U.toLowerCase()]||U},r.getL10nFallback=P;const O={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading\u2026",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts."};function P(U,le){switch(U){case"find_match_count":U=`find_match_count[${1===le.total?"one":"other"}]`;break;case"find_match_count_limit":U=`find_match_count_limit[${1===le.limit?"one":"other"}]`}return O[U]||""}const H={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};r.NullL10n={getLanguage:()=>a(function*(){return"en-us"})(),getDirection:()=>a(function*(){return"ltr"})(),get:(U,le=null,xe=P(U,le))=>a(function*(){return function(U,le){return le?U.replace(/\{\{\s*(\w+)\s*\}\}/g,(xe,re)=>re in le?le[re]:"{{"+re+"}}"):U}(xe,le)})(),translate:U=>a(function*(){})()}},(K,r,O)=>{var le,xe,tI,ce,UP;Object.defineProperty(r,"__esModule",{value:!0}),r.SimpleLinkService=r.PDFLinkService=r.LinkTarget=void 0;var P=O(6);const E={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function ee(we,{url:ge,target:fe,rel:Ce,enabled:e=!0}={}){if(!ge||"string"!=typeof ge)throw new Error('A valid "url" parameter must provided.');const z=(0,P.removeNullCharacters)(ge);e?we.href=we.title=z:(we.href="",we.title=`Disabled: ${z}`,we.onclick=()=>!1);let je="";switch(fe){case E.NONE:break;case E.SELF:je="_self";break;case E.BLANK:je="_blank";break;case E.PARENT:je="_parent";break;case E.TOP:je="_top"}we.target=je,we.rel="string"==typeof Ce?Ce:"noopener noreferrer nofollow"}r.LinkTarget=E;const J=class{constructor({eventBus:ge,externalLinkTarget:fe=null,externalLinkRel:Ce=null,ignoreDestinationZoom:e=!1}={}){Qo(this,xe),Qo(this,le,new Map),this.eventBus=ge,this.externalLinkTarget=fe,this.externalLinkRel=Ce,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=e,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(ge,fe=null){this.baseUrl=fe,this.pdfDocument=ge,ar(this,le).clear()}setViewer(ge){this.pdfViewer=ge}setHistory(ge){this.pdfHistory=ge}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(ge){this.pdfViewer.currentPageNumber=ge}get rotation(){return this.pdfViewer.pagesRotation}set rotation(ge){this.pdfViewer.pagesRotation=ge}goToDestination(ge){var fe=this;return a(function*(){var z;if(!fe.pdfDocument)return;let Ce,e;"string"==typeof ge?(Ce=ge,e=yield fe.pdfDocument.getDestination(ge)):(Ce=null,e=yield ge),Array.isArray(e)?Hl(z=fe,xe,tI).call(z,ge,Ce,e):console.error(`PDFLinkService.goToDestination: "${e}" is not a valid destination array, for dest="${ge}".`)})()}goToPage(ge){if(!this.pdfDocument)return;const fe="string"==typeof ge&&this.pdfViewer.pageLabelToPageNumber(ge)||0|ge;Number.isInteger(fe)&&fe>0&&fe<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(fe)),this.pdfViewer.scrollPageIntoView({pageNumber:fe})):console.error(`PDFLinkService.goToPage: "${ge}" is not a valid page.`)}addLinkAttributes(ge,fe,Ce=!1){ee(ge,{url:fe,target:Ce?E.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(ge){if("string"==typeof ge){if(ge.length>0)return this.getAnchorUrl("#"+escape(ge))}else if(Array.isArray(ge)){const fe=JSON.stringify(ge);if(fe.length>0)return this.getAnchorUrl("#"+escape(fe))}return this.getAnchorUrl("")}getAnchorUrl(ge){return(this.baseUrl||"")+ge}setHash(ge){var e;if(!this.pdfDocument)return;let fe,Ce;if(ge.includes("=")){const z=(0,P.parseQueryString)(ge);if(z.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:z.get("search").replace(/"/g,""),phraseSearch:"true"===z.get("phrase")}),z.has("page")&&(fe=0|z.get("page")||1),z.has("zoom")){const je=z.get("zoom").split(","),rt=je[0],it=parseFloat(rt);rt.includes("Fit")?"Fit"===rt||"FitB"===rt?Ce=[null,{name:rt}]:"FitH"===rt||"FitBH"===rt||"FitV"===rt||"FitBV"===rt?Ce=[null,{name:rt},je.length>1?0|je[1]:null]:"FitR"===rt?5!==je.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):Ce=[null,{name:rt},0|je[1],0|je[2],0|je[3],0|je[4]]:console.error(`PDFLinkService.setHash: "${rt}" is not a valid zoom value.`):Ce=[null,{name:"XYZ"},je.length>1?0|je[1]:null,je.length>2?0|je[2]:null,it?it/100:rt]}Ce?this.pdfViewer.scrollPageIntoView({pageNumber:fe||this.page,destArray:Ce,allowNegativeOffset:!0}):fe&&(this.page=fe),z.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:z.get("pagemode")}),z.has("nameddest")&&this.goToDestination(z.get("nameddest"))}else{Ce=unescape(ge);try{Ce=JSON.parse(Ce),Array.isArray(Ce)||(Ce=Ce.toString())}catch(z){}if("string"==typeof Ce||Hl(e=J,ce,UP).call(e,Ce))return void this.goToDestination(Ce);console.error(`PDFLinkService.setHash: "${unescape(ge)}" is not a valid destination.`)}}executeNamedAction(ge){var fe,Ce;switch(ge){case"GoBack":null==(fe=this.pdfHistory)||fe.back();break;case"GoForward":null==(Ce=this.pdfHistory)||Ce.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:ge})}cachePageRef(ge,fe){if(!fe)return;const Ce=0===fe.gen?`${fe.num}R`:`${fe.num}R${fe.gen}`;ar(this,le).set(Ce,ge)}_cachedPageNumber(ge){if(!ge)return null;const fe=0===ge.gen?`${ge.num}R`:`${ge.num}R${ge.gen}`;return ar(this,le).get(fe)||null}isPageVisible(ge){return this.pdfViewer.isPageVisible(ge)}isPageCached(ge){return this.pdfViewer.isPageCached(ge)}};let x=J;le=new WeakMap,xe=new WeakSet,tI=function(ge,fe=null,Ce){const e=Ce[0];let z;if("object"==typeof e&&null!==e){if(z=this._cachedPageNumber(e),!z)return void this.pdfDocument.getPageIndex(e).then(je=>{this.cachePageRef(je+1,e),Hl(this,xe,tI).call(this,ge,fe,Ce)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${e}" is not a valid page reference, for dest="${ge}".`)})}else{if(!Number.isInteger(e))return void console.error(`PDFLinkService.#goToDestinationHelper: "${e}" is not a valid destination reference, for dest="${ge}".`);z=e+1}!z||z<1||z>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${z}" is not a valid page number, for dest="${ge}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:fe,explicitDest:Ce,pageNumber:z})),this.pdfViewer.scrollPageIntoView({pageNumber:z,destArray:Ce,ignoreDestinationZoom:this._ignoreDestinationZoom}))},ce=new WeakSet,UP=function(ge){if(!Array.isArray(ge))return!1;const fe=ge.length;if(fe<2)return!1;const Ce=ge[0];if(!("object"==typeof Ce&&Number.isInteger(Ce.num)&&Number.isInteger(Ce.gen)||Number.isInteger(Ce)&&Ce>=0))return!1;const e=ge[1];if("object"!=typeof e||"string"!=typeof e.name)return!1;let z=!0;switch(e.name){case"XYZ":if(5!==fe)return!1;break;case"Fit":case"FitB":return 2===fe;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==fe)return!1;break;case"FitR":if(6!==fe)return!1;z=!1;break;default:return!1}for(let je=2;je{Object.defineProperty(r,"__esModule",{value:!0}),r.animationStarted=r.VERTICAL_PADDING=r.UNKNOWN_SCALE=r.TextLayerMode=r.SpreadMode=r.SidebarView=r.ScrollMode=r.SCROLLBAR_PADDING=r.RenderingStates=r.RendererType=r.ProgressBar=r.PresentationModeState=r.OutputScale=r.MIN_SCALE=r.MAX_SCALE=r.MAX_AUTO_SCALE=r.DEFAULT_SCALE_VALUE=r.DEFAULT_SCALE_DELTA=r.DEFAULT_SCALE=r.AutoPrintRegExp=void 0,r.apiPageLayoutToViewerModes=function(ye){let be=fe.VERTICAL,Je=Ce.NONE;switch(ye){case"SinglePage":be=fe.PAGE;break;case"OneColumn":break;case"TwoPageLeft":be=fe.PAGE;case"TwoColumnLeft":Je=Ce.ODD;break;case"TwoPageRight":be=fe.PAGE;case"TwoColumnRight":Je=Ce.EVEN}return{scrollMode:be,spreadMode:Je}},r.apiPageModeToSidebarView=function(ye){switch(ye){case"UseNone":return J.NONE;case"UseThumbs":return J.THUMBS;case"UseOutlines":return J.OUTLINE;case"UseAttachments":return J.ATTACHMENTS;case"UseOC":return J.LAYERS}return J.NONE},r.approximateFraction=function(ye){if(Math.floor(ye)===ye)return[ye,1];const be=1/ye;if(be>8)return[1,8];if(Math.floor(be)===be)return[1,be];const gt=ye>1?be:ye;let Re,Nt=0,$t=1,ft=1,mt=1;for(;;){const zt=Nt+ft,Kt=$t+mt;if(Kt>8)break;gt<=zt/Kt?(ft=zt,mt=Kt):(Nt=zt,$t=Kt)}return Re=gt-Nt/$tmt}:function(Tt){const Gt=Tt.div;return Gt.offsetTop+Gt.clientTop+Gt.clientHeight>$t});Hn>0&&Hn=ft&&(pn=nt);else if((gt?Ft:F)>pn)break;if(nt<=$t||F>=ft||ie<=mt||Ft>=Re)continue;const bt=Math.max(0,$t-F)+Math.max(0,nt-ft),ni=(V-(Math.max(0,mt-Ft)+Math.max(0,ie-Re)))/V;hn.push({id:Gt.id,x:Ft,y:F,view:Gt,percent:(Q-bt)/Q*ni*100|0,widthPercent:100*ni|0}),xn.add(Gt.id)}const Yn=hn[0],_t=hn[hn.length-1];return Je&&hn.sort(function(Tt,Gt){const Rt=Tt.percent-Gt.percent;return Math.abs(Rt)>.001?-Rt:Tt.id-Gt.id}),{first:Yn,last:_t,views:hn,ids:xn}},r.isPortraitOrientation=function(ye){return ye.width<=ye.height},r.isValidRotation=function(ye){return Number.isInteger(ye)&&ye%90==0},r.isValidScrollMode=function(ye){return Number.isInteger(ye)&&Object.values(fe).includes(ye)&&ye!==fe.UNKNOWN},r.isValidSpreadMode=function(ye){return Number.isInteger(ye)&&Object.values(Ce).includes(ye)&&ye!==Ce.UNKNOWN},r.noContextMenuHandler=function(ye){ye.preventDefault()},r.normalizeWheelEventDelta=function(ye){let be=Ne(ye);return 0===ye.deltaMode?be/=900:1===ye.deltaMode&&(be/=30),be},r.normalizeWheelEventDirection=Ne,r.parseQueryString=function(ye){const be=new Map;for(const[Je,gt]of new URLSearchParams(ye))be.set(Je.toLowerCase(),gt);return be},r.removeNullCharacters=function(ye,be=!1){return"string"!=typeof ye?(console.error("The argument must be a string."),ye):(be&&(ye=ye.replace(g," ")),ye.replace(ct,""))},r.roundToDivide=function(ye,be){const Je=ye%be;return 0===Je?ye:Math.round(ye-Je+be)},r.scrollIntoView=function(ye,be,Je=!1){let gt=ye.offsetParent;if(!gt)return void console.error("offsetParent is not set -- cannot scroll");let Nt=ye.offsetTop+ye.clientTop,$t=ye.offsetLeft+ye.clientLeft;for(;gt.clientHeight===gt.scrollHeight&>.clientWidth===gt.scrollWidth||Je&&(gt.classList.contains("markedContent")||"hidden"===getComputedStyle(gt).overflow);)if(Nt+=gt.offsetTop,$t+=gt.offsetLeft,gt=gt.offsetParent,!gt)return;be&&(void 0!==be.top&&(Nt+=be.top),void 0!==be.left&&($t+=be.left,gt.scrollLeft=$t)),gt.scrollTop=Nt},r.watchScroll=function(ye,be){const Je=function($t){Nt||(Nt=window.requestAnimationFrame(function(){Nt=null;const mt=ye.scrollLeft,Re=gt.lastX;mt!==Re&&(gt.right=mt>Re),gt.lastX=mt;const zt=ye.scrollTop,Kt=gt.lastY;zt!==Kt&&(gt.down=zt>Kt),gt.lastY=zt,be(gt)}))},gt={right:!0,down:!0,lastX:ye.scrollLeft,lastY:ye.scrollTop,_eventHandler:Je};let Nt=null;return ye.addEventListener("scroll",Je,!0),gt},r.DEFAULT_SCALE_VALUE="auto",r.DEFAULT_SCALE=1,r.DEFAULT_SCALE_DELTA=1.1,r.MIN_SCALE=.1,r.MAX_SCALE=10,r.UNKNOWN_SCALE=0,r.MAX_AUTO_SCALE=1.25,r.SCROLLBAR_PADDING=40,r.VERTICAL_PADDING=5;r.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},r.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};const J={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};r.SidebarView=J,r.RendererType={CANVAS:"canvas",SVG:"svg"},r.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const fe={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};r.ScrollMode=fe;const Ce={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};r.SpreadMode=Ce,r.AutoPrintRegExp=/\bprint\s*\(/;r.OutputScale=class{constructor(){const be=window.devicePixelRatio||1;this.sx=be,this.sy=be}get scaled(){return 1!==this.sx||1!==this.sy}};const ct=/\x00/g,g=/[\x01-\x1F]/g;function Ve(ye,be,Je=0){let gt=Je,Nt=ye.length-1;if(Nt<0||!be(ye[Nt]))return ye.length;if(be(ye[gt]))return gt;for(;gt>1;be(ye[$t])?Nt=$t:gt=$t+1}return gt}function Te(ye,be,Je){if(ye<2)return ye;let gt=be[ye].div,Nt=gt.offsetTop+gt.clientTop;Nt>=Je&&(gt=be[ye-1].div,Nt=gt.offsetTop+gt.clientTop);for(let $t=ye-2;$t>=0&&(gt=be[$t].div,!(gt.offsetTop+gt.clientTop+gt.clientHeight<=Nt));--$t)ye=$t;return ye}function Ne(ye){let be=Math.hypot(ye.deltaX,ye.deltaY);const Je=Math.atan2(ye.deltaY,ye.deltaX);return-.25*Math.PI0&&document.documentElement.style.setProperty("--loadingBar-end-offset",`${gt}px`)}hide(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"))}show(){this.visible||(this.visible=!0,this.bar.classList.remove("hidden"))}}},(K,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.StructTreeLayerBuilder=void 0;const O={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},P=/^H(\d+)$/;r.StructTreeLayerBuilder=class{constructor({pdfPage:ee}){this.pdfPage=ee}render(ee){return this._walk(ee)}_setAttributes(ee,x){void 0!==ee.alt&&x.setAttribute("aria-label",ee.alt),void 0!==ee.id&&x.setAttribute("aria-owns",ee.id),void 0!==ee.lang&&x.setAttribute("lang",ee.lang)}_walk(ee){if(!ee)return null;const x=document.createElement("span");if("role"in ee){const{role:U}=ee,le=U.match(P);le?(x.setAttribute("role","heading"),x.setAttribute("aria-level",le[1])):O[U]&&x.setAttribute("role",O[U])}if(this._setAttributes(ee,x),ee.children)if(1===ee.children.length&&"id"in ee.children[0])this._setAttributes(ee.children[0],x);else for(const U of ee.children)x.appendChild(this._walk(U));return x}}},(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TextLayerBuilder=void 0;var P=O(3);r.TextLayerBuilder=class{constructor({textLayerDiv:x,eventBus:U,pageIndex:le,viewport:xe,highlighter:re=null,enhanceTextSelection:ce=!1}){this.textLayerDiv=x,this.eventBus=U,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=le+1,this.viewport=xe,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=re,this.enhanceTextSelection=ce,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const x=document.createElement("div");x.className="endOfContent",this.textLayerDiv.appendChild(x)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(x=0){var le;if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs.length=0,null==(le=this.highlighter)||le.setTextMapping(this.textDivs,this.textContentItemsStr);const U=document.createDocumentFragment();this.textLayerRenderTask=(0,P.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:U,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:x,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{var xe;this.textLayerDiv.appendChild(U),this._finishRendering(),null==(xe=this.highlighter)||xe.enable()},function(xe){})}cancel(){var x;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),null==(x=this.highlighter)||x.disable()}setTextContentStream(x){this.cancel(),this.textContentStream=x}setTextContent(x){this.cancel(),this.textContent=x}_bindMouse(){const x=this.textLayerDiv;let U=null;x.addEventListener("mousedown",le=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(U&&(clearTimeout(U),U=null));const xe=x.querySelector(".endOfContent");if(!xe)return;let re=le.target!==x;if(re=re&&"none"!==window.getComputedStyle(xe).getPropertyValue("-moz-user-select"),re){const ce=x.getBoundingClientRect(),L=Math.max(0,(le.pageY-ce.top)/ce.height);xe.style.top=(100*L).toFixed(2)+"%"}xe.classList.add("active")}),x.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(U=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),U=null},300));const le=x.querySelector(".endOfContent");!le||(le.style.top="",le.classList.remove("active"))})}}},(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.XfaLayerBuilder=void 0;var P=O(3);r.XfaLayerBuilder=class{constructor({pageDiv:ee,pdfPage:x,annotationStorage:U=null,linkService:le,xfaHtml:xe=null}){this.pageDiv=ee,this.pdfPage=x,this.annotationStorage=U,this.linkService=le,this.xfaHtml=xe,this.div=null,this._cancelled=!1}render(ee,x="display"){if("print"===x){const U={viewport:ee.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:x},le=document.createElement("div");this.pageDiv.appendChild(le),U.div=le;const xe=P.XfaLayer.render(U);return Promise.resolve(xe)}return this.pdfPage.getXfa().then(U=>{if(this._cancelled||!U)return{textDivs:[]};const le={viewport:ee.clone({dontFlip:!0}),div:this.div,xfaHtml:U,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:x};return this.div?P.XfaLayer.update(le):(this.div=document.createElement("div"),this.pageDiv.appendChild(this.div),le.div=this.div,P.XfaLayer.render(le))}).catch(U=>{console.error(U)})}cancel(){this._cancelled=!0}hide(){!this.div||(this.div.hidden=!0)}}},(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFViewer=r.PDFSinglePageViewer=void 0;var P=O(6),H=O(11);r.PDFViewer=class extends H.BaseViewer{};r.PDFSinglePageViewer=class extends H.BaseViewer{_resetView(){super._resetView(),this._scrollMode=P.ScrollMode.PAGE,this._spreadMode=P.SpreadMode.NONE}set scrollMode(U){}_updateScrollMode(){}set spreadMode(U){}_updateSpreadMode(){}}},(K,r,O)=>{var e,z,je,nI,it,ct,g,qe,Ve,He,X,Le,$P,Ze,YP,Ne,Gb,ke,QP,ot,WP,ut,ZP,At,JP;Object.defineProperty(r,"__esModule",{value:!0}),r.PagesCountLimit=r.PDFPageViewBuffer=r.BaseViewer=void 0;var P=O(3),H=O(6),E=O(2),ee=O(4),x=O(12),U=O(14),le=O(5),xe=O(7),re=O(15),ce=O(8),L=O(9);const we="enablePermissions",ge={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};r.PagesCountLimit=ge;class fe{constructor(ye){Qo(this,je),Qo(this,e,new Set),Qo(this,z,0),qa(this,z,ye)}push(ye){const be=ar(this,e);be.has(ye)&&be.delete(ye),be.add(ye),be.size>ar(this,z)&&Hl(this,je,nI).call(this)}resize(ye,be=null){qa(this,z,ye);const Je=ar(this,e);if(be){const gt=Je.size;let Nt=1;for(const $t of Je)if(be.has($t.id)&&(Je.delete($t),Je.add($t)),++Nt>gt)break}for(;Je.size>ar(this,z);)Hl(this,je,nI).call(this)}has(ye){return ar(this,e).has(ye)}[Symbol.iterator](){return ar(this,e).keys()}}e=new WeakMap,z=new WeakMap,je=new WeakSet,nI=function(){const ye=ar(this,e).keys().next().value;null==ye||ye.destroy(),ar(this,e).delete(ye)},r.PDFPageViewBuffer=fe;const Wt=class{constructor(ye){var Je,gt,Nt,$t;if(Qo(this,Le),Qo(this,Ze),Qo(this,Ne),Qo(this,ke),Qo(this,ot),Qo(this,ut),Qo(this,At),Qo(this,it,null),Qo(this,ct,P.AnnotationMode.ENABLE_FORMS),Qo(this,g,null),Qo(this,qe,!1),Qo(this,Ve,0),Qo(this,He,null),Qo(this,X,null),this.constructor===Wt)throw new Error("Cannot initialize BaseViewer.");const be="2.13.216";if(P.version!==be)throw new Error(`The API version "${P.version}" does not match the Viewer version "${be}".`);if(this.container=ye.container,this.viewer=ye.viewer||ye.container.firstElementChild,"DIV"!==(null==(Je=this.container)?void 0:Je.tagName.toUpperCase())||"DIV"!==(null==(gt=this.viewer)?void 0:gt.tagName.toUpperCase()))throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=ye.eventBus,this.linkService=ye.linkService||new le.SimpleLinkService,this.downloadManager=ye.downloadManager||null,this.findController=ye.findController||null,this._scriptingManager=ye.scriptingManager||null,this.removePageBorders=ye.removePageBorders||!1,this.textLayerMode=null!=(Nt=ye.textLayerMode)?Nt:H.TextLayerMode.ENABLE,qa(this,ct,null!=($t=ye.annotationMode)?$t:P.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=ye.imageResourcesPath||"",this.enablePrintAutoRotate=ye.enablePrintAutoRotate||!1,this.renderer=ye.renderer||H.RendererType.CANVAS,this.useOnlyCssZoom=ye.useOnlyCssZoom||!1,this.maxCanvasPixels=ye.maxCanvasPixels,this.l10n=ye.l10n||ee.NullL10n,qa(this,qe,ye.enablePermissions||!1),this.defaultRenderingQueue=!ye.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new U.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=ye.renderingQueue,this._doc=document.documentElement,this.scroll=(0,H.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=H.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(ye){return this._pages[ye]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(ye){return null==ye?void 0:ye.pdfPage})}get renderForms(){return ar(this,ct)===P.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(ye){if(!Number.isInteger(ye))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(ye,!0)||console.error(`currentPageNumber: "${ye}" is not a valid page.`)}_setCurrentPageNumber(ye,be=!1){var gt,Nt;if(this._currentPageNumber===ye)return be&&this._resetCurrentPageView(),!0;if(!(0=0&&(be=Je+1)}this._setCurrentPageNumber(be,!0)||console.error(`currentPageLabel: "${ye}" is not a valid page.`)}get currentScale(){return this._currentScale!==H.UNKNOWN_SCALE?this._currentScale:H.DEFAULT_SCALE}set currentScale(ye){if(isNaN(ye))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(ye,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(ye){!this.pdfDocument||this._setScale(ye,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(ye){if(!(0,H.isValidRotation)(ye))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||((ye%=360)<0&&(ye+=360),this._pagesRotation===ye))return;this._pagesRotation=ye;const be=this._currentPageNumber,Je={rotation:ye};for(const gt of this._pages)gt.update(Je);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:ye,pageNumber:be}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}setDocument(ye){var be=this;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null)),this.pdfDocument=ye,!ye)return;const Je=ye.isPureXfa,gt=ye.numPages,Nt=ye.getPage(1),$t=ye.getOptionalContentConfig(),ft=ar(this,qe)?ye.getPermissions():Promise.resolve();if(gt>ge.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const mt=this._scrollMode=H.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:mt})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:gt})},()=>{}),this._onBeforeDraw=mt=>{const Re=this._pages[mt.pageNumber-1];!Re||ar(this,it).push(Re)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=mt=>{mt.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:mt.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,ar(this,X)&&(document.removeEventListener("visibilitychange",ar(this,X)),qa(this,X,null)))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([Nt,ft]).then(([mt,Re])=>{if(ye!==this.pdfDocument)return;this._firstPageCapability.resolve(mt),this._optionalContentConfigPromise=$t,Hl(this,Le,$P).call(this,Re);const zt=this._scrollMode===H.ScrollMode.PAGE?null:this.viewer,Kt=this.currentScale,hn=mt.getViewport({scale:Kt*P.PixelsPerInch.PDF_TO_CSS_UNITS}),xn=this.textLayerMode===H.TextLayerMode.DISABLE||Je?null:this,Mn=ar(this,ct)!==P.AnnotationMode.DISABLE?this:null,Hn=Je?this:null;for(let Yn=1;Yn<=gt;++Yn){const _t=new x.PDFPageView({container:zt,eventBus:this.eventBus,id:Yn,scale:Kt,defaultViewport:hn.clone(),optionalContentConfigPromise:$t,renderingQueue:this.renderingQueue,textLayerFactory:xn,textLayerMode:this.textLayerMode,annotationLayerFactory:Mn,annotationMode:ar(this,ct),xfaLayerFactory:Hn,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,l10n:this.l10n});this._pages.push(_t)}const pn=this._pages[0];pn&&(pn.setPdfPage(mt),this.linkService.cachePageRef(1,mt.ref)),this._scrollMode===H.ScrollMode.PAGE?Hl(this,Ne,Gb).call(this):this._spreadMode!==H.SpreadMode.NONE&&this._updateSpreadMode(),Hl(this,Ze,YP).call(this).then(a(function*(){if(be.findController&&be.findController.setDocument(ye),be._scriptingManager&&be._scriptingManager.setDocument(ye),ye.loadingParams.disableAutoFetch||gt>ge.FORCE_LAZY_PAGE_INIT)return void be._pagesCapability.resolve();let Yn=gt-1;if(Yn<=0)be._pagesCapability.resolve();else for(let _t=2;_t<=gt;++_t){const Tt=ye.getPage(_t).then(Gt=>{const Rt=be._pages[_t-1];Rt.pdfPage||Rt.setPdfPage(Gt),be.linkService.cachePageRef(_t,Gt.ref),0==--Yn&&be._pagesCapability.resolve()},Gt=>{console.error(`Unable to get page ${_t} to initialize viewer`,Gt),0==--Yn&&be._pagesCapability.resolve()});_t%ge.PAUSE_EAGER_PAGE_INIT==0&&(yield Tt)}})),this.eventBus.dispatch("pagesinit",{source:this}),ye.getMetadata().then(({info:Yn})=>{ye===this.pdfDocument&&Yn.Language&&(this.viewer.lang=Yn.Language)}),this.defaultRenderingQueue&&this.update()}).catch(mt=>{console.error("Unable to initialize viewer",mt),this._pagesCapability.reject(mt)})}setPageLabels(ye){var be,Je;if(this.pdfDocument){ye?Array.isArray(ye)&&this.pdfDocument.numPages===ye.length?this._pageLabels=ye:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let gt=0,Nt=this._pages.length;gt$t+ft)&&(be={left:0,top:0})}(0,H.scrollIntoView)(ye,be)}_setScaleUpdatePages(ye,be,Je=!1,gt=!1){if(this._currentScaleValue=be.toString(),Hl(this,ke,QP).call(this,ye))return void(gt&&this.eventBus.dispatch("scalechanging",{source:this,scale:ye,presetValue:be}));this._doc.style.setProperty("--zoom-factor",ye),this._doc.style.setProperty("--viewport-scale-factor",ye*P.PixelsPerInch.PDF_TO_CSS_UNITS);const Nt={scale:ye};for(const $t of this._pages)$t.update(Nt);if(this._currentScale=ye,!Je){let ft,$t=this._currentPageNumber;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&($t=this._location.pageNumber,ft=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:$t,destArray:ft,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:ye,presetValue:gt?be:void 0}),this.defaultRenderingQueue&&this.update(),qa(this,Ve,this.container.clientHeight)}get _pageWidthScaleFactor(){return this._spreadMode!==H.SpreadMode.NONE&&this._scrollMode!==H.ScrollMode.HORIZONTAL?2:1}_setScale(ye,be=!1){let Je=parseFloat(ye);if(Je>0)this._setScaleUpdatePages(Je,ye,be,!1);else{const gt=this._pages[this._currentPageNumber-1];if(!gt)return;let Nt=H.SCROLLBAR_PADDING,$t=H.VERTICAL_PADDING;this.isInPresentationMode?Nt=$t=4:this.removePageBorders&&(Nt=$t=0),this._scrollMode===H.ScrollMode.HORIZONTAL&&([Nt,$t]=[$t,Nt]);const ft=(this.container.clientWidth-Nt)/gt.width*gt.scale/this._pageWidthScaleFactor,mt=(this.container.clientHeight-$t)/gt.height*gt.scale;switch(ye){case"page-actual":Je=1;break;case"page-width":Je=ft;break;case"page-height":Je=mt;break;case"page-fit":Je=Math.min(ft,mt);break;case"auto":const Re=(0,H.isPortraitOrientation)(gt)?ft:Math.min(mt,ft);Je=Math.min(H.MAX_AUTO_SCALE,Re);break;default:return void console.error(`_setScale: "${ye}" is an unknown zoom value.`)}this._setScaleUpdatePages(Je,ye,be,!0)}}_resetCurrentPageView(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this._scrollIntoView({pageDiv:this._pages[this._currentPageNumber-1].div})}pageLabelToPageNumber(ye){if(!this._pageLabels)return null;const be=this._pageLabels.indexOf(ye);return be<0?null:be+1}scrollPageIntoView({pageNumber:ye,destArray:be=null,allowNegativeOffset:Je=!1,ignoreDestinationZoom:gt=!1}){if(!this.pdfDocument)return;const Nt=Number.isInteger(ye)&&this._pages[ye-1];if(!Nt)return void console.error(`scrollPageIntoView: "${ye}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!be)return void this._setCurrentPageNumber(ye,!0);let zt,Kt,$t=0,ft=0,mt=0,Re=0;const hn=Nt.rotation%180!=0,xn=(hn?Nt.height:Nt.width)/Nt.scale/P.PixelsPerInch.PDF_TO_CSS_UNITS,Mn=(hn?Nt.width:Nt.height)/Nt.scale/P.PixelsPerInch.PDF_TO_CSS_UNITS;let Hn=0;switch(be[1].name){case"XYZ":$t=be[2],ft=be[3],Hn=be[4],$t=null!==$t?$t:0,ft=null!==ft?ft:Mn;break;case"Fit":case"FitB":Hn="page-fit";break;case"FitH":case"FitBH":ft=be[2],Hn="page-width",null===ft&&this._location?($t=this._location.left,ft=this._location.top):("number"!=typeof ft||ft<0)&&(ft=Mn);break;case"FitV":case"FitBV":$t=be[2],mt=xn,Re=Mn,Hn="page-height";break;case"FitR":$t=be[2],ft=be[3],mt=be[4]-$t,Re=be[5]-ft,zt=(this.container.clientWidth-(this.removePageBorders?0:H.SCROLLBAR_PADDING))/mt/P.PixelsPerInch.PDF_TO_CSS_UNITS,Kt=(this.container.clientHeight-(this.removePageBorders?0:H.VERTICAL_PADDING))/Re/P.PixelsPerInch.PDF_TO_CSS_UNITS,Hn=Math.min(Math.abs(zt),Math.abs(Kt));break;default:return void console.error(`scrollPageIntoView: "${be[1].name}" is not a valid destination type.`)}if(gt||(Hn&&Hn!==this._currentScale?this.currentScaleValue=Hn:this._currentScale===H.UNKNOWN_SCALE&&(this.currentScaleValue=H.DEFAULT_SCALE_VALUE)),"page-fit"===Hn&&!be[4])return void this._scrollIntoView({pageDiv:Nt.div,pageNumber:ye});const pn=[Nt.viewport.convertToViewportPoint($t,ft),Nt.viewport.convertToViewportPoint($t+mt,ft+Re)];let Yn=Math.min(pn[0][0],pn[1][0]),_t=Math.min(pn[0][1],pn[1][1]);Je||(Yn=Math.max(Yn,0),_t=Math.max(_t,0)),this._scrollIntoView({pageDiv:Nt.div,pageSpot:{left:Yn,top:_t},pageNumber:ye})}_updateLocation(ye){const be=this._currentScale,Je=this._currentScaleValue,gt=parseFloat(Je)===be?Math.round(1e4*be)/100:Je,Nt=ye.id;let $t="#page="+Nt;$t+="&zoom="+gt;const mt=this.container,Re=this._pages[Nt-1].getPagePoint(mt.scrollLeft-ye.x,mt.scrollTop-ye.y),zt=Math.round(Re[0]),Kt=Math.round(Re[1]);$t+=","+zt+","+Kt,this._location={pageNumber:Nt,scale:gt,top:Kt,left:zt,rotation:this._pagesRotation,pdfOpenParams:$t}}update(){const ye=this._getVisiblePages(),be=ye.views,Je=be.length;if(0===Je)return;const gt=Math.max(10,2*Je+1);if(ar(this,it).resize(gt,ye.ids),this.renderingQueue.renderHighestPriority(ye),!this.isInPresentationMode){const Nt=this._spreadMode===H.SpreadMode.NONE&&(this._scrollMode===H.ScrollMode.PAGE||this._scrollMode===H.ScrollMode.VERTICAL);let $t=this._currentPageNumber,ft=!1;for(const mt of be){if(mt.percent<100)break;if(mt.id===$t&&Nt){ft=!0;break}}ft||($t=be[0].id),this._setCurrentPageNumber($t)}this._updateLocation(ye.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(ye){return this.container.contains(ye)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===H.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===H.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getCurrentVisiblePage(){if(!this.pagesCount)return{views:[]};const ye=this._pages[this._currentPageNumber-1],be=ye.div,Je={id:ye.id,x:be.offsetLeft+be.clientLeft,y:be.offsetTop+be.clientTop,view:ye};return{first:Je,last:Je,views:[Je],ids:new Set([ye.id])}}_getVisiblePages(){if(this.isInPresentationMode)return this._getCurrentVisiblePage();const ye=this._scrollMode===H.ScrollMode.PAGE?ar(this,He).pages:this._pages,be=this._scrollMode===H.ScrollMode.HORIZONTAL;return(0,H.getVisibleElements)({scrollEl:this.container,views:ye,sortByVisibility:!0,horizontal:be,rtl:be&&this._isContainerRtl})}isPageVisible(ye){return!!this.pdfDocument&&(Number.isInteger(ye)&&ye>0&&ye<=this.pagesCount?this._getVisiblePages().ids.has(ye):(console.error(`isPageVisible: "${ye}" is not a valid page.`),!1))}isPageCached(ye){if(!this.pdfDocument)return!1;if(!(Number.isInteger(ye)&&ye>0&&ye<=this.pagesCount))return console.error(`isPageCached: "${ye}" is not a valid page.`),!1;const be=this._pages[ye-1];return ar(this,it).has(be)}cleanup(){for(let ye=0,be=this._pages.length;ye{this.renderingQueue.renderView(Nt)}),!0)}createTextLayerBuilder(ye,be,Je,gt=!1,Nt,$t){return new ce.TextLayerBuilder({textLayerDiv:ye,eventBus:Nt,pageIndex:be,viewport:Je,enhanceTextSelection:!this.isInPresentationMode&>,highlighter:$t})}createTextHighlighter(ye,be){return new re.TextHighlighter({eventBus:be,pageIndex:ye,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder(ye,be,Je=null,gt="",Nt=!0,$t=ee.NullL10n,ft=null,mt=null,Re=null,zt=null,Kt=null){var hn,xn,Mn,Hn;return new E.AnnotationLayerBuilder({pageDiv:ye,pdfPage:be,annotationStorage:Je||(null==(hn=this.pdfDocument)?void 0:hn.annotationStorage),imageResourcesPath:gt,renderForms:Nt,linkService:this.linkService,downloadManager:this.downloadManager,l10n:$t,enableScripting:null!=ft?ft:this.enableScripting,hasJSActionsPromise:mt||(null==(xn=this.pdfDocument)?void 0:xn.hasJSActions()),fieldObjectsPromise:zt||(null==(Mn=this.pdfDocument)?void 0:Mn.getFieldObjects()),mouseState:Re||(null==(Hn=this._scriptingManager)?void 0:Hn.mouseState),annotationCanvasMap:Kt})}createXfaLayerBuilder(ye,be,Je=null){var gt;return new L.XfaLayerBuilder({pageDiv:ye,pdfPage:be,annotationStorage:Je||(null==(gt=this.pdfDocument)?void 0:gt.annotationStorage),linkService:this.linkService})}createStructTreeLayerBuilder(ye){return new xe.StructTreeLayerBuilder({pdfPage:ye})}get hasEqualPageSizes(){const ye=this._pages[0];for(let be=1,Je=this._pages.length;be{const be=ye.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,H.isPortraitOrientation)(be)?{width:be.width,height:be.height,rotation:be.rotation}:{width:be.height,height:be.width,rotation:(be.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)}set optionalContentConfigPromise(ye){if(!(ye instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${ye}`);if(!this.pdfDocument||!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=ye;const be={optionalContentConfigPromise:ye};for(const Je of this._pages)Je.update(be);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:ye})}get scrollMode(){return this._scrollMode}set scrollMode(ye){if(this._scrollMode!==ye){if(!(0,H.isValidScrollMode)(ye))throw new Error(`Invalid scroll mode: ${ye}`);this.pagesCount>ge.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=ye,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:ye}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(ye=null){const be=this._scrollMode,Je=this.viewer;Je.classList.toggle("scrollHorizontal",be===H.ScrollMode.HORIZONTAL),Je.classList.toggle("scrollWrapped",be===H.ScrollMode.WRAPPED),this.pdfDocument&&ye&&(be===H.ScrollMode.PAGE?Hl(this,Ne,Gb).call(this):this._previousScrollMode===H.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(ye,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(ye){if(this._spreadMode!==ye){if(!(0,H.isValidSpreadMode)(ye))throw new Error(`Invalid spread mode: ${ye}`);this._spreadMode=ye,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:ye}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(ye=null){if(!this.pdfDocument)return;const be=this.viewer,Je=this._pages;if(this._scrollMode===H.ScrollMode.PAGE)Hl(this,Ne,Gb).call(this);else if(be.textContent="",this._spreadMode===H.SpreadMode.NONE)for(let gt=0,Nt=Je.length;gt=Re;mt--){const Kt=Nt[mt+1]-1;if(Nt[mt]Kt)return Kt-ye}if(be){const mt=Nt[0];if(mtye)return mt-ye+1}break}break}case H.ScrollMode.HORIZONTAL:break;case H.ScrollMode.PAGE:case H.ScrollMode.VERTICAL:{if(this._spreadMode===H.SpreadMode.NONE)break;const Je=this._spreadMode-1;if(be&&ye%2!==Je)break;if(!be&&ye%2===Je)break;const{views:gt}=this._getVisiblePages(),Nt=be?ye-1:ye+1;for(const{id:$t,percent:ft,widthPercent:mt}of gt)if($t===Nt){if(ft>0&&100===mt)return 2;break}break}}return 1}nextPage(){const ye=this._currentPageNumber,be=this.pagesCount;if(ye>=be)return!1;const Je=this._getPageAdvance(ye,!1)||1;return this.currentPageNumber=Math.min(ye+Je,be),!0}previousPage(){const ye=this._currentPageNumber;if(ye<=1)return!1;const be=this._getPageAdvance(ye,!0)||1;return this.currentPageNumber=Math.max(ye-be,1),!0}increaseScale(ye=1){let be=this._currentScale;do{be=(be*H.DEFAULT_SCALE_DELTA).toFixed(2),be=Math.ceil(10*be)/10,be=Math.min(H.MAX_SCALE,be)}while(--ye>0&&be0&&be>H.MIN_SCALE);this.currentScaleValue=be}};let Ce=Wt;it=new WeakMap,ct=new WeakMap,g=new WeakMap,qe=new WeakMap,Ve=new WeakMap,He=new WeakMap,X=new WeakMap,Le=new WeakSet,$P=function(ye){!ye||(ye.includes(P.PermissionFlag.COPY)||this.viewer.classList.add(we),!ye.includes(P.PermissionFlag.MODIFY_ANNOTATIONS)&&!ye.includes(P.PermissionFlag.FILL_INTERACTIVE_FORMS)&&ar(this,ct)===P.AnnotationMode.ENABLE_FORMS&&(qa(this,g,ar(this,ct)),qa(this,ct,P.AnnotationMode.ENABLE)))},Ze=new WeakSet,YP=function(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve();const ye=new Promise(be=>{qa(this,X,()=>{"hidden"===document.visibilityState&&(be(),document.removeEventListener("visibilitychange",ar(this,X)),qa(this,X,null))}),document.addEventListener("visibilitychange",ar(this,X))});return Promise.race([this._onePageRenderedCapability.promise,ye])},Ne=new WeakSet,Gb=function(){if(this._scrollMode!==H.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const ye=this._currentPageNumber,be=ar(this,He),Je=this.viewer;if(Je.textContent="",be.pages.length=0,this._spreadMode===H.SpreadMode.NONE){const gt=this._pages[ye-1];if(this.isInPresentationMode){const Nt=document.createElement("div");Nt.className="spread";const $t=document.createElement("div");$t.className="dummyPage",$t.style.height=`${this.container.clientHeight}px`,Nt.appendChild($t),Nt.appendChild(gt.div),Je.appendChild(Nt)}else Je.appendChild(gt.div);be.pages.push(gt)}else{const gt=new Set,Nt=this._spreadMode-1;ye%2!==Nt?(gt.add(ye-1),gt.add(ye)):(gt.add(ye-2),gt.add(ye-1));let $t=null;for(const ft of gt){const mt=this._pages[ft];!mt||(null===$t?($t=document.createElement("div"),$t.className="spread",Je.appendChild($t)):ft%2===Nt&&($t=$t.cloneNode(!1),Je.appendChild($t)),$t.appendChild(mt.div),be.pages.push(mt))}}be.scrollDown=ye>=be.previousPageNumber,be.previousPageNumber=ye},ke=new WeakSet,QP=function(ye){return(!this.isInPresentationMode||this.container.clientHeight===ar(this,Ve))&&(ye===this._currentScale||Math.abs(ye-this._currentScale)<1e-15)},ot=new WeakSet,WP=function(ye){var be=this;return a(function*(){var Je,gt;if(ye.pdfPage)return ye.pdfPage;try{const Nt=yield be.pdfDocument.getPage(ye.id);return ye.pdfPage||ye.setPdfPage(Nt),(null==(gt=(Je=be.linkService)._cachedPageNumber)?void 0:gt.call(Je,Nt.ref))||be.linkService.cachePageRef(ye.id,Nt.ref),Nt}catch(Nt){return console.error("Unable to get page for page view",Nt),null}})()},ut=new WeakSet,ZP=function(ye){var be,Je;if(1===(null==(be=ye.first)?void 0:be.id))return!0;if((null==(Je=ye.last)?void 0:Je.id)===this.pagesCount)return!1;switch(this._scrollMode){case H.ScrollMode.PAGE:return ar(this,He).scrollDown;case H.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down},At=new WeakSet,JP=function(ye){for(const be of ye){const Je=this._pages[be-1];null==Je||Je.toggleLoadingIconSpinner(!0)}for(const be of ar(this,it))ye.has(be.id)||be.toggleLoadingIconSpinner(!1)},r.BaseViewer=Ce},(K,r,O)=>{var le;Object.defineProperty(r,"__esModule",{value:!0}),r.PDFPageView=void 0;var P=O(3),H=O(6),E=O(13),ee=O(4);const x=E.compatibilityParams.maxCanvasPixels||16777216;le=new WeakMap,r.PDFPageView=class{constructor(re){var we,ge,fe,Ce;Qo(this,le,P.AnnotationMode.ENABLE_FORMS);const ce=re.container,L=re.defaultViewport;this.id=re.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=re.scale||H.DEFAULT_SCALE,this.viewport=L,this.pdfPageRotate=L.rotation,this._optionalContentConfigPromise=re.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=null!=(we=re.textLayerMode)?we:H.TextLayerMode.ENABLE,qa(this,le,null!=(ge=re.annotationMode)?ge:P.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=re.imageResourcesPath||"",this.useOnlyCssZoom=re.useOnlyCssZoom||!1,this.maxCanvasPixels=re.maxCanvasPixels||x,this.eventBus=re.eventBus,this.renderingQueue=re.renderingQueue,this.textLayerFactory=re.textLayerFactory,this.annotationLayerFactory=re.annotationLayerFactory,this.xfaLayerFactory=re.xfaLayerFactory,this.textHighlighter=null==(fe=re.textHighlighterFactory)?void 0:fe.createTextHighlighter(this.id-1,this.eventBus),this.structTreeLayerFactory=re.structTreeLayerFactory,this.renderer=re.renderer||H.RendererType.CANVAS,this.l10n=re.l10n||ee.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=H.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!(null==(Ce=this.renderingQueue)?void 0:Ce.hasViewer()),this._annotationCanvasMap=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const J=document.createElement("div");J.className="page",J.style.width=Math.floor(this.viewport.width)+"px",J.style.height=Math.floor(this.viewport.height)+"px",J.setAttribute("data-page-number",this.id),J.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(e=>{J.setAttribute("aria-label",e)}),this.div=J,null==ce||ce.appendChild(J)}setPdfPage(re){this.pdfPage=re,this.pdfPageRotate=re.rotate,this.viewport=re.getViewport({scale:this.scale*P.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_renderAnnotationLayer(){var re=this;return a(function*(){let ce=null;try{yield re.annotationLayer.render(re.viewport,"display")}catch(L){ce=L}finally{re.eventBus.dispatch("annotationlayerrendered",{source:re,pageNumber:re.id,error:ce})}})()}_renderXfaLayer(){var re=this;return a(function*(){let ce=null;try{const L=yield re.xfaLayer.render(re.viewport,"display");re.textHighlighter&&re._buildXfaTextContentItems(L.textDivs)}catch(L){ce=L}finally{re.eventBus.dispatch("xfalayerrendered",{source:re,pageNumber:re.id,error:ce})}})()}_buildXfaTextContentItems(re){var ce=this;return a(function*(){const L=yield ce.pdfPage.getTextContent(),J=[];for(const we of L.items)J.push(we.str);ce.textHighlighter.setTextMapping(re,J),ce.textHighlighter.enable()})()}_resetZoomLayer(re=!1){if(!this.zoomLayer)return;const ce=this.zoomLayer.firstChild;this.paintedViewportMap.delete(ce),ce.width=0,ce.height=0,re&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:re=!1,keepAnnotationLayer:ce=!1,keepXfaLayer:L=!1}={}){var e,z;this.cancelRendering({keepAnnotationLayer:ce,keepXfaLayer:L}),this.renderingState=H.RenderingStates.INITIAL;const J=this.div;J.style.width=Math.floor(this.viewport.width)+"px",J.style.height=Math.floor(this.viewport.height)+"px";const we=J.childNodes,ge=re&&this.zoomLayer||null,fe=ce&&(null==(e=this.annotationLayer)?void 0:e.div)||null,Ce=L&&(null==(z=this.xfaLayer)?void 0:z.div)||null;for(let je=we.length-1;je>=0;je--){const rt=we[je];switch(rt){case ge:case fe:case Ce:continue}rt.remove()}J.removeAttribute("data-loaded"),fe&&this.annotationLayer.hide(),Ce&&this.xfaLayer.hide(),ge||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(je=>{var rt;null==(rt=this.loadingIconDiv)||rt.setAttribute("aria-label",je)}),J.appendChild(this.loadingIconDiv)}update({scale:re=0,rotation:ce=null,optionalContentConfigPromise:L=null}){if("object"!=typeof arguments[0])return console.error("PDFPageView.update called with separate parameters, please use an object instead."),void this.update({scale:arguments[0],rotation:arguments[1],optionalContentConfigPromise:arguments[2]});this.scale=re||this.scale,"number"==typeof ce&&(this.rotation=ce),L instanceof Promise&&(this._optionalContentConfigPromise=L);const we=this.scale*P.PixelsPerInch.PDF_TO_CSS_UNITS;if(this.viewport=this.viewport.clone({scale:we,rotation:(this.rotation+this.pdfPageRotate)%360}),this._isStandalone){const{style:fe}=document.documentElement;fe.setProperty("--zoom-factor",this.scale),fe.setProperty("--viewport-scale-factor",we)}if(this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let ge=!1;if(this.canvas&&this.maxCanvasPixels>0){const fe=this.outputScale;(Math.floor(this.viewport.width)*fe.sx|0)*(Math.floor(this.viewport.height)*fe.sy|0)>this.maxCanvasPixels&&(ge=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&ge)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:re=!1,keepXfaLayer:ce=!1}={}){var L;this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!re||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.xfaLayer&&(!ce||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,null==(L=this.textHighlighter)||L.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:re,redrawAnnotationLayer:ce=!1,redrawXfaLayer:L=!1}){const J=this.viewport.width,we=this.viewport.height,ge=this.div;re.style.width=re.parentNode.style.width=ge.style.width=Math.floor(J)+"px",re.style.height=re.parentNode.style.height=ge.style.height=Math.floor(we)+"px";const fe=this.viewport.rotation-this.paintedViewportMap.get(re).rotation,Ce=Math.abs(fe);let e=1,z=1;if((90===Ce||270===Ce)&&(e=we/J,z=J/we),re.style.transform=`rotate(${fe}deg) scale(${e}, ${z})`,this.textLayer){const je=this.textLayer.viewport,it=Math.abs(this.viewport.rotation-je.rotation);let ct=J/je.width;(90===it||270===it)&&(ct=J/je.height);const g=this.textLayer.textLayerDiv;let qe,Ve;switch(it){case 0:qe=Ve=0;break;case 90:qe=0,Ve="-"+g.style.height;break;case 180:qe="-"+g.style.width,Ve="-"+g.style.height;break;case 270:qe="-"+g.style.width,Ve=0;break;default:console.error("Bad rotation value.")}g.style.transform=`rotate(${it}deg) scale(${ct}) translate(${qe}, ${Ve})`,g.style.transformOrigin="0% 0%"}ce&&this.annotationLayer&&this._renderAnnotationLayer(),L&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(re,ce){return this.viewport.convertToPdfPoint(re,ce)}toggleLoadingIconSpinner(re=!1){var ce;null==(ce=this.loadingIconDiv)||ce.classList.toggle("notVisible",!re)}draw(){var z,je,rt,re=this;this.renderingState!==H.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:ce,pdfPage:L}=this;if(!L)return this.renderingState=H.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=H.RenderingStates.RUNNING;const J=document.createElement("div");J.style.width=ce.style.width,J.style.height=ce.style.height,J.classList.add("canvasWrapper"),(null==(z=this.annotationLayer)?void 0:z.div)?ce.insertBefore(J,this.annotationLayer.div):ce.appendChild(J);let we=null;if(this.textLayerMode!==H.TextLayerMode.DISABLE&&this.textLayerFactory){const it=document.createElement("div");it.className="textLayer",it.style.width=J.style.width,it.style.height=J.style.height,(null==(je=this.annotationLayer)?void 0:je.div)?ce.insertBefore(it,this.annotationLayer.div):ce.appendChild(it),we=this.textLayerFactory.createTextLayerBuilder(it,this.id-1,this.viewport,this.textLayerMode===H.TextLayerMode.ENABLE_ENHANCE,this.eventBus,this.textHighlighter)}this.textLayer=we,ar(this,le)!==P.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(ce,L,null,this.imageResourcesPath,ar(this,le)===P.AnnotationMode.ENABLE_FORMS,this.l10n,null,null,null,null,this._annotationCanvasMap))),(null==(rt=this.xfaLayer)?void 0:rt.div)&&ce.appendChild(this.xfaLayer.div);let ge=null;this.renderingQueue&&(ge=it=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=H.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=H.RenderingStates.RUNNING,it()});it()});const fe=function(){var it=a(function*(ct=null){if(Ce===re.paintTask&&(re.paintTask=null),ct instanceof P.RenderingCancelledException)re._renderError=null;else if(re._renderError=ct,re.renderingState=H.RenderingStates.FINISHED,re.loadingIconDiv&&(re.loadingIconDiv.remove(),delete re.loadingIconDiv),re._resetZoomLayer(!0),re.eventBus.dispatch("pagerendered",{source:re,pageNumber:re.id,cssTransform:!1,timestamp:performance.now(),error:re._renderError}),ct)throw ct});return function(){return it.apply(this,arguments)}}(),Ce=this.renderer===H.RendererType.SVG?this.paintOnSvg(J):this.paintOnCanvas(J);Ce.onRenderContinue=ge,this.paintTask=Ce;const e=Ce.promise.then(()=>fe(null).then(()=>{if(we){const it=L.streamTextContent({includeMarkedContent:!0});we.setTextContentStream(it),we.render()}this.annotationLayer&&this._renderAnnotationLayer()}),function(it){return fe(it)});return this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder(ce,L,null)),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=it=>{it.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then(ct=>{if(!ct||!this.canvas)return;const g=this.structTreeLayer.render(ct);g.classList.add("structTree"),this.canvas.appendChild(g)}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder(L)),ce.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),e}paintOnCanvas(re){const ce=(0,P.createPromiseCapability)(),L={promise:ce.promise,onRenderContinue(g){g()},cancel(){ct.cancel()}},J=this.viewport,we=document.createElement("canvas");we.hidden=!0;let ge=!0;const fe=function(){ge&&(we.hidden=!1,ge=!1)};re.appendChild(we),this.canvas=we,we.mozOpaque=!0;const Ce=we.getContext("2d",{alpha:!1}),e=this.outputScale=new H.OutputScale;if(this.useOnlyCssZoom){const g=J.clone({scale:P.PixelsPerInch.PDF_TO_CSS_UNITS});e.sx*=g.width/J.width,e.sy*=g.height/J.height}if(this.maxCanvasPixels>0){const qe=Math.sqrt(this.maxCanvasPixels/(J.width*J.height));e.sx>qe||e.sy>qe?(e.sx=qe,e.sy=qe,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const z=(0,H.approximateFraction)(e.sx),je=(0,H.approximateFraction)(e.sy);we.width=(0,H.roundToDivide)(J.width*e.sx,z[0]),we.height=(0,H.roundToDivide)(J.height*e.sy,je[0]),we.style.width=(0,H.roundToDivide)(J.width,z[1])+"px",we.style.height=(0,H.roundToDivide)(J.height,je[1])+"px",this.paintedViewportMap.set(we,J);const it={canvasContext:Ce,transform:e.scaled?[e.sx,0,0,e.sy,0,0]:null,viewport:this.viewport,annotationMode:ar(this,le),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap},ct=this.pdfPage.render(it);return ct.onContinue=function(g){fe(),L.onRenderContinue?L.onRenderContinue(g):g()},ct.promise.then(function(){fe(),ce.resolve()},function(g){fe(),ce.reject(g)}),L}paintOnSvg(re){let ce=!1;const L=()=>{if(ce)throw new P.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},J=this.pdfPage,we=this.viewport.clone({scale:P.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:J.getOperatorList({annotationMode:ar(this,le)}).then(fe=>(L(),new P.SVGGraphics(J.commonObjs,J.objs).getSVG(fe,we).then(e=>{L(),this.svg=e,this.paintedViewportMap.set(e,we),e.style.width=re.style.width,e.style.height=re.style.height,this.renderingState=H.RenderingStates.FINISHED,re.appendChild(e)}))),onRenderContinue(fe){fe()},cancel(){ce=!0}}}setPageLabel(re){this.pageLabel="string"==typeof re?re:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}},(K,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.compatibilityParams=r.OptionKind=r.AppOptions=void 0;const O=Object.create(null);r.compatibilityParams=O;{const x=navigator.userAgent||"",U=navigator.platform||"",le=navigator.maxTouchPoints||1,xe=/Android/.test(x);(/\b(iPad|iPhone|iPod)(?=;)/.test(x)||"MacIntel"===U&&le>1||xe)&&(O.maxCanvasPixels=5242880)}const P={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};r.OptionKind=P;const H={annotationMode:{value:2,kind:P.VIEWER+P.PREFERENCE},cursorToolOnLoad:{value:0,kind:P.VIEWER+P.PREFERENCE},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:P.VIEWER},defaultZoomValue:{value:"",kind:P.VIEWER+P.PREFERENCE},disableHistory:{value:!1,kind:P.VIEWER},disablePageLabels:{value:!1,kind:P.VIEWER+P.PREFERENCE},enablePermissions:{value:!1,kind:P.VIEWER+P.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:P.VIEWER+P.PREFERENCE},enableScripting:{value:!0,kind:P.VIEWER+P.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:P.VIEWER},externalLinkTarget:{value:0,kind:P.VIEWER+P.PREFERENCE},historyUpdateUrl:{value:!1,kind:P.VIEWER+P.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:P.VIEWER+P.PREFERENCE},imageResourcesPath:{value:"./images/",kind:P.VIEWER},maxCanvasPixels:{value:16777216,compatibility:O.maxCanvasPixels,kind:P.VIEWER},pdfBugEnabled:{value:!1,kind:P.VIEWER+P.PREFERENCE},printResolution:{value:150,kind:P.VIEWER},renderer:{value:"canvas",kind:P.VIEWER},sidebarViewOnLoad:{value:-1,kind:P.VIEWER+P.PREFERENCE},scrollModeOnLoad:{value:-1,kind:P.VIEWER+P.PREFERENCE},spreadModeOnLoad:{value:-1,kind:P.VIEWER+P.PREFERENCE},textLayerMode:{value:1,kind:P.VIEWER+P.PREFERENCE},useOnlyCssZoom:{value:!1,kind:P.VIEWER+P.PREFERENCE},viewerCssTheme:{value:0,kind:P.VIEWER+P.PREFERENCE},viewOnLoad:{value:0,kind:P.VIEWER+P.PREFERENCE},cMapPacked:{value:!0,kind:P.API},cMapUrl:{value:"../web/cmaps/",kind:P.API},disableAutoFetch:{value:!1,kind:P.API+P.PREFERENCE},disableFontFace:{value:!1,kind:P.API+P.PREFERENCE},disableRange:{value:!1,kind:P.API+P.PREFERENCE},disableStream:{value:!1,kind:P.API+P.PREFERENCE},docBaseUrl:{value:"",kind:P.API},enableXfa:{value:!0,kind:P.API+P.PREFERENCE},fontExtraProperties:{value:!1,kind:P.API},isEvalSupported:{value:!0,kind:P.API},maxImageSize:{value:-1,kind:P.API},pdfBug:{value:!1,kind:P.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:P.API},verbosity:{value:1,kind:P.API},workerPort:{value:null,kind:P.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:P.WORKER}};H.disablePreferences={value:!1,kind:P.VIEWER},H.locale={value:navigator.language||"en-US",kind:P.VIEWER},H.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:P.VIEWER},H.renderer.kind+=P.PREFERENCE;const E=Object.create(null);r.AppOptions=class{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(U){var re;const le=E[U];if(void 0!==le)return le;const xe=H[U];return void 0!==xe?null!=(re=xe.compatibility)?re:xe.value:void 0}static getAll(U=null){var xe;const le=Object.create(null);for(const re in H){const ce=H[re];if(U){if(0==(U&ce.kind))continue;if(U===P.PREFERENCE){const J=ce.value,we=typeof J;if("boolean"===we||"string"===we||"number"===we&&Number.isInteger(J)){le[re]=J;continue}throw new Error(`Invalid type for preference: ${re}`)}}const L=E[re];le[re]=void 0!==L?L:null!=(xe=ce.compatibility)?xe:ce.value}return le}static set(U,le){E[U]=le}static setAll(U){for(const le in U)E[le]=U[le]}static remove(U){delete E[U]}static _hasUserOptions(){return Object.keys(E).length>0}}},(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFRenderingQueue=void 0;var P=O(3),H=O(6);r.PDFRenderingQueue=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(U){this.pdfViewer=U}setThumbnailViewer(U){this.pdfThumbnailViewer=U}isHighestPriority(U){return this.highestPriorityPage===U.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(U){var le;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(U)&&(this.isThumbnailViewEnabled&&(null==(le=this.pdfThumbnailViewer)?void 0:le.forceRendering())||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}getHighestPriority(U,le,xe,re=!1){const ce=U.views,L=ce.length;if(0===L)return null;for(let Ce=0;CeL){const Ce=U.ids;for(let e=1,z=we-J;e{this.renderHighestPriority()}).catch(le=>{le instanceof P.RenderingCancelledException||console.error(`renderView: "${le}"`)})}return!0}}},(K,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TextHighlighter=void 0;r.TextHighlighter=class{constructor({findController:H,eventBus:E,pageIndex:ee}){this.findController=H,this.matches=[],this.eventBus=E,this.pageIdx=ee,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(H,E){this.textDivs=H,this.textContentItemsStr=E}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=H=>{(H.pageIndex===this.pageIdx||-1===H.pageIndex)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){!this.enabled||(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(H,E){if(!H)return[];const{textContentItemsStr:ee}=this;let x=0,U=0;const le=ee.length-1,xe=[];for(let re=0,ce=H.length;re=U+ee[x].length;)U+=ee[x].length,x++;x===ee.length&&console.error("Could not find a matching mapping");const J={begin:{divIdx:x,offset:L-U}};for(L+=E[re];x!==le&&L>U+ee[x].length;)U+=ee[x].length,x++;J.end={divIdx:x,offset:L-U},xe.push(J)}return xe}_renderMatches(H){if(0===H.length)return;const{findController:E,pageIdx:ee}=this,{textContentItemsStr:x,textDivs:U}=this,le=ee===E.selected.pageIdx,xe=E.selected.matchIdx;let ce=null;const L_offset=void 0;function J(Ce,e){const z=Ce.divIdx;return U[z].textContent="",we(z,0,Ce.offset,e)}function we(Ce,e,z,je){let rt=U[Ce];if(rt.nodeType===Node.TEXT_NODE){const g=document.createElement("span");rt.parentNode.insertBefore(g,rt),g.appendChild(rt),U[Ce]=g,rt=g}const it=x[Ce].substring(e,z),ct=document.createTextNode(it);if(je){const g=document.createElement("span");return g.className=`${je} appended`,g.appendChild(ct),rt.appendChild(g),je.includes("selected")?g.offsetLeft:0}return rt.appendChild(ct),0}let ge=xe,fe=ge+1;if(E.state.highlightAll)ge=0,fe=H.length;else if(!le)return;for(let Ce=ge;Ce{Object.defineProperty(r,"__esModule",{value:!0}),r.DownloadManager=void 0;var P=O(3);function H(ee,x){const U=document.createElement("a");if(!U.click)throw new Error('DownloadManager: "a.click()" is not supported.');U.href=ee,U.target="_parent","download"in U&&(U.download=x),(document.body||document.documentElement).appendChild(U),U.click(),U.remove()}r.DownloadManager=class{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(x,U){(0,P.createValidAbsoluteUrl)(x,"http://example.com")?H(x+"#pdfjs.action=download",U):console.error(`downloadUrl - not a valid URL: ${x}`)}downloadData(x,U,le){H(URL.createObjectURL(new Blob([x],{type:le})),U)}openOrDownloadData(x,U,le){const xe=(0,P.isPdfFile)(le),re=xe?"application/pdf":"";if(xe){let L,ce=this._openBlobUrls.get(x);ce||(ce=URL.createObjectURL(new Blob([U],{type:re})),this._openBlobUrls.set(x,ce)),L="?file="+encodeURIComponent(ce+"#"+le);try{return window.open(L),!0}catch(J){console.error(`openOrDownloadData: ${J}`),URL.revokeObjectURL(ce),this._openBlobUrls.delete(x)}}return this.downloadData(U,le,re),!1}download(x,U,le,xe="download"){H(URL.createObjectURL(x),le)}}},(K,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WaitOnType=r.EventBus=r.AutomationEventBus=void 0,r.waitOnEventOrTimeout=function({target:ee,name:x,delay:U=0}){return new Promise(function(le,xe){if("object"!=typeof ee||!x||"string"!=typeof x||!(Number.isInteger(U)&&U>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function re(we){ee instanceof H?ee._off(x,ce):ee.removeEventListener(x,ce),J&&clearTimeout(J),le(we)}const ce=re.bind(null,O.EVENT);ee instanceof H?ee._on(x,ce):ee.addEventListener(x,ce);const L=re.bind(null,O.TIMEOUT),J=setTimeout(L,U)})};const O={EVENT:"event",TIMEOUT:"timeout"};r.WaitOnType=O;class H{constructor(){this._listeners=Object.create(null)}on(x,U,le=null){this._on(x,U,{external:!0,once:null==le?void 0:le.once})}off(x,U,le=null){this._off(x,U,{external:!0,once:null==le?void 0:le.once})}dispatch(x,U){const le=this._listeners[x];if(!le||0===le.length)return;let xe;for(const{listener:re,external:ce,once:L}of le.slice(0))L&&this._off(x,re),ce?(xe||(xe=[])).push(re):re(U);if(xe){for(const re of xe)re(U);xe=null}}_on(x,U,le=null){var re;((re=this._listeners)[x]||(re[x]=[])).push({listener:U,external:!0===(null==le?void 0:le.external),once:!0===(null==le?void 0:le.once)})}_off(x,U,le=null){const xe=this._listeners[x];if(xe)for(let re=0,ce=xe.length;re{Object.defineProperty(r,"__esModule",{value:!0}),r.GenericL10n=void 0,O(19);var P=O(4);const H=document.webL10n;r.GenericL10n=class{constructor(x){this._lang=x,this._ready=new Promise((U,le)=>{H.setLanguage((0,P.fixupLangCode)(x),()=>{U(H)})})}getLanguage(){var x=this;return a(function*(){return(yield x._ready).getLanguage()})()}getDirection(){var x=this;return a(function*(){return(yield x._ready).getDirection()})()}get(x,U=null,le=(0,P.getL10nFallback)(x,U)){var xe=this;return a(function*(){return(yield xe._ready).get(x,U,le)})()}translate(x){var U=this;return a(function*(){return(yield U._ready).translate(x)})()}}},()=>{document.webL10n=function(K,r,O){var P={},H="",E="textContent",ee="",x={},U="loading";function J(g,qe,Ve){qe=qe||function(Le){},Ve=Ve||function(){};var He=new XMLHttpRequest;He.open("GET",g,true),He.overrideMimeType&&He.overrideMimeType("text/plain; charset=utf-8"),He.onreadystatechange=function(){4==He.readyState&&(200==He.status||0===He.status?qe(He.responseText):Ve())},He.onerror=Ve,He.ontimeout=Ve;try{He.send(null)}catch(X){Ve()}}function we(g,qe,Ve,He){var X=g.replace(/[^\/]*$/,"")||"./";function Le(Ze){return Ze.lastIndexOf("\\")<0?Ze:Ze.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}J(g,function(Ze){H+=Ze,function(Ze,he){var Ne={},Me=/^\s*|\s*$/,ke=/^\s*#|^\s*$/,G=/^\s*\[(.*)\]\s*$/,ot=/^\s*@import\s+url\((.*)\)\s*$/i,We=/^([^=\s]*)\s*=\s*(.+)$/;function ut(At,Jt,Wt){var Sn=At.replace(Me,"").split(/[\r\n]+/),ye="*",be=qe.split("-",1)[0],Je=!1,gt="";!function Nt(){for(;;){if(!Sn.length)return void Wt();var $t=Sn.shift();if(!ke.test($t)){if(Jt){if(gt=G.exec($t)){ye=gt[1].toLowerCase(),Je="*"!==ye&&ye!==qe&&ye!==be;continue}if(Je)continue;if(gt=ot.exec($t))return void Mt(X+gt[1],Nt)}var ft=$t.match(We);ft&&3==ft.length&&(Ne[ft[1]]=Le(ft[2]))}}}()}function Mt(At,Jt){J(At,function(Wt){ut(Wt,!1,Jt)},function(){console.warn(At+" not found."),Jt()})}ut(Ze,!0,function(){he(Ne)})}(Ze,function(he){for(var Ne in he){var Me,ke,G=Ne.lastIndexOf(".");G>0?(Me=Ne.substring(0,G),ke=Ne.substring(G+1)):(Me=Ne,ke=E),P[Me]||(P[Me]={}),P[Me][ke]=he[Ne]}Ve&&Ve()})},He)}function ge(g,qe){g&&(g=g.toLowerCase()),qe=qe||function(){},P={},H="",ee="",ee=g;var Ve=r.querySelectorAll('link[type="application/l10n"]'),He=Ve.length;if(0!==He){var Ze,he=0;Ze=function(){++he>=He&&(qe(),U="complete")};for(var Me=0;Me0&&(X=g.substring(He+1),g=g.substring(0,He)),Ve&&((Le={})[X]=Ve);var Te=e(g,qe,Le);return Te&&X in Te?Te[X]:"{{"+g+"}}"},getData:function(){return P},getText:function(){return H},getLanguage:function(){return ee},setLanguage:function(g,qe){ge(g,function(){qe&&qe()})},getDirection:function(){var qe=ee.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(qe)>=0?"rtl":"ltr"},translate:function(g){for(var qe=function(g){return g?g.querySelectorAll("*[data-l10n-id]"):[]}(g=g||r.documentElement),Ve=qe.length,He=0;He{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFFindController=r.FindState=void 0;var P=O(6),H=O(3),E=O(21);const ee={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};r.FindState=ee;const xe={"\u2010":"-","\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},re=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),ce=[...re.values()].map(je=>String.fromCharCode(je)).join(""),L=/\p{M}+/gu,J=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,we=/([^\p{M}])\p{M}*$/u,ge=/^\p{M}*([^\p{M}])/u;let fe=null;function Ce(je){if(!fe){const Te=Object.keys(xe).join("");fe=new RegExp(`([${Te}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`,"gum")}const rt=[];let it;for(;null!==(it=L.exec(je));)rt.push([it[0].length,it.index]);let ct=je.normalize("NFD");const g=[[0,0]];let qe=0,Ve=0,He=0,X=0,Le=!1;return ct=ct.replace(fe,(Te,Ze,he,Ne,Me,ke)=>{var G;if(ke-=He,Ze){const ot=xe[Te],We=ot.length;for(let ut=1;utHe[0]>=ct);je[qe][0]>ct&&--qe;let Ve=(0,P.binarySearchFirstItem)(je,He=>He[0]>=g,qe);return je[Ve][0]>g&&--Ve,[ct+je[qe][1],it+je[Ve][1]-je[qe][1]]}r.PDFFindController=class{constructor({linkService:rt,eventBus:it}){this._linkService=rt,this._eventBus=it,this._reset(),it._on("find",this._onFind.bind(this)),it._on("findbarclose",this._onFindBarClose.bind(this)),this.executeCommand=(ct,g)=>{console.error('Deprecated method `PDFFindController.executeCommand` called, please dispatch a "find"-event using the EventBus instead.');const qe=Object.assign(Object.create(null),g,{type:ct.substring("find".length)});this._onFind(qe)}}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(rt){this._pdfDocument&&this._reset(),rt&&(this._pdfDocument=rt,this._firstPageCapability.resolve())}_onFind(rt){if(!rt)return;const it=this._pdfDocument,{type:ct}=rt;(null===this._state||this._shouldDirtyMatch(rt))&&(this._dirtyMatch=!0),this._state=rt,"highlightallchange"!==ct&&this._updateUIState(ee.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||it&&this._pdfDocument!==it)return;this._extractText();const g=!this._highlightMatches,qe=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),ct?this._dirtyMatch?this._nextMatch():"again"===ct?(this._nextMatch(),g&&this._state.highlightAll&&this._updateAllPages()):"highlightallchange"===ct?(qe?this._nextMatch():this._highlightMatches=!0,this._updateAllPages()):this._nextMatch():this._findTimeout=setTimeout(()=>{this._nextMatch(),this._findTimeout=null},250)})}scrollMatchIntoView({element:rt=null,selectedLeft:it=0,pageIndex:ct=-1,matchIndex:g=-1}){this._scrollMatches&&rt&&-1!==g&&g===this._selected.matchIdx&&-1!==ct&&ct===this._selected.pageIdx&&(this._scrollMatches=!1,(0,P.scrollIntoView)(rt,{top:-50,left:it+-400},!0))}_reset(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,H.createPromiseCapability)()}get _query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=Ce(this._state.query)),this._normalizedQuery}_shouldDirtyMatch(rt){if(rt.query!==this._state.query)return!0;switch(rt.type){case"again":const it=this._selected.pageIdx+1,ct=this._linkService;return it>=1&&it<=ct.pagesCount&&it!==ct.page&&!ct.isPageVisible(it);case"highlightallchange":return!1}return!0}_isEntireWord(rt,it,ct){let g=rt.slice(0,it).match(we);if(g){const qe=rt.charCodeAt(it),Ve=g[1].charCodeAt(0);if((0,E.getCharacterType)(qe)===(0,E.getCharacterType)(Ve))return!1}if(g=rt.slice(it+ct).match(ge),g){const qe=rt.charCodeAt(it+ct-1),Ve=g[1].charCodeAt(0);if((0,E.getCharacterType)(qe)===(0,E.getCharacterType)(Ve))return!1}return!0}_calculateRegExpMatch(rt,it,ct,g){const qe=[],Ve=[],He=this._pageDiffs[ct];let X;for(;null!==(X=rt.exec(g));){if(it&&!this._isEntireWord(g,X.index,X[0].length))continue;const[Le,Te]=e(He,X.index,X[0].length);Te&&(qe.push(Le),Ve.push(Te))}this._pageMatches[ct]=qe,this._pageMatchesLength[ct]=Ve}_convertToRegExpString(rt,it){const{matchDiacritics:ct}=this._state;let g=!1;return(rt=rt.replace(J,(Ve,He,X,Le,Te,Ze)=>He?`[ ]*\\${He}[ ]*`:X?`[ ]*${X}[ ]*`:Le?"[ ]+":ct?Te||Ze:Te?re.has(Te.charCodeAt(0))?Te:"":it?(g=!0,`${Ze}\\p{M}*`):Ze)).endsWith("[ ]*")&&(rt=rt.slice(0,rt.length-"[ ]*".length)),ct&&it&&(g=!0,rt=`${rt}(?=[${ce}]|[^\\p{M}]|$)`),[g,rt]}_calculateMatch(rt){let it=this._query;if(0===it.length)return;const{caseSensitive:ct,entireWord:g,phraseSearch:qe}=this._state,Ve=this._pageContents[rt],He=this._hasDiacritics[rt];let X=!1;if(qe)[X,it]=this._convertToRegExpString(it,He);else{const Ze=it.match(/\S+/g);Ze&&(it=Ze.sort().reverse().map(he=>{const[Ne,Me]=this._convertToRegExpString(he,He);return X||(X=Ne),`(${Me})`}).join("|"))}it=new RegExp(it,`g${X?"u":""}${ct?"":"i"}`),this._calculateRegExpMatch(it,g,rt,Ve),this._state.highlightAll&&this._updatePage(rt),this._resumePageIdx===rt&&(this._resumePageIdx=null,this._nextPageMatch());const Te=this._pageMatches[rt].length;Te>0&&(this._matchesCountTotal+=Te,this._updateUIResultsCount())}_extractText(){if(this._extractTextPromises.length>0)return;let rt=Promise.resolve();for(let it=0,ct=this._linkService.pagesCount;itthis._pdfDocument.getPage(it+1).then(qe=>qe.getTextContent()).then(qe=>{const Ve=qe.items,He=[];for(let X=0,Le=Ve.length;X{console.error(`Unable to get text content for page ${it+1}`,qe),this._pageContents[it]="",this._pageDiffs[it]=null,this._hasDiacritics[it]=!1,g.resolve(it)}))}}_updatePage(rt){this._scrollMatches&&this._selected.pageIdx===rt&&(this._linkService.page=rt+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:rt})}_updateAllPages(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}_nextMatch(){const rt=this._state.findPrevious,it=this._linkService.page-1,ct=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=it,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(let qe=0;qe{this._pendingFindMatches.delete(Ve),this._calculateMatch(Ve)}))}if(""===this._query)return void this._updateUIState(ee.FOUND);if(this._resumePageIdx)return;const g=this._offset;if(this._pagesToSearch=ct,null!==g.matchIdx){const qe=this._pageMatches[g.pageIdx].length;if(!rt&&g.matchIdx+10)return g.matchIdx=rt?g.matchIdx-1:g.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(rt)}this._nextPageMatch()}_matchesReady(rt){const it=this._offset,ct=rt.length,g=this._state.findPrevious;return ct?(it.matchIdx=g?ct-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(g),!!(it.wrapped&&(it.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}_nextPageMatch(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let rt=null;do{const it=this._offset.pageIdx;if(rt=this._pageMatches[it],!rt){this._resumePageIdx=it;break}}while(!this._matchesReady(rt))}_advanceOffsetPage(rt){const it=this._offset,ct=this._linkService.pagesCount;it.pageIdx=rt?it.pageIdx-1:it.pageIdx+1,it.matchIdx=null,this._pagesToSearch--,(it.pageIdx>=ct||it.pageIdx<0)&&(it.pageIdx=rt?ct-1:0,it.wrapped=!0)}_updateMatch(rt=!1){let it=ee.NOT_FOUND;const ct=this._offset.wrapped;if(this._offset.wrapped=!1,rt){const g=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,it=ct?ee.WRAPPED:ee.FOUND,-1!==g&&g!==this._selected.pageIdx&&this._updatePage(g)}this._updateUIState(it,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}_onFindBarClose(rt){const it=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||it&&this._pdfDocument!==it||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this._updateUIState(ee.FOUND),this._highlightMatches=!1,this._updateAllPages())})}_requestMatchesCount(){var qe;const{pageIdx:rt,matchIdx:it}=this._selected;let ct=0,g=this._matchesCountTotal;if(-1!==it){for(let Ve=0;Veg)&&(ct=g=0),{current:ct,total:g}}_updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}_updateUIState(rt,it=!1){var ct,g;this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:rt,previous:it,matchesCount:this._requestMatchesCount(),rawQuery:null!=(g=null==(ct=this._state)?void 0:ct.query)?g:null})}}},(K,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CharacterType=void 0,r.getCharacterType=function(J){return function(J){return J<11904}(J)?function(J){return 0==(65408&J)}(J)?function(J){return 32===J||9===J||13===J||10===J}(J)?O.SPACE:function(J){return J>=97&&J<=122||J>=65&&J<=90}(J)||function(J){return J>=48&&J<=57}(J)||95===J?O.ALPHA_LETTER:O.PUNCT:function(J){return 3584==(65408&J)}(J)?O.THAI_LETTER:160===J?O.SPACE:O.ALPHA_LETTER:function(J){return J>=13312&&J<=40959||J>=63744&&J<=64255}(J)?O.HAN_LETTER:function(J){return J>=12448&&J<=12543}(J)?O.KATAKANA_LETTER:function(J){return J>=12352&&J<=12447}(J)?O.HIRAGANA_LETTER:function(J){return J>=65376&&J<=65439}(J)?O.HALFWIDTH_KATAKANA_LETTER:O.ALPHA_LETTER};const O={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};r.CharacterType=O},(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFHistory=void 0,r.isDestArraysEqual=re,r.isDestHashesEqual=xe;var P=O(6),H=O(17);function U(){return document.location.hash}function xe(ce,L){return"string"==typeof ce&&"string"==typeof L&&(ce===L||(0,P.parseQueryString)(ce).get("nameddest")===L)}function re(ce,L){function J(we,ge){if(typeof we!=typeof ge||Array.isArray(we)||Array.isArray(ge))return!1;if(null!==we&&"object"==typeof we&&null!==ge){if(Object.keys(we).length!==Object.keys(ge).length)return!1;for(const fe in we)if(!J(we[fe],ge[fe]))return!1;return!0}return we===ge||Number.isNaN(we)&&Number.isNaN(ge)}if(!Array.isArray(ce)||!Array.isArray(L)||ce.length!==L.length)return!1;for(let we=0,ge=ce.length;we{this._isViewerInPresentationMode=we.state!==P.PresentationModeState.NORMAL}),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",we=>{this._isPagesLoaded=!!we.pagesCount},{once:!0})})}initialize({fingerprint:L,resetHistory:J=!1,updateUrl:we=!1}){if(!L||"string"!=typeof L)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const ge=""!==this._fingerprint&&this._fingerprint!==L;this._fingerprint=L,this._updateUrl=!0===we,this._initialized=!0,this._bindEvents();const fe=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=U(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(fe,!0)||J){const{hash:e,page:z,rotation:je}=this._parseCurrentHash(!0);return!e||ge||J?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:e,page:z,rotation:je},!0)}const Ce=fe.destination;this._updateInternalState(Ce,fe.uid,!0),void 0!==Ce.rotation&&(this._initialRotation=Ce.rotation),Ce.dest?(this._initialBookmark=JSON.stringify(Ce.dest),this._destination.page=null):Ce.hash?this._initialBookmark=Ce.hash:Ce.page&&(this._initialBookmark=`page=${Ce.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:L=null,explicitDest:J,pageNumber:we}){if(!this._initialized)return;if(L&&"string"!=typeof L)return void console.error(`PDFHistory.push: "${L}" is not a valid namedDest parameter.`);if(!Array.isArray(J))return void console.error(`PDFHistory.push: "${J}" is not a valid explicitDest parameter.`);if(!this._isValidPage(we)&&(null!==we||this._destination))return void console.error(`PDFHistory.push: "${we}" is not a valid pageNumber parameter.`);const ge=L||JSON.stringify(J);if(!ge)return;let fe=!1;if(this._destination&&(xe(this._destination.hash,ge)||re(this._destination.dest,J))){if(this._destination.page)return;fe=!0}this._popStateInProgress&&!fe||(this._pushOrReplaceState({dest:J,hash:ge,page:we,rotation:this.linkService.rotation},fe),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(L){var J;if(this._initialized){if(!this._isValidPage(L))return void console.error(`PDFHistory.pushPage: "${L}" is not a valid page number.`);(null==(J=this._destination)?void 0:J.page)!==L&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${L}`,page:L,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const L=window.history.state;this._isValidState(L)&&L.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const L=window.history.state;this._isValidState(L)&&L.uid0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(L,J=!1){const we=J||!this._destination,ge={fingerprint:this._fingerprint,uid:we?this._uid:this._uid+1,destination:L};let fe;if(this._updateInternalState(L,ge.uid),this._updateUrl&&(null==L?void 0:L.hash)){const Ce=document.location.href.split("#")[0];Ce.startsWith("file://")||(fe=`${Ce}#${L.hash}`)}we?window.history.replaceState(ge,"",fe):window.history.pushState(ge,"",fe)}_tryPushCurrentPosition(L=!1){if(!this._position)return;let J=this._position;if(L&&(J=Object.assign(Object.create(null),this._position),J.temporary=!0),!this._destination)return void this._pushOrReplaceState(J);if(this._destination.temporary)return void this._pushOrReplaceState(J,!0);if(this._destination.hash===J.hash||!this._destination.page&&this._numPositionUpdates<=50)return;let we=!1;if(this._destination.page>=J.first&&this._destination.page<=J.page){if(void 0!==this._destination.dest||!this._destination.first)return;we=!0}this._pushOrReplaceState(J,we)}_isValidPage(L){return Number.isInteger(L)&&L>0&&L<=this.linkService.pagesCount}_isValidState(L,J=!1){if(!L)return!1;if(L.fingerprint!==this._fingerprint){if(!J)return!1;{if("string"!=typeof L.fingerprint||L.fingerprint.length!==this._fingerprint.length)return!1;const[we]=performance.getEntriesByType("navigation");if("reload"!==(null==we?void 0:we.type))return!1}}return!(!Number.isInteger(L.uid)||L.uid<0||null===L.destination||"object"!=typeof L.destination)}_updateInternalState(L,J,we=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),we&&(null==L?void 0:L.temporary)&&delete L.temporary,this._destination=L,this._uid=J,this._maxUid=Math.max(this._maxUid,J),this._numPositionUpdates=0}_parseCurrentHash(L=!1){const J=unescape(U()).substring(1),we=(0,P.parseQueryString)(J),ge=we.get("nameddest")||"";let fe=0|we.get("page");return(!this._isValidPage(fe)||L&&ge.length>0)&&(fe=null),{hash:J,page:fe,rotation:this.linkService.rotation}}_updateViewarea({location:L}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?`page=${L.pageNumber}`:L.pdfOpenParams.substring(1),page:this.linkService.page,first:L.pageNumber,rotation:L.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},1e3))}_popState({state:L}){const J=U(),we=this._currentHash!==J;if(this._currentHash=J,!L){this._uid++;const{hash:fe,page:Ce,rotation:e}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:fe,page:Ce,rotation:e},!0)}if(!this._isValidState(L))return;this._popStateInProgress=!0,we&&(this._blockHashChange++,(0,H.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--}));const ge=L.destination;this._updateInternalState(ge,L.uid,!0),(0,P.isValidRotation)(ge.rotation)&&(this.linkService.rotation=ge.rotation),ge.dest?this.linkService.goToDestination(ge.dest):ge.hash?this.linkService.setHash(ge.hash):ge.page&&(this.linkService.page=ge.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFScriptingManager=void 0;var P=O(6),H=O(3);r.PDFScriptingManager=class{constructor({eventBus:x,sandboxBundleSrc:U=null,scriptingFactory:le=null,docPropertiesLookup:xe=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=x,this._sandboxBundleSrc=U,this._scriptingFactory=le,this._docPropertiesLookup=xe,this._scriptingFactory||window.addEventListener("updatefromsandbox",re=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:re.detail})})}setViewer(x){this._pdfViewer=x}setDocument(x){var U=this;return a(function*(){var ce;if(U._pdfDocument&&(yield U._destroyScripting()),U._pdfDocument=x,!x)return;const[le,xe,re]=yield Promise.all([x.getFieldObjects(),x.getCalculationOrderIds(),x.getJSActions()]);if(le||re){if(x===U._pdfDocument){try{U._scripting=U._createScripting()}catch(L){return console.error(`PDFScriptingManager.setDocument: "${null==L?void 0:L.message}".`),void(yield U._destroyScripting())}U._internalEvents.set("updatefromsandbox",L=>{(null==L?void 0:L.source)===window&&U._updateFromSandbox(L.detail)}),U._internalEvents.set("dispatcheventinsandbox",L=>{var J;null==(J=U._scripting)||J.dispatchEventInSandbox(L.detail)}),U._internalEvents.set("pagechanging",({pageNumber:L,previous:J})=>{L!==J&&(U._dispatchPageClose(J),U._dispatchPageOpen(L))}),U._internalEvents.set("pagerendered",({pageNumber:L})=>{!U._pageOpenPending.has(L)||L===U._pdfViewer.currentPageNumber&&U._dispatchPageOpen(L)}),U._internalEvents.set("pagesdestroy",function(){var L=a(function*(J){var we,ge;yield U._dispatchPageClose(U._pdfViewer.currentPageNumber),yield null==(we=U._scripting)?void 0:we.dispatchEventInSandbox({id:"doc",name:"WillClose"}),null==(ge=U._closeCapability)||ge.resolve()});return function(J){return L.apply(this,arguments)}}()),U._domEvents.set("mousedown",L=>{U._mouseState.isDown=!0}),U._domEvents.set("mouseup",L=>{U._mouseState.isDown=!1});for(const[L,J]of U._internalEvents)U._eventBus._on(L,J);for(const[L,J]of U._domEvents)window.addEventListener(L,J);try{const L=yield U._getDocProperties();if(x!==U._pdfDocument)return;yield U._scripting.createSandbox({objects:le,calculationOrder:xe,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:lS(aS({},L),{actions:re})}),U._eventBus.dispatch("sandboxcreated",{source:U})}catch(L){return console.error(`PDFScriptingManager.setDocument: "${null==L?void 0:L.message}".`),void(yield U._destroyScripting())}yield null==(ce=U._scripting)?void 0:ce.dispatchEventInSandbox({id:"doc",name:"Open"}),yield U._dispatchPageOpen(U._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{x===U._pdfDocument&&(U._ready=!0)})}}else yield U._destroyScripting()})()}dispatchWillSave(x){var U=this;return a(function*(){var le;return null==(le=U._scripting)?void 0:le.dispatchEventInSandbox({id:"doc",name:"WillSave"})})()}dispatchDidSave(x){var U=this;return a(function*(){var le;return null==(le=U._scripting)?void 0:le.dispatchEventInSandbox({id:"doc",name:"DidSave"})})()}dispatchWillPrint(x){var U=this;return a(function*(){var le;return null==(le=U._scripting)?void 0:le.dispatchEventInSandbox({id:"doc",name:"WillPrint"})})()}dispatchDidPrint(x){var U=this;return a(function*(){var le;return null==(le=U._scripting)?void 0:le.dispatchEventInSandbox({id:"doc",name:"DidPrint"})})()}get mouseState(){return this._mouseState}get destroyPromise(){var x;return(null==(x=this._destroyCapability)?void 0:x.promise)||null}get ready(){return this._ready}get _internalEvents(){return(0,H.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,H.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,H.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,H.shadow)(this,"_visitedPages",new Map)}_updateFromSandbox(x){var U=this;return a(function*(){var we;const le=U._pdfViewer.isInPresentationMode||U._pdfViewer.isChangingPresentationMode,{id:xe,siblings:re,command:ce,value:L}=x;if(!xe){switch(ce){case"clear":console.clear();break;case"error":console.error(L);break;case"layout":if(le)return;const ge=(0,P.apiPageLayoutToViewerModes)(L);U._pdfViewer.spreadMode=ge.spreadMode;break;case"page-num":U._pdfViewer.currentPageNumber=L+1;break;case"print":yield U._pdfViewer.pagesPromise,U._eventBus.dispatch("print",{source:U});break;case"println":console.log(L);break;case"zoom":if(le)return;U._pdfViewer.currentScaleValue=L;break;case"SaveAs":U._eventBus.dispatch("save",{source:U});break;case"FirstPage":U._pdfViewer.currentPageNumber=1;break;case"LastPage":U._pdfViewer.currentPageNumber=U._pdfViewer.pagesCount;break;case"NextPage":U._pdfViewer.nextPage();break;case"PrevPage":U._pdfViewer.previousPage();break;case"ZoomViewIn":if(le)return;U._pdfViewer.increaseScale();break;case"ZoomViewOut":if(le)return;U._pdfViewer.decreaseScale()}return}if(le&&x.focus)return;delete x.id,delete x.siblings;const J=re?[xe,...re]:[xe];for(const ge of J){const fe=document.getElementById(ge);fe?fe.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:x})):null==(we=U._pdfDocument)||we.annotationStorage.setValue(ge,x)}})()}_dispatchPageOpen(x,U=!1){var le=this;return a(function*(){const xe=le._pdfDocument,re=le._visitedPages;if(U&&(le._closeCapability=(0,H.createPromiseCapability)()),!le._closeCapability)return;const ce=le._pdfViewer.getPageView(x-1);if((null==ce?void 0:ce.renderingState)!==P.RenderingStates.FINISHED)return void le._pageOpenPending.add(x);le._pageOpenPending.delete(x);const L=a(function*(){var we,ge;const J=yield re.has(x)?null:null==(we=ce.pdfPage)?void 0:we.getJSActions();xe===le._pdfDocument&&(yield null==(ge=le._scripting)?void 0:ge.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:x,actions:J}))})();re.set(x,L)})()}_dispatchPageClose(x){var U=this;return a(function*(){var ce;const le=U._pdfDocument,xe=U._visitedPages;if(!U._closeCapability||U._pageOpenPending.has(x))return;const re=xe.get(x);!re||(xe.set(x,null),yield re,le===U._pdfDocument&&(yield null==(ce=U._scripting)?void 0:ce.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:x})))})()}_getDocProperties(){var x=this;return a(function*(){if(x._docPropertiesLookup)return x._docPropertiesLookup(x._pdfDocument);const{docPropertiesLookup:U}=O(24);return U(x._pdfDocument)})()}_createScripting(){if(this._destroyCapability=(0,H.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:x}=O(24);return new x(this._sandboxBundleSrc)}_destroyScripting(){var x=this;return a(function*(){var U,le;if(!x._scripting)return x._pdfDocument=null,void(null==(U=x._destroyCapability)||U.resolve());x._closeCapability&&(yield Promise.race([x._closeCapability.promise,new Promise(xe=>{setTimeout(xe,1e3)})]).catch(xe=>{}),x._closeCapability=null),x._pdfDocument=null;try{yield x._scripting.destroySandbox()}catch(xe){}for(const[xe,re]of x._internalEvents)x._eventBus._off(xe,re);x._internalEvents.clear();for(const[xe,re]of x._domEvents)window.removeEventListener(xe,re);x._domEvents.clear(),x._pageOpenPending.clear(),x._visitedPages.clear(),x._scripting=null,delete x._mouseState.isDown,x._ready=!1,null==(le=x._destroyCapability)||le.resolve()})()}}},(K,r,O)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.GenericScripting=void 0,r.docPropertiesLookup=function(x){return E.apply(this,arguments)};var P=O(3);function E(){return(E=a(function*(x){const le="".split("#")[0];let{info:xe,metadata:re,contentDispositionFilename:ce,contentLength:L}=yield x.getMetadata();if(!L){const{length:J}=yield x.getDownloadInfo();L=J}return lS(aS({},xe),{baseURL:le,filesize:L,filename:ce||(0,P.getPdfFilenameFromUrl)(""),metadata:null==re?void 0:re.getRaw(),authors:null==re?void 0:re.get("dc:creator"),numPages:x.numPages,URL:""})})).apply(this,arguments)}r.GenericScripting=class{constructor(U){this._ready=(0,P.loadScript)(U,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}createSandbox(U){var le=this;return a(function*(){(yield le._ready).create(U)})()}dispatchEventInSandbox(U){var le=this;return a(function*(){const xe=yield le._ready;setTimeout(()=>xe.dispatchEvent(U),0)})()}destroySandbox(){var U=this;return a(function*(){(yield U._ready).nukeSandbox()})()}}}],N={};function ze(K){var r=N[K];if(void 0!==r)return r.exports;var O=N[K]={exports:{}};return C[K](O,O.exports,ze),O.exports}var p={};return(()=>{var K=p;Object.defineProperty(K,"__esModule",{value:!0}),Object.defineProperty(K,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return E.AnnotationLayerBuilder}}),Object.defineProperty(K,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return r.DefaultAnnotationLayerFactory}}),Object.defineProperty(K,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return r.DefaultStructTreeLayerFactory}}),Object.defineProperty(K,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return r.DefaultTextLayerFactory}}),Object.defineProperty(K,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return r.DefaultXfaLayerFactory}}),Object.defineProperty(K,"DownloadManager",{enumerable:!0,get:function(){return ee.DownloadManager}}),Object.defineProperty(K,"EventBus",{enumerable:!0,get:function(){return x.EventBus}}),Object.defineProperty(K,"GenericL10n",{enumerable:!0,get:function(){return U.GenericL10n}}),Object.defineProperty(K,"LinkTarget",{enumerable:!0,get:function(){return O.LinkTarget}}),Object.defineProperty(K,"NullL10n",{enumerable:!0,get:function(){return le.NullL10n}}),Object.defineProperty(K,"PDFFindController",{enumerable:!0,get:function(){return xe.PDFFindController}}),Object.defineProperty(K,"PDFHistory",{enumerable:!0,get:function(){return re.PDFHistory}}),Object.defineProperty(K,"PDFLinkService",{enumerable:!0,get:function(){return O.PDFLinkService}}),Object.defineProperty(K,"PDFPageView",{enumerable:!0,get:function(){return ce.PDFPageView}}),Object.defineProperty(K,"PDFScriptingManager",{enumerable:!0,get:function(){return L.PDFScriptingManager}}),Object.defineProperty(K,"PDFSinglePageViewer",{enumerable:!0,get:function(){return H.PDFSinglePageViewer}}),Object.defineProperty(K,"PDFViewer",{enumerable:!0,get:function(){return H.PDFViewer}}),Object.defineProperty(K,"ProgressBar",{enumerable:!0,get:function(){return P.ProgressBar}}),Object.defineProperty(K,"SimpleLinkService",{enumerable:!0,get:function(){return O.SimpleLinkService}}),Object.defineProperty(K,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return J.StructTreeLayerBuilder}}),Object.defineProperty(K,"TextLayerBuilder",{enumerable:!0,get:function(){return we.TextLayerBuilder}}),Object.defineProperty(K,"XfaLayerBuilder",{enumerable:!0,get:function(){return ge.XfaLayerBuilder}}),Object.defineProperty(K,"parseQueryString",{enumerable:!0,get:function(){return P.parseQueryString}});var r=ze(1),O=ze(5),P=ze(6),H=ze(10),E=ze(2),ee=ze(16),x=ze(17),U=ze(18),le=ze(4),xe=ze(20),re=ze(22),ce=ze(12),L=ze(23),J=ze(7),we=ze(8),ge=ze(9)})(),p})()},1135:(St,oe,S)=>{"use strict";S.d(oe,{X:()=>C});var a=S(7579);class C extends a.x{constructor(ze){super(),this._value=ze}get value(){return this.getValue()}_subscribe(ze){const p=super._subscribe(ze);return!p.closed&&ze.next(this._value),p}getValue(){const{hasError:ze,thrownError:p,_value:K}=this;if(ze)throw p;return this._throwIfClosed(),K}next(ze){super.next(this._value=ze)}}},8306:(St,oe,S)=>{"use strict";S.d(oe,{y:()=>H});var a=S(930),C=S(727),N=S(8822),ze=S(4671);var r=S(2416),O=S(576),P=S(2806);let H=(()=>{class U{constructor(xe){xe&&(this._subscribe=xe)}lift(xe){const re=new U;return re.source=this,re.operator=xe,re}subscribe(xe,re,ce){const L=function(U){return U&&U instanceof a.Lv||function(U){return U&&(0,O.m)(U.next)&&(0,O.m)(U.error)&&(0,O.m)(U.complete)}(U)&&(0,C.Nn)(U)}(xe)?xe:new a.Hp(xe,re,ce);return(0,P.x)(()=>{const{operator:J,source:we}=this;L.add(J?J.call(L,we):we?this._subscribe(L):this._trySubscribe(L))}),L}_trySubscribe(xe){try{return this._subscribe(xe)}catch(re){xe.error(re)}}forEach(xe,re){return new(re=E(re))((ce,L)=>{const J=new a.Hp({next:we=>{try{xe(we)}catch(ge){L(ge),J.unsubscribe()}},error:L,complete:ce});this.subscribe(J)})}_subscribe(xe){var re;return null===(re=this.source)||void 0===re?void 0:re.subscribe(xe)}[N.L](){return this}pipe(...xe){return function(U){return 0===U.length?ze.y:1===U.length?U[0]:function(xe){return U.reduce((re,ce)=>ce(re),xe)}}(xe)(this)}toPromise(xe){return new(xe=E(xe))((re,ce)=>{let L;this.subscribe(J=>L=J,J=>ce(J),()=>re(L))})}}return U.create=le=>new U(le),U})();function E(U){var le;return null!==(le=null!=U?U:r.v.Promise)&&void 0!==le?le:Promise}},4707:(St,oe,S)=>{"use strict";S.d(oe,{t:()=>N});var a=S(7579),C=S(6063);class N extends a.x{constructor(p=1/0,K=1/0,r=C.l){super(),this._bufferSize=p,this._windowTime=K,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=K===1/0,this._bufferSize=Math.max(1,p),this._windowTime=Math.max(1,K)}next(p){const{isStopped:K,_buffer:r,_infiniteTimeWindow:O,_timestampProvider:P,_windowTime:H}=this;K||(r.push(p),!O&&r.push(P.now()+H)),this._trimBuffer(),super.next(p)}_subscribe(p){this._throwIfClosed(),this._trimBuffer();const K=this._innerSubscribe(p),{_infiniteTimeWindow:r,_buffer:O}=this,P=O.slice();for(let H=0;H{"use strict";S.d(oe,{x:()=>r});var a=S(8306),C=S(727);const ze=(0,S(3888).d)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var p=S(8737),K=S(2806);let r=(()=>{class P extends a.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(E){const ee=new O(this,this);return ee.operator=E,ee}_throwIfClosed(){if(this.closed)throw new ze}next(E){(0,K.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const ee=this.observers.slice();for(const x of ee)x.next(E)}})}error(E){(0,K.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=E;const{observers:ee}=this;for(;ee.length;)ee.shift().error(E)}})}complete(){(0,K.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:E}=this;for(;E.length;)E.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var E;return(null===(E=this.observers)||void 0===E?void 0:E.length)>0}_trySubscribe(E){return this._throwIfClosed(),super._trySubscribe(E)}_subscribe(E){return this._throwIfClosed(),this._checkFinalizedStatuses(E),this._innerSubscribe(E)}_innerSubscribe(E){const{hasError:ee,isStopped:x,observers:U}=this;return ee||x?C.Lc:(U.push(E),new C.w0(()=>(0,p.P)(U,E)))}_checkFinalizedStatuses(E){const{hasError:ee,thrownError:x,isStopped:U}=this;ee?E.error(x):U&&E.complete()}asObservable(){const E=new a.y;return E.source=this,E}}return P.create=(H,E)=>new O(H,E),P})();class O extends r{constructor(H,E){super(),this.destination=H,this.source=E}next(H){var E,ee;null===(ee=null===(E=this.destination)||void 0===E?void 0:E.next)||void 0===ee||ee.call(E,H)}error(H){var E,ee;null===(ee=null===(E=this.destination)||void 0===E?void 0:E.error)||void 0===ee||ee.call(E,H)}complete(){var H,E;null===(E=null===(H=this.destination)||void 0===H?void 0:H.complete)||void 0===E||E.call(H)}_subscribe(H){var E,ee;return null!==(ee=null===(E=this.source)||void 0===E?void 0:E.subscribe(H))&&void 0!==ee?ee:C.Lc}}},930:(St,oe,S)=>{"use strict";S.d(oe,{Hp:()=>x,Lv:()=>ee});var a=S(576),C=S(727),N=S(2416),ze=S(7849),p=S(5032);const K=P("C",void 0,void 0);function P(ce,L,J){return{kind:ce,value:L,error:J}}var H=S(3410),E=S(2806);class ee extends C.w0{constructor(L){super(),this.isStopped=!1,L?(this.destination=L,(0,C.Nn)(L)&&L.add(this)):this.destination=re}static create(L,J,we){return new x(L,J,we)}next(L){this.isStopped?xe(P("N",L,void 0),this):this._next(L)}error(L){this.isStopped?xe(P("E",void 0,L),this):(this.isStopped=!0,this._error(L))}complete(){this.isStopped?xe(K,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(L){this.destination.next(L)}_error(L){try{this.destination.error(L)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class x extends ee{constructor(L,J,we){let ge;if(super(),(0,a.m)(L))ge=L;else if(L){let fe;({next:ge,error:J,complete:we}=L),this&&N.v.useDeprecatedNextContext?(fe=Object.create(L),fe.unsubscribe=()=>this.unsubscribe()):fe=L,ge=null==ge?void 0:ge.bind(fe),J=null==J?void 0:J.bind(fe),we=null==we?void 0:we.bind(fe)}this.destination={next:ge?U(ge):p.Z,error:U(null!=J?J:le),complete:we?U(we):p.Z}}}function U(ce,L){return(...J)=>{try{ce(...J)}catch(we){N.v.useDeprecatedSynchronousErrorHandling?(0,E.O)(we):(0,ze.h)(we)}}}function le(ce){throw ce}function xe(ce,L){const{onStoppedNotification:J}=N.v;J&&H.z.setTimeout(()=>J(ce,L))}const re={closed:!0,next:p.Z,error:le,complete:p.Z}},727:(St,oe,S)=>{"use strict";S.d(oe,{Lc:()=>K,w0:()=>p,Nn:()=>r});var a=S(576);const N=(0,S(3888).d)(P=>function(E){P(this),this.message=E?`${E.length} errors occurred during unsubscription:\n${E.map((ee,x)=>`${x+1}) ${ee.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=E});var ze=S(8737);class p{constructor(H){this.initialTeardown=H,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let H;if(!this.closed){this.closed=!0;const{_parentage:E}=this;if(E)if(this._parentage=null,Array.isArray(E))for(const U of E)U.remove(this);else E.remove(this);const{initialTeardown:ee}=this;if((0,a.m)(ee))try{ee()}catch(U){H=U instanceof N?U.errors:[U]}const{_teardowns:x}=this;if(x){this._teardowns=null;for(const U of x)try{O(U)}catch(le){H=null!=H?H:[],le instanceof N?H=[...H,...le.errors]:H.push(le)}}if(H)throw new N(H)}}add(H){var E;if(H&&H!==this)if(this.closed)O(H);else{if(H instanceof p){if(H.closed||H._hasParent(this))return;H._addParent(this)}(this._teardowns=null!==(E=this._teardowns)&&void 0!==E?E:[]).push(H)}}_hasParent(H){const{_parentage:E}=this;return E===H||Array.isArray(E)&&E.includes(H)}_addParent(H){const{_parentage:E}=this;this._parentage=Array.isArray(E)?(E.push(H),E):E?[E,H]:H}_removeParent(H){const{_parentage:E}=this;E===H?this._parentage=null:Array.isArray(E)&&(0,ze.P)(E,H)}remove(H){const{_teardowns:E}=this;E&&(0,ze.P)(E,H),H instanceof p&&H._removeParent(this)}}p.EMPTY=(()=>{const P=new p;return P.closed=!0,P})();const K=p.EMPTY;function r(P){return P instanceof p||P&&"closed"in P&&(0,a.m)(P.remove)&&(0,a.m)(P.add)&&(0,a.m)(P.unsubscribe)}function O(P){(0,a.m)(P)?P():P.unsubscribe()}},2416:(St,oe,S)=>{"use strict";S.d(oe,{v:()=>a});const a={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(St,oe,S)=>{"use strict";S.d(oe,{c:()=>K});var a=S(8306),C=S(727),N=S(8343),ze=S(5403),p=S(4482);class K extends a.y{constructor(O,P){super(),this.source=O,this.subjectFactory=P,this._subject=null,this._refCount=0,this._connection=null,(0,p.A)(O)&&(this.lift=O.lift)}_subscribe(O){return this.getSubject().subscribe(O)}getSubject(){const O=this._subject;return(!O||O.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:O}=this;this._subject=this._connection=null,null==O||O.unsubscribe()}connect(){let O=this._connection;if(!O){O=this._connection=new C.w0;const P=this.getSubject();O.add(this.source.subscribe(new ze.Q(P,void 0,()=>{this._teardown(),P.complete()},H=>{this._teardown(),P.error(H)},()=>this._teardown()))),O.closed&&(this._connection=null,O=C.w0.EMPTY)}return O}refCount(){return(0,N.x)()(this)}}},9841:(St,oe,S)=>{"use strict";S.d(oe,{a:()=>H});var a=S(8306),C=S(4742),N=S(8996),ze=S(4671),p=S(3268),K=S(3269),r=S(1810),O=S(5403),P=S(9672);function H(...x){const U=(0,K.yG)(x),le=(0,K.jO)(x),{args:xe,keys:re}=(0,C.D)(x);if(0===xe.length)return(0,N.D)([],U);const ce=new a.y(function(x,U,le=ze.y){return xe=>{ee(U,()=>{const{length:re}=x,ce=new Array(re);let L=re,J=re;for(let we=0;we{const ge=(0,N.D)(x[we],U);let fe=!1;ge.subscribe(new O.Q(xe,Ce=>{ce[we]=Ce,fe||(fe=!0,J--),J||xe.next(le(ce.slice()))},()=>{--L||xe.complete()}))},xe)},xe)}}(xe,U,re?L=>(0,r.n)(re,L):ze.y));return le?ce.pipe((0,p.Z)(le)):ce}function ee(x,U,le){x?(0,P.f)(le,x,U):U()}},7272:(St,oe,S)=>{"use strict";S.d(oe,{z:()=>p});var a=S(8189),N=S(3269),ze=S(8996);function p(...K){return(0,a.J)(1)((0,ze.D)(K,(0,N.yG)(K)))}},9770:(St,oe,S)=>{"use strict";S.d(oe,{P:()=>N});var a=S(8306),C=S(8421);function N(ze){return new a.y(p=>{(0,C.Xf)(ze()).subscribe(p)})}},515:(St,oe,S)=>{"use strict";S.d(oe,{E:()=>C});const C=new(S(8306).y)(p=>p.complete())},8996:(St,oe,S)=>{"use strict";S.d(oe,{D:()=>ge});var a=S(8421),C=S(5363),N=S(9468),K=S(8306),O=S(2202),P=S(576),H=S(9672);function ee(fe,Ce){if(!fe)throw new Error("Iterable cannot be null");return new K.y(e=>{(0,H.f)(e,Ce,()=>{const z=fe[Symbol.asyncIterator]();(0,H.f)(e,Ce,()=>{z.next().then(je=>{je.done?e.complete():e.next(je.value)})},0,!0)})})}var x=S(3670),U=S(8239),le=S(1144),xe=S(6495),re=S(2206),ce=S(4532),L=S(3260);function ge(fe,Ce){return Ce?function(fe,Ce){if(null!=fe){if((0,x.c)(fe))return function(fe,Ce){return(0,a.Xf)(fe).pipe((0,N.R)(Ce),(0,C.Q)(Ce))}(fe,Ce);if((0,le.z)(fe))return function(fe,Ce){return new K.y(e=>{let z=0;return Ce.schedule(function(){z===fe.length?e.complete():(e.next(fe[z++]),e.closed||this.schedule())})})}(fe,Ce);if((0,U.t)(fe))return function(fe,Ce){return(0,a.Xf)(fe).pipe((0,N.R)(Ce),(0,C.Q)(Ce))}(fe,Ce);if((0,re.D)(fe))return ee(fe,Ce);if((0,xe.T)(fe))return function(fe,Ce){return new K.y(e=>{let z;return(0,H.f)(e,Ce,()=>{z=fe[O.h](),(0,H.f)(e,Ce,()=>{let je,rt;try{({value:je,done:rt}=z.next())}catch(it){return void e.error(it)}rt?e.complete():e.next(je)},0,!0)}),()=>(0,P.m)(null==z?void 0:z.return)&&z.return()})}(fe,Ce);if((0,L.L)(fe))return function(fe,Ce){return ee((0,L.Q)(fe),Ce)}(fe,Ce)}throw(0,ce.z)(fe)}(fe,Ce):(0,a.Xf)(fe)}},4968:(St,oe,S)=>{"use strict";S.d(oe,{R:()=>H});var a=S(8421),C=S(8306),N=S(5577),ze=S(1144),p=S(576),K=S(3268);const r=["addListener","removeListener"],O=["addEventListener","removeEventListener"],P=["on","off"];function H(le,xe,re,ce){if((0,p.m)(re)&&(ce=re,re=void 0),ce)return H(le,xe,re).pipe((0,K.Z)(ce));const[L,J]=function(le){return(0,p.m)(le.addEventListener)&&(0,p.m)(le.removeEventListener)}(le)?O.map(we=>ge=>le[we](xe,ge,re)):function(le){return(0,p.m)(le.addListener)&&(0,p.m)(le.removeListener)}(le)?r.map(E(le,xe)):function(le){return(0,p.m)(le.on)&&(0,p.m)(le.off)}(le)?P.map(E(le,xe)):[];if(!L&&(0,ze.z)(le))return(0,N.z)(we=>H(we,xe,re))((0,a.Xf)(le));if(!L)throw new TypeError("Invalid event target");return new C.y(we=>{const ge=(...fe)=>we.next(1J(ge)})}function E(le,xe){return re=>ce=>le[re](xe,ce)}},8421:(St,oe,S)=>{"use strict";S.d(oe,{Xf:()=>x});var a=S(655),C=S(1144),N=S(8239),ze=S(8306),p=S(3670),K=S(2206),r=S(4532),O=S(6495),P=S(3260),H=S(576),E=S(7849),ee=S(8822);function x(we){if(we instanceof ze.y)return we;if(null!=we){if((0,p.c)(we))return function(we){return new ze.y(ge=>{const fe=we[ee.L]();if((0,H.m)(fe.subscribe))return fe.subscribe(ge);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,C.z)(we))return function(we){return new ze.y(ge=>{for(let fe=0;fe{we.then(fe=>{ge.closed||(ge.next(fe),ge.complete())},fe=>ge.error(fe)).then(null,E.h)})}(we);if((0,K.D)(we))return ce(we);if((0,O.T)(we))return function(we){return new ze.y(ge=>{for(const fe of we)if(ge.next(fe),ge.closed)return;ge.complete()})}(we);if((0,P.L)(we))return function(we){return ce((0,P.Q)(we))}(we)}throw(0,r.z)(we)}function ce(we){return new ze.y(ge=>{(function(we,ge){var fe,Ce,e,z;return(0,a.mG)(this,void 0,void 0,function*(){try{for(fe=(0,a.KL)(we);!(Ce=yield fe.next()).done;)if(ge.next(Ce.value),ge.closed)return}catch(je){e={error:je}}finally{try{Ce&&!Ce.done&&(z=fe.return)&&(yield z.call(fe))}finally{if(e)throw e.error}}ge.complete()})})(we,ge).catch(fe=>ge.error(fe))})}},7445:(St,oe,S)=>{"use strict";S.d(oe,{F:()=>N});var a=S(4986),C=S(2805);function N(ze=0,p=a.z){return ze<0&&(ze=0),(0,C.H)(ze,ze,p)}},6451:(St,oe,S)=>{"use strict";S.d(oe,{T:()=>K});var a=S(8189),C=S(8421),N=S(515),ze=S(3269),p=S(8996);function K(...r){const O=(0,ze.yG)(r),P=(0,ze._6)(r,1/0),H=r;return H.length?1===H.length?(0,C.Xf)(H[0]):(0,a.J)(P)((0,p.D)(H,O)):N.E}},9646:(St,oe,S)=>{"use strict";S.d(oe,{of:()=>N});var a=S(3269),C=S(8996);function N(...ze){const p=(0,a.yG)(ze);return(0,C.D)(ze,p)}},2843:(St,oe,S)=>{"use strict";S.d(oe,{_:()=>N});var a=S(8306),C=S(576);function N(ze,p){const K=(0,C.m)(ze)?ze:()=>ze,r=O=>O.error(K());return new a.y(p?O=>p.schedule(r,0,O):r)}},2805:(St,oe,S)=>{"use strict";S.d(oe,{H:()=>p});var a=S(8306),C=S(4986),N=S(3532),ze=S(1165);function p(K=0,r,O=C.P){let P=-1;return null!=r&&((0,N.K)(r)?O=r:P=r),new a.y(H=>{let E=(0,ze.q)(K)?+K-O.now():K;E<0&&(E=0);let ee=0;return O.schedule(function(){H.closed||(H.next(ee++),0<=P?this.schedule(void 0,P):H.complete())},E)})}},5403:(St,oe,S)=>{"use strict";S.d(oe,{Q:()=>C});var a=S(930);class C extends a.Lv{constructor(ze,p,K,r,O){super(ze),this.onFinalize=O,this._next=p?function(P){try{p(P)}catch(H){ze.error(H)}}:super._next,this._error=r?function(P){try{r(P)}catch(H){ze.error(H)}finally{this.unsubscribe()}}:super._error,this._complete=K?function(){try{K()}catch(P){ze.error(P)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ze;const{closed:p}=this;super.unsubscribe(),!p&&(null===(ze=this.onFinalize)||void 0===ze||ze.call(this))}}},3601:(St,oe,S)=>{"use strict";S.d(oe,{e:()=>r});var a=S(4986),C=S(4482),N=S(8421),ze=S(5403),K=S(2805);function r(O,P=a.P){return function(O){return(0,C.e)((P,H)=>{let E=!1,ee=null,x=null,U=!1;const le=()=>{if(null==x||x.unsubscribe(),x=null,E){E=!1;const re=ee;ee=null,H.next(re)}U&&H.complete()},xe=()=>{x=null,U&&H.complete()};P.subscribe(new ze.Q(H,re=>{E=!0,ee=re,x||(0,N.Xf)(O()).subscribe(x=new ze.Q(H,le,xe))},()=>{U=!0,(!E||!x||x.closed)&&H.complete()}))})}(()=>(0,K.H)(O,P))}},262:(St,oe,S)=>{"use strict";S.d(oe,{K:()=>ze});var a=S(8421),C=S(5403),N=S(4482);function ze(p){return(0,N.e)((K,r)=>{let H,O=null,P=!1;O=K.subscribe(new C.Q(r,void 0,void 0,E=>{H=(0,a.Xf)(p(E,ze(p)(K))),O?(O.unsubscribe(),O=null,H.subscribe(r)):P=!0})),P&&(O.unsubscribe(),O=null,H.subscribe(r))})}},4351:(St,oe,S)=>{"use strict";S.d(oe,{b:()=>N});var a=S(5577),C=S(576);function N(ze,p){return(0,C.m)(p)?(0,a.z)(ze,p,1):(0,a.z)(ze,1)}},8372:(St,oe,S)=>{"use strict";S.d(oe,{b:()=>ze});var a=S(4986),C=S(4482),N=S(5403);function ze(p,K=a.z){return(0,C.e)((r,O)=>{let P=null,H=null,E=null;const ee=()=>{if(P){P.unsubscribe(),P=null;const U=H;H=null,O.next(U)}};function x(){const U=E+p,le=K.now();if(le{H=U,E=K.now(),P||(P=K.schedule(x,p),O.add(P))},()=>{ee(),O.complete()},void 0,()=>{H=P=null}))})}},8537:(St,oe,S)=>{"use strict";S.d(oe,{g:()=>H});var a=S(4986),C=S(7272),N=S(5698),ze=S(8502),p=S(4004),r=S(5577);function O(E,ee){return ee?x=>(0,C.z)(ee.pipe((0,N.q)(1),(0,ze.l)()),x.pipe(O(E))):(0,r.z)((x,U)=>E(x,U).pipe((0,N.q)(1),function(E){return(0,p.U)(()=>E)}(x)))}var P=S(2805);function H(E,ee=a.z){const x=(0,P.H)(E,ee);return O(()=>x)}},1884:(St,oe,S)=>{"use strict";S.d(oe,{x:()=>ze});var a=S(4671),C=S(4482),N=S(5403);function ze(K,r=a.y){return K=null!=K?K:p,(0,C.e)((O,P)=>{let H,E=!0;O.subscribe(new N.Q(P,ee=>{const x=r(ee);(E||!K(H,x))&&(E=!1,H=x,P.next(ee))}))})}function p(K,r){return K===r}},9300:(St,oe,S)=>{"use strict";S.d(oe,{h:()=>N});var a=S(4482),C=S(5403);function N(ze,p){return(0,a.e)((K,r)=>{let O=0;K.subscribe(new C.Q(r,P=>ze.call(p,P,O++)&&r.next(P)))})}},8746:(St,oe,S)=>{"use strict";S.d(oe,{x:()=>C});var a=S(4482);function C(N){return(0,a.e)((ze,p)=>{try{ze.subscribe(p)}finally{p.add(N)}})}},8502:(St,oe,S)=>{"use strict";S.d(oe,{l:()=>ze});var a=S(4482),C=S(5403),N=S(5032);function ze(){return(0,a.e)((p,K)=>{p.subscribe(new C.Q(K,N.Z))})}},4004:(St,oe,S)=>{"use strict";S.d(oe,{U:()=>N});var a=S(4482),C=S(5403);function N(ze,p){return(0,a.e)((K,r)=>{let O=0;K.subscribe(new C.Q(r,P=>{r.next(ze.call(p,P,O++))}))})}},8189:(St,oe,S)=>{"use strict";S.d(oe,{J:()=>N});var a=S(5577),C=S(4671);function N(ze=1/0){return(0,a.z)(C.y,ze)}},5577:(St,oe,S)=>{"use strict";S.d(oe,{z:()=>O});var a=S(4004),C=S(8421),N=S(4482),p=(S(9672),S(5403)),r=S(576);function O(P,H,E=1/0){return(0,r.m)(H)?O((ee,x)=>(0,a.U)((U,le)=>H(ee,U,x,le))((0,C.Xf)(P(ee,x))),E):("number"==typeof H&&(E=H),(0,N.e)((ee,x)=>function(P,H,E,ee,x,U,le,xe){const re=[];let ce=0,L=0,J=!1;const we=()=>{J&&!re.length&&!ce&&H.complete()},ge=Ce=>ce{ce++;let e=!1;(0,C.Xf)(E(Ce,L++)).subscribe(new p.Q(H,z=>{H.next(z)},()=>{e=!0},void 0,()=>{if(e)try{for(ce--;re.length&&ce{J=!0,we()})),()=>{}}(ee,x,P,E)))}},5363:(St,oe,S)=>{"use strict";S.d(oe,{Q:()=>ze});var a=S(9672),C=S(4482),N=S(5403);function ze(p,K=0){return(0,C.e)((r,O)=>{r.subscribe(new N.Q(O,P=>(0,a.f)(O,p,()=>O.next(P),K),()=>(0,a.f)(O,p,()=>O.complete(),K),P=>(0,a.f)(O,p,()=>O.error(P),K)))})}},8343:(St,oe,S)=>{"use strict";S.d(oe,{x:()=>N});var a=S(4482),C=S(5403);function N(){return(0,a.e)((ze,p)=>{let K=null;ze._refCount++;const r=new C.Q(p,void 0,void 0,void 0,()=>{if(!ze||ze._refCount<=0||0<--ze._refCount)return void(K=null);const O=ze._connection,P=K;K=null,O&&(!P||O===P)&&O.unsubscribe(),p.unsubscribe()});ze.subscribe(r),r.closed||(K=ze.connect())})}},5026:(St,oe,S)=>{"use strict";S.d(oe,{R:()=>ze});var a=S(4482),C=S(5403);function N(p,K,r,O,P){return(H,E)=>{let ee=r,x=K,U=0;H.subscribe(new C.Q(E,le=>{const xe=U++;x=ee?p(x,le,xe):(ee=!0,le),O&&E.next(x)},P&&(()=>{ee&&E.next(x),E.complete()})))}}function ze(p,K){return(0,a.e)(N(p,K,arguments.length>=2,!0))}},3099:(St,oe,S)=>{"use strict";S.d(oe,{B:()=>K});var a=S(8996),C=S(5698),N=S(7579),ze=S(930),p=S(4482);function K(O={}){const{connector:P=(()=>new N.x),resetOnError:H=!0,resetOnComplete:E=!0,resetOnRefCountZero:ee=!0}=O;return x=>{let U=null,le=null,xe=null,re=0,ce=!1,L=!1;const J=()=>{null==le||le.unsubscribe(),le=null},we=()=>{J(),U=xe=null,ce=L=!1},ge=()=>{const fe=U;we(),null==fe||fe.unsubscribe()};return(0,p.e)((fe,Ce)=>{re++,!L&&!ce&&J();const e=xe=null!=xe?xe:P();Ce.add(()=>{re--,0===re&&!L&&!ce&&(le=r(ge,ee))}),e.subscribe(Ce),U||(U=new ze.Hp({next:z=>e.next(z),error:z=>{L=!0,J(),le=r(we,H,z),e.error(z)},complete:()=>{ce=!0,J(),le=r(we,E),e.complete()}}),(0,a.D)(fe).subscribe(U))})(x)}}function r(O,P,...H){return!0===P?(O(),null):!1===P?null:P(...H).pipe((0,C.q)(1)).subscribe(()=>O())}},5684:(St,oe,S)=>{"use strict";S.d(oe,{T:()=>C});var a=S(9300);function C(N){return(0,a.h)((ze,p)=>N<=p)}},8675:(St,oe,S)=>{"use strict";S.d(oe,{O:()=>ze});var a=S(7272),C=S(3269),N=S(4482);function ze(...p){const K=(0,C.yG)(p);return(0,N.e)((r,O)=>{(K?(0,a.z)(p,r,K):(0,a.z)(p,r)).subscribe(O)})}},9468:(St,oe,S)=>{"use strict";S.d(oe,{R:()=>C});var a=S(4482);function C(N,ze=0){return(0,a.e)((p,K)=>{K.add(N.schedule(()=>p.subscribe(K),ze))})}},3900:(St,oe,S)=>{"use strict";S.d(oe,{w:()=>ze});var a=S(8421),C=S(4482),N=S(5403);function ze(p,K){return(0,C.e)((r,O)=>{let P=null,H=0,E=!1;const ee=()=>E&&!P&&O.complete();r.subscribe(new N.Q(O,x=>{null==P||P.unsubscribe();let U=0;const le=H++;(0,a.Xf)(p(x,le)).subscribe(P=new N.Q(O,xe=>O.next(K?K(x,xe,le,U++):xe),()=>{P=null,ee()}))},()=>{E=!0,ee()}))})}},5698:(St,oe,S)=>{"use strict";S.d(oe,{q:()=>ze});var a=S(515),C=S(4482),N=S(5403);function ze(p){return p<=0?()=>a.E:(0,C.e)((K,r)=>{let O=0;K.subscribe(new N.Q(r,P=>{++O<=p&&(r.next(P),p<=O&&r.complete())}))})}},2722:(St,oe,S)=>{"use strict";S.d(oe,{R:()=>p});var a=S(4482),C=S(5403),N=S(8421),ze=S(5032);function p(K){return(0,a.e)((r,O)=>{(0,N.Xf)(K).subscribe(new C.Q(O,()=>O.complete(),ze.Z)),!O.closed&&r.subscribe(O)})}},8505:(St,oe,S)=>{"use strict";S.d(oe,{b:()=>p});var a=S(576),C=S(4482),N=S(5403),ze=S(4671);function p(K,r,O){const P=(0,a.m)(K)||r||O?{next:K,error:r,complete:O}:K;return P?(0,C.e)((H,E)=>{var ee;null===(ee=P.subscribe)||void 0===ee||ee.call(P);let x=!0;H.subscribe(new N.Q(E,U=>{var le;null===(le=P.next)||void 0===le||le.call(P,U),E.next(U)},()=>{var U;x=!1,null===(U=P.complete)||void 0===U||U.call(P),E.complete()},U=>{var le;x=!1,null===(le=P.error)||void 0===le||le.call(P,U),E.error(U)},()=>{var U,le;x&&(null===(U=P.unsubscribe)||void 0===U||U.call(P)),null===(le=P.finalize)||void 0===le||le.call(P)}))}):ze.y}},3239:(St,oe,S)=>{"use strict";S.d(oe,{p:()=>O});var a=S(4986),C=S(4482),N=S(5403),ze=S(8421);const p={leading:!0,trailing:!1};var r=S(2805);function O(P,H=a.z,E=p){const ee=(0,r.H)(P,H);return function(P,H=p){return(0,C.e)((E,ee)=>{const{leading:x,trailing:U}=H;let le=!1,xe=null,re=null,ce=!1;const L=()=>{null==re||re.unsubscribe(),re=null,U&&(ge(),ce&&ee.complete())},J=()=>{re=null,ce&&ee.complete()},we=fe=>re=(0,ze.Xf)(P(fe)).subscribe(new N.Q(ee,L,J)),ge=()=>{if(le){le=!1;const fe=xe;xe=null,ee.next(fe),!ce&&we(fe)}};E.subscribe(new N.Q(ee,fe=>{le=!0,xe=fe,(!re||re.closed)&&(x?ge():we(fe))},()=>{ce=!0,(!(U&&le&&re)||re.closed)&&ee.complete()}))})}(()=>ee,E)}},7414:(St,oe,S)=>{"use strict";S.d(oe,{V:()=>P});var a=S(4986),C=S(1165),N=S(4482),ze=S(8421),p=S(3888),K=S(5403),r=S(9672);const O=(0,p.d)(E=>function(x=null){E(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=x});function P(E,ee){const{first:x,each:U,with:le=H,scheduler:xe=(null!=ee?ee:a.z),meta:re=null}=(0,C.q)(E)?{first:E}:"number"==typeof E?{each:E}:E;if(null==x&&null==U)throw new TypeError("No timeout provided.");return(0,N.e)((ce,L)=>{let J,we,ge=null,fe=0;const Ce=e=>{we=(0,r.f)(L,xe,()=>{try{J.unsubscribe(),(0,ze.Xf)(le({meta:re,lastValue:ge,seen:fe})).subscribe(L)}catch(z){L.error(z)}},e)};J=ce.subscribe(new K.Q(L,e=>{null==we||we.unsubscribe(),fe++,L.next(ge=e),U>0&&Ce(U)},void 0,void 0,()=>{(null==we?void 0:we.closed)||null==we||we.unsubscribe(),ge=null})),Ce(null!=x?"number"==typeof x?x:+x-xe.now():U)})}function H(E){throw new O(E)}},1365:(St,oe,S)=>{"use strict";S.d(oe,{M:()=>r});var a=S(4482),C=S(5403),N=S(8421),ze=S(4671),p=S(5032),K=S(3269);function r(...O){const P=(0,K.jO)(O);return(0,a.e)((H,E)=>{const ee=O.length,x=new Array(ee);let U=O.map(()=>!1),le=!1;for(let xe=0;xe{x[xe]=re,!le&&!U[xe]&&(U[xe]=!0,(le=U.every(ze.y))&&(U=null))},p.Z));H.subscribe(new C.Q(E,xe=>{if(le){const re=[xe,...x];E.next(P?P(...re):re)}}))})}},4408:(St,oe,S)=>{"use strict";S.d(oe,{o:()=>p});var a=S(727);class C extends a.w0{constructor(r,O){super()}schedule(r,O=0){return this}}const N={setInterval(...K){const{delegate:r}=N;return((null==r?void 0:r.setInterval)||setInterval)(...K)},clearInterval(K){const{delegate:r}=N;return((null==r?void 0:r.clearInterval)||clearInterval)(K)},delegate:void 0};var ze=S(8737);class p extends C{constructor(r,O){super(r,O),this.scheduler=r,this.work=O,this.pending=!1}schedule(r,O=0){if(this.closed)return this;this.state=r;const P=this.id,H=this.scheduler;return null!=P&&(this.id=this.recycleAsyncId(H,P,O)),this.pending=!0,this.delay=O,this.id=this.id||this.requestAsyncId(H,this.id,O),this}requestAsyncId(r,O,P=0){return N.setInterval(r.flush.bind(r,this),P)}recycleAsyncId(r,O,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return O;N.clearInterval(O)}execute(r,O){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(r,O);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(r,O){let H,P=!1;try{this.work(r)}catch(E){P=!0,H=E||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),H}unsubscribe(){if(!this.closed){const{id:r,scheduler:O}=this,{actions:P}=O;this.work=this.state=this.scheduler=null,this.pending=!1,(0,ze.P)(P,this),null!=r&&(this.id=this.recycleAsyncId(O,r,null)),this.delay=null,super.unsubscribe()}}}},7565:(St,oe,S)=>{"use strict";S.d(oe,{v:()=>N});var a=S(6063);class C{constructor(p,K=C.now){this.schedulerActionCtor=p,this.now=K}schedule(p,K=0,r){return new this.schedulerActionCtor(this,p).schedule(r,K)}}C.now=a.l.now;class N extends C{constructor(p,K=C.now){super(p,K),this.actions=[],this._active=!1,this._scheduled=void 0}flush(p){const{actions:K}=this;if(this._active)return void K.push(p);let r;this._active=!0;do{if(r=p.execute(p.state,p.delay))break}while(p=K.shift());if(this._active=!1,r){for(;p=K.shift();)p.unsubscribe();throw r}}}},6406:(St,oe,S)=>{"use strict";S.d(oe,{Z:()=>r});var a=S(4408),C=S(727);const N={schedule(P){let H=requestAnimationFrame,E=cancelAnimationFrame;const{delegate:ee}=N;ee&&(H=ee.requestAnimationFrame,E=ee.cancelAnimationFrame);const x=H(U=>{E=void 0,P(U)});return new C.w0(()=>null==E?void 0:E(x))},requestAnimationFrame(...P){const{delegate:H}=N;return((null==H?void 0:H.requestAnimationFrame)||requestAnimationFrame)(...P)},cancelAnimationFrame(...P){const{delegate:H}=N;return((null==H?void 0:H.cancelAnimationFrame)||cancelAnimationFrame)(...P)},delegate:void 0};var p=S(7565);const r=new class extends p.v{flush(H){this._active=!0;const E=this._scheduled;this._scheduled=void 0;const{actions:ee}=this;let x;H=H||ee.shift();do{if(x=H.execute(H.state,H.delay))break}while((H=ee[0])&&H.id===E&&ee.shift());if(this._active=!1,x){for(;(H=ee[0])&&H.id===E&&ee.shift();)H.unsubscribe();throw x}}}(class extends a.o{constructor(H,E){super(H,E),this.scheduler=H,this.work=E}requestAsyncId(H,E,ee=0){return null!==ee&&ee>0?super.requestAsyncId(H,E,ee):(H.actions.push(this),H._scheduled||(H._scheduled=N.requestAnimationFrame(()=>H.flush(void 0))))}recycleAsyncId(H,E,ee=0){if(null!=ee&&ee>0||null==ee&&this.delay>0)return super.recycleAsyncId(H,E,ee);H.actions.some(x=>x.id===E)||(N.cancelAnimationFrame(E),H._scheduled=void 0)}})},4986:(St,oe,S)=>{"use strict";S.d(oe,{z:()=>N,P:()=>ze});var a=S(4408);const N=new(S(7565).v)(a.o),ze=N},6063:(St,oe,S)=>{"use strict";S.d(oe,{l:()=>a});const a={now:()=>(a.delegate||Date).now(),delegate:void 0}},233:(St,oe,S)=>{"use strict";S.d(oe,{N:()=>p});var a=S(4408),N=S(7565);const p=new class extends N.v{}(class extends a.o{constructor(O,P){super(O,P),this.scheduler=O,this.work=P}schedule(O,P=0){return P>0?super.schedule(O,P):(this.delay=P,this.state=O,this.scheduler.flush(this),this)}execute(O,P){return P>0||this.closed?super.execute(O,P):this._execute(O,P)}requestAsyncId(O,P,H=0){return null!=H&&H>0||null==H&&this.delay>0?super.requestAsyncId(O,P,H):O.flush(this)}})},3410:(St,oe,S)=>{"use strict";S.d(oe,{z:()=>a});const a={setTimeout(...C){const{delegate:N}=a;return((null==N?void 0:N.setTimeout)||setTimeout)(...C)},clearTimeout(C){const{delegate:N}=a;return((null==N?void 0:N.clearTimeout)||clearTimeout)(C)},delegate:void 0}},2202:(St,oe,S)=>{"use strict";S.d(oe,{h:()=>C});const C="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},8822:(St,oe,S)=>{"use strict";S.d(oe,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(St,oe,S)=>{"use strict";S.d(oe,{K:()=>C});const C=(0,S(3888).d)(N=>function(){N(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(St,oe,S)=>{"use strict";S.d(oe,{jO:()=>ze,yG:()=>p,_6:()=>K});var a=S(576),C=S(3532);function N(r){return r[r.length-1]}function ze(r){return(0,a.m)(N(r))?r.pop():void 0}function p(r){return(0,C.K)(N(r))?r.pop():void 0}function K(r,O){return"number"==typeof N(r)?r.pop():O}},4742:(St,oe,S)=>{"use strict";S.d(oe,{D:()=>p});const{isArray:a}=Array,{getPrototypeOf:C,prototype:N,keys:ze}=Object;function p(r){if(1===r.length){const O=r[0];if(a(O))return{args:O,keys:null};if(function(r){return r&&"object"==typeof r&&C(r)===N}(O)){const P=ze(O);return{args:P.map(H=>O[H]),keys:P}}}return{args:r,keys:null}}},8737:(St,oe,S)=>{"use strict";function a(C,N){if(C){const ze=C.indexOf(N);0<=ze&&C.splice(ze,1)}}S.d(oe,{P:()=>a})},3888:(St,oe,S)=>{"use strict";function a(C){const ze=C(p=>{Error.call(p),p.stack=(new Error).stack});return ze.prototype=Object.create(Error.prototype),ze.prototype.constructor=ze,ze}S.d(oe,{d:()=>a})},1810:(St,oe,S)=>{"use strict";function a(C,N){return C.reduce((ze,p,K)=>(ze[p]=N[K],ze),{})}S.d(oe,{n:()=>a})},2806:(St,oe,S)=>{"use strict";S.d(oe,{x:()=>N,O:()=>ze});var a=S(2416);let C=null;function N(p){if(a.v.useDeprecatedSynchronousErrorHandling){const K=!C;if(K&&(C={errorThrown:!1,error:null}),p(),K){const{errorThrown:r,error:O}=C;if(C=null,r)throw O}}else p()}function ze(p){a.v.useDeprecatedSynchronousErrorHandling&&C&&(C.errorThrown=!0,C.error=p)}},9672:(St,oe,S)=>{"use strict";function a(C,N,ze,p=0,K=!1){const r=N.schedule(function(){ze(),K?C.add(this.schedule(null,p)):this.unsubscribe()},p);if(C.add(r),!K)return r}S.d(oe,{f:()=>a})},4671:(St,oe,S)=>{"use strict";function a(C){return C}S.d(oe,{y:()=>a})},1144:(St,oe,S)=>{"use strict";S.d(oe,{z:()=>a});const a=C=>C&&"number"==typeof C.length&&"function"!=typeof C},2206:(St,oe,S)=>{"use strict";S.d(oe,{D:()=>C});var a=S(576);function C(N){return Symbol.asyncIterator&&(0,a.m)(null==N?void 0:N[Symbol.asyncIterator])}},1165:(St,oe,S)=>{"use strict";function a(C){return C instanceof Date&&!isNaN(C)}S.d(oe,{q:()=>a})},576:(St,oe,S)=>{"use strict";function a(C){return"function"==typeof C}S.d(oe,{m:()=>a})},3670:(St,oe,S)=>{"use strict";S.d(oe,{c:()=>N});var a=S(8822),C=S(576);function N(ze){return(0,C.m)(ze[a.L])}},6495:(St,oe,S)=>{"use strict";S.d(oe,{T:()=>N});var a=S(2202),C=S(576);function N(ze){return(0,C.m)(null==ze?void 0:ze[a.h])}},8239:(St,oe,S)=>{"use strict";S.d(oe,{t:()=>C});var a=S(576);function C(N){return(0,a.m)(null==N?void 0:N.then)}},3260:(St,oe,S)=>{"use strict";S.d(oe,{Q:()=>N,L:()=>ze});var a=S(655),C=S(576);function N(p){return(0,a.FC)(this,arguments,function*(){const r=p.getReader();try{for(;;){const{value:O,done:P}=yield(0,a.qq)(r.read());if(P)return yield(0,a.qq)(void 0);yield yield(0,a.qq)(O)}}finally{r.releaseLock()}})}function ze(p){return(0,C.m)(null==p?void 0:p.getReader)}},3532:(St,oe,S)=>{"use strict";S.d(oe,{K:()=>C});var a=S(576);function C(N){return N&&(0,a.m)(N.schedule)}},4482:(St,oe,S)=>{"use strict";S.d(oe,{A:()=>C,e:()=>N});var a=S(576);function C(ze){return(0,a.m)(null==ze?void 0:ze.lift)}function N(ze){return p=>{if(C(p))return p.lift(function(K){try{return ze(K,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(St,oe,S)=>{"use strict";S.d(oe,{Z:()=>ze});var a=S(4004);const{isArray:C}=Array;function ze(p){return(0,a.U)(K=>function(p,K){return C(K)?p(...K):p(K)}(p,K))}},5032:(St,oe,S)=>{"use strict";function a(){}S.d(oe,{Z:()=>a})},7849:(St,oe,S)=>{"use strict";S.d(oe,{h:()=>N});var a=S(2416),C=S(3410);function N(ze){C.z.setTimeout(()=>{const{onUnhandledError:p}=a.v;if(!p)throw ze;p(ze)})}},4532:(St,oe,S)=>{"use strict";function a(C){return new TypeError(`You provided ${null!==C&&"object"==typeof C?"an invalid object":`'${C}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}S.d(oe,{z:()=>a})},8926:St=>{function oe(a,C,N,ze,p,K,r){try{var O=a[K](r),P=O.value}catch(H){return void N(H)}O.done?C(P):Promise.resolve(P).then(ze,p)}St.exports=function(a){return function(){var C=this,N=arguments;return new Promise(function(ze,p){var K=a.apply(C,N);function r(P){oe(K,ze,p,r,O,"next",P)}function O(P){oe(K,ze,p,r,O,"throw",P)}r(void 0)})}},St.exports.default=St.exports,St.exports.__esModule=!0},655:(St,oe,S)=>{"use strict";function O(je,rt,it,ct){return new(it||(it=Promise))(function(qe,Ve){function He(Te){try{Le(ct.next(Te))}catch(Ze){Ve(Ze)}}function X(Te){try{Le(ct.throw(Te))}catch(Ze){Ve(Ze)}}function Le(Te){Te.done?qe(Te.value):function(qe){return qe instanceof it?qe:new it(function(Ve){Ve(qe)})}(Te.value).then(He,X)}Le((ct=ct.apply(je,rt||[])).next())})}function re(je){return this instanceof re?(this.v=je,this):new re(je)}function ce(je,rt,it){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g,ct=it.apply(je,rt||[]),qe=[];return g={},Ve("next"),Ve("throw"),Ve("return"),g[Symbol.asyncIterator]=function(){return this},g;function Ve(he){ct[he]&&(g[he]=function(Ne){return new Promise(function(Me,ke){qe.push([he,Ne,Me,ke])>1||He(he,Ne)})})}function He(he,Ne){try{!function(he){he.value instanceof re?Promise.resolve(he.value.v).then(Le,Te):Ze(qe[0][2],he)}(ct[he](Ne))}catch(Me){Ze(qe[0][3],Me)}}function Le(he){He("next",he)}function Te(he){He("throw",he)}function Ze(he,Ne){he(Ne),qe.shift(),qe.length&&He(qe[0][0],qe[0][1])}}function J(je){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var it,rt=je[Symbol.asyncIterator];return rt?rt.call(je):(je=function(je){var rt="function"==typeof Symbol&&Symbol.iterator,it=rt&&je[rt],ct=0;if(it)return it.call(je);if(je&&"number"==typeof je.length)return{next:function(){return je&&ct>=je.length&&(je=void 0),{value:je&&je[ct++],done:!je}}};throw new TypeError(rt?"Object is not iterable.":"Symbol.iterator is not defined.")}(je),it={},ct("next"),ct("throw"),ct("return"),it[Symbol.asyncIterator]=function(){return this},it);function ct(qe){it[qe]=je[qe]&&function(Ve){return new Promise(function(He,X){!function(qe,Ve,He,X){Promise.resolve(X).then(function(Le){qe({value:Le,done:He})},Ve)}(He,X,(Ve=je[qe](Ve)).done,Ve.value)})}}}S.d(oe,{mG:()=>O,qq:()=>re,FC:()=>ce,KL:()=>J})},3414:()=>{},172:()=>{},2001:()=>{},3779:()=>{},6558:()=>{},2258:()=>{},1777:(St,oe,S)=>{"use strict";S.d(oe,{l3:()=>N,_j:()=>a,LC:()=>C,ZN:()=>ce,jt:()=>p,pV:()=>x,F4:()=>H,IO:()=>le,vP:()=>r,EY:()=>xe,SB:()=>P,oB:()=>O,eR:()=>E,X$:()=>ze,ZE:()=>L,k1:()=>J});class a{}class C{}const N="*";function ze(we,ge){return{type:7,name:we,definitions:ge,options:{}}}function p(we,ge=null){return{type:4,styles:ge,timings:we}}function r(we,ge=null){return{type:2,steps:we,options:ge}}function O(we){return{type:6,styles:we,offset:null}}function P(we,ge,fe){return{type:0,name:we,styles:ge,options:fe}}function H(we){return{type:5,steps:we}}function E(we,ge,fe=null){return{type:1,expr:we,animation:ge,options:fe}}function x(we=null){return{type:9,options:we}}function le(we,ge,fe=null){return{type:11,selector:we,animation:ge,options:fe}}function xe(we,ge){return{type:12,timings:we,animation:ge}}function re(we){Promise.resolve(null).then(we)}class ce{constructor(ge=0,fe=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ge+fe}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ge=>ge()),this._onDoneFns=[])}onStart(ge){this._onStartFns.push(ge)}onDone(ge){this._onDoneFns.push(ge)}onDestroy(ge){this._onDestroyFns.push(ge)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){re(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ge=>ge()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ge=>ge()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ge){this._position=this.totalTime?ge*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ge){const fe="start"==ge?this._onStartFns:this._onDoneFns;fe.forEach(Ce=>Ce()),fe.length=0}}class L{constructor(ge){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ge;let fe=0,Ce=0,e=0;const z=this.players.length;0==z?re(()=>this._onFinish()):this.players.forEach(je=>{je.onDone(()=>{++fe==z&&this._onFinish()}),je.onDestroy(()=>{++Ce==z&&this._onDestroy()}),je.onStart(()=>{++e==z&&this._onStart()})}),this.totalTime=this.players.reduce((je,rt)=>Math.max(je,rt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ge=>ge()),this._onDoneFns=[])}init(){this.players.forEach(ge=>ge.init())}onStart(ge){this._onStartFns.push(ge)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ge=>ge()),this._onStartFns=[])}onDone(ge){this._onDoneFns.push(ge)}onDestroy(ge){this._onDestroyFns.push(ge)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ge=>ge.play())}pause(){this.players.forEach(ge=>ge.pause())}restart(){this.players.forEach(ge=>ge.restart())}finish(){this._onFinish(),this.players.forEach(ge=>ge.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ge=>ge.destroy()),this._onDestroyFns.forEach(ge=>ge()),this._onDestroyFns=[])}reset(){this.players.forEach(ge=>ge.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ge){const fe=ge*this.totalTime;this.players.forEach(Ce=>{const e=Ce.totalTime?Math.min(1,fe/Ce.totalTime):1;Ce.setPosition(e)})}getPosition(){const ge=this.players.reduce((fe,Ce)=>null===fe||Ce.totalTime>fe.totalTime?Ce:fe,null);return null!=ge?ge.getPosition():0}beforeDestroy(){this.players.forEach(ge=>{ge.beforeDestroy&&ge.beforeDestroy()})}triggerCallback(ge){const fe="start"==ge?this._onStartFns:this._onDoneFns;fe.forEach(Ce=>Ce()),fe.length=0}}const J="!"},5664:(St,oe,S)=>{"use strict";S.d(oe,{rt:()=>Rt,tE:()=>Hn,qV:()=>We,qm:()=>Gt,ic:()=>g,X6:()=>ye,yG:()=>be});var a=S(9808),C=S(5e3),N=S(1135),ze=S(7579),p=S(9646),K=S(1159),r=S(5698),O=S(5684),P=S(1884),H=S(2722),E=S(3191),ee=S(925),x=S(7144);let g=(()=>{class Ft{constructor(V){this._platform=V}isDisabled(V){return V.hasAttribute("disabled")}isVisible(V){return function(Ft){return!!(Ft.offsetWidth||Ft.offsetHeight||"function"==typeof Ft.getClientRects&&Ft.getClientRects().length)}(V)&&"visible"===getComputedStyle(V).visibility}isTabbable(V){if(!this._platform.isBrowser)return!1;const Q=function(Ft){try{return Ft.frameElement}catch(F){return null}}(function(Ft){return Ft.ownerDocument&&Ft.ownerDocument.defaultView||window}(V));if(Q&&(-1===Ne(Q)||!this.isVisible(Q)))return!1;let ie=V.nodeName.toLowerCase(),nt=Ne(V);return V.hasAttribute("contenteditable")?-1!==nt:!("iframe"===ie||"object"===ie||this._platform.WEBKIT&&this._platform.IOS&&!function(Ft){let F=Ft.nodeName.toLowerCase(),V="input"===F&&Ft.type;return"text"===V||"password"===V||"select"===F||"textarea"===F}(V))&&("audio"===ie?!!V.hasAttribute("controls")&&-1!==nt:"video"===ie?-1!==nt&&(null!==nt||this._platform.FIREFOX||V.hasAttribute("controls")):V.tabIndex>=0)}isFocusable(V,Q){return function(Ft){return!function(Ft){return function(Ft){return"input"==Ft.nodeName.toLowerCase()}(Ft)&&"hidden"==Ft.type}(Ft)&&(function(Ft){let F=Ft.nodeName.toLowerCase();return"input"===F||"select"===F||"button"===F||"textarea"===F}(Ft)||function(Ft){return function(Ft){return"a"==Ft.nodeName.toLowerCase()}(Ft)&&Ft.hasAttribute("href")}(Ft)||Ft.hasAttribute("contenteditable")||he(Ft))}(V)&&!this.isDisabled(V)&&((null==Q?void 0:Q.ignoreVisibility)||this.isVisible(V))}}return Ft.\u0275fac=function(V){return new(V||Ft)(C.LFG(ee.t4))},Ft.\u0275prov=C.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:"root"}),Ft})();function he(Ft){if(!Ft.hasAttribute("tabindex")||void 0===Ft.tabIndex)return!1;let F=Ft.getAttribute("tabindex");return!(!F||isNaN(parseInt(F,10)))}function Ne(Ft){if(!he(Ft))return null;const F=parseInt(Ft.getAttribute("tabindex")||"",10);return isNaN(F)?-1:F}class ot{constructor(F,V,Q,ie,nt=!1){this._element=F,this._checker=V,this._ngZone=Q,this._document=ie,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,nt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(F){this._enabled=F,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(F,this._startAnchor),this._toggleAnchorTabIndex(F,this._endAnchor))}destroy(){const F=this._startAnchor,V=this._endAnchor;F&&(F.removeEventListener("focus",this.startAnchorListener),F.remove()),V&&(V.removeEventListener("focus",this.endAnchorListener),V.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(F){return new Promise(V=>{this._executeOnStable(()=>V(this.focusInitialElement(F)))})}focusFirstTabbableElementWhenReady(F){return new Promise(V=>{this._executeOnStable(()=>V(this.focusFirstTabbableElement(F)))})}focusLastTabbableElementWhenReady(F){return new Promise(V=>{this._executeOnStable(()=>V(this.focusLastTabbableElement(F)))})}_getRegionBoundary(F){const V=this._element.querySelectorAll(`[cdk-focus-region-${F}], [cdkFocusRegion${F}], [cdk-focus-${F}]`);return"start"==F?V.length?V[0]:this._getFirstTabbableElement(this._element):V.length?V[V.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(F){const V=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(V){if(!this._checker.isFocusable(V)){const Q=this._getFirstTabbableElement(V);return null==Q||Q.focus(F),!!Q}return V.focus(F),!0}return this.focusFirstTabbableElement(F)}focusFirstTabbableElement(F){const V=this._getRegionBoundary("start");return V&&V.focus(F),!!V}focusLastTabbableElement(F){const V=this._getRegionBoundary("end");return V&&V.focus(F),!!V}hasAttached(){return this._hasAttached}_getFirstTabbableElement(F){if(this._checker.isFocusable(F)&&this._checker.isTabbable(F))return F;const V=F.children;for(let Q=0;Q=0;Q--){const ie=V[Q].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(V[Q]):null;if(ie)return ie}return null}_createAnchor(){const F=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,F),F.classList.add("cdk-visually-hidden"),F.classList.add("cdk-focus-trap-anchor"),F.setAttribute("aria-hidden","true"),F}_toggleAnchorTabIndex(F,V){F?V.setAttribute("tabindex","0"):V.removeAttribute("tabindex")}toggleAnchors(F){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(F,this._startAnchor),this._toggleAnchorTabIndex(F,this._endAnchor))}_executeOnStable(F){this._ngZone.isStable?F():this._ngZone.onStable.pipe((0,r.q)(1)).subscribe(F)}}let We=(()=>{class Ft{constructor(V,Q,ie){this._checker=V,this._ngZone=Q,this._document=ie}create(V,Q=!1){return new ot(V,this._checker,this._ngZone,this._document,Q)}}return Ft.\u0275fac=function(V){return new(V||Ft)(C.LFG(g),C.LFG(C.R0b),C.LFG(a.K0))},Ft.\u0275prov=C.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:"root"}),Ft})();function ye(Ft){return 0===Ft.offsetX&&0===Ft.offsetY}function be(Ft){const F=Ft.touches&&Ft.touches[0]||Ft.changedTouches&&Ft.changedTouches[0];return!(!F||-1!==F.identifier||null!=F.radiusX&&1!==F.radiusX||null!=F.radiusY&&1!==F.radiusY)}const Je=new C.OlP("cdk-input-modality-detector-options"),gt={ignoreKeys:[K.zL,K.jx,K.b2,K.MW,K.JU]},$t=(0,ee.i$)({passive:!0,capture:!0});let ft=(()=>{class Ft{constructor(V,Q,ie,nt){this._platform=V,this._mostRecentTarget=null,this._modality=new N.X(null),this._lastTouchMs=0,this._onKeydown=bt=>{var an,Qn;(null===(Qn=null===(an=this._options)||void 0===an?void 0:an.ignoreKeys)||void 0===Qn?void 0:Qn.some(ni=>ni===bt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ee.sA)(bt))},this._onMousedown=bt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ye(bt)?"keyboard":"mouse"),this._mostRecentTarget=(0,ee.sA)(bt))},this._onTouchstart=bt=>{be(bt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ee.sA)(bt))},this._options=Object.assign(Object.assign({},gt),nt),this.modalityDetected=this._modality.pipe((0,O.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,P.x)()),V.isBrowser&&Q.runOutsideAngular(()=>{ie.addEventListener("keydown",this._onKeydown,$t),ie.addEventListener("mousedown",this._onMousedown,$t),ie.addEventListener("touchstart",this._onTouchstart,$t)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,$t),document.removeEventListener("mousedown",this._onMousedown,$t),document.removeEventListener("touchstart",this._onTouchstart,$t))}}return Ft.\u0275fac=function(V){return new(V||Ft)(C.LFG(ee.t4),C.LFG(C.R0b),C.LFG(a.K0),C.LFG(Je,8))},Ft.\u0275prov=C.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:"root"}),Ft})();const xn=new C.OlP("cdk-focus-monitor-default-options"),Mn=(0,ee.i$)({passive:!0,capture:!0});let Hn=(()=>{class Ft{constructor(V,Q,ie,nt,bt){this._ngZone=V,this._platform=Q,this._inputModalityDetector=ie,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 ze.x,this._rootNodeFocusAndBlurListener=an=>{const Qn=(0,ee.sA)(an),ni="focus"===an.type?this._onFocus:this._onBlur;for(let An=Qn;An;An=An.parentElement)ni.call(this,an,An)},this._document=nt,this._detectionMode=(null==bt?void 0:bt.detectionMode)||0}monitor(V,Q=!1){const ie=(0,E.fI)(V);if(!this._platform.isBrowser||1!==ie.nodeType)return(0,p.of)(null);const nt=(0,ee.kV)(ie)||this._getDocument(),bt=this._elementInfo.get(ie);if(bt)return Q&&(bt.checkChildren=!0),bt.subject;const an={checkChildren:Q,subject:new ze.x,rootNode:nt};return this._elementInfo.set(ie,an),this._registerGlobalListeners(an),an.subject}stopMonitoring(V){const Q=(0,E.fI)(V),ie=this._elementInfo.get(Q);ie&&(ie.subject.complete(),this._setClasses(Q),this._elementInfo.delete(Q),this._removeGlobalListeners(ie))}focusVia(V,Q,ie){const nt=(0,E.fI)(V);nt===this._getDocument().activeElement?this._getClosestElementsInfo(nt).forEach(([an,Qn])=>this._originChanged(an,Q,Qn)):(this._setOrigin(Q),"function"==typeof nt.focus&&nt.focus(ie))}ngOnDestroy(){this._elementInfo.forEach((V,Q)=>this.stopMonitoring(Q))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(V){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(V)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(V){return 1===this._detectionMode||!!(null==V?void 0:V.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(V,Q){V.classList.toggle("cdk-focused",!!Q),V.classList.toggle("cdk-touch-focused","touch"===Q),V.classList.toggle("cdk-keyboard-focused","keyboard"===Q),V.classList.toggle("cdk-mouse-focused","mouse"===Q),V.classList.toggle("cdk-program-focused","program"===Q)}_setOrigin(V,Q=!1){this._ngZone.runOutsideAngular(()=>{this._origin=V,this._originFromTouchInteraction="touch"===V&&Q,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(V,Q){const ie=this._elementInfo.get(Q),nt=(0,ee.sA)(V);!ie||!ie.checkChildren&&Q!==nt||this._originChanged(Q,this._getFocusOrigin(nt),ie)}_onBlur(V,Q){const ie=this._elementInfo.get(Q);!ie||ie.checkChildren&&V.relatedTarget instanceof Node&&Q.contains(V.relatedTarget)||(this._setClasses(Q),this._emitOrigin(ie.subject,null))}_emitOrigin(V,Q){this._ngZone.run(()=>V.next(Q))}_registerGlobalListeners(V){if(!this._platform.isBrowser)return;const Q=V.rootNode,ie=this._rootNodeFocusListenerCount.get(Q)||0;ie||this._ngZone.runOutsideAngular(()=>{Q.addEventListener("focus",this._rootNodeFocusAndBlurListener,Mn),Q.addEventListener("blur",this._rootNodeFocusAndBlurListener,Mn)}),this._rootNodeFocusListenerCount.set(Q,ie+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,H.R)(this._stopInputModalityDetector)).subscribe(nt=>{this._setOrigin(nt,!0)}))}_removeGlobalListeners(V){const Q=V.rootNode;if(this._rootNodeFocusListenerCount.has(Q)){const ie=this._rootNodeFocusListenerCount.get(Q);ie>1?this._rootNodeFocusListenerCount.set(Q,ie-1):(Q.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Mn),Q.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Mn),this._rootNodeFocusListenerCount.delete(Q))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(V,Q,ie){this._setClasses(V,Q),this._emitOrigin(ie.subject,Q),this._lastFocusOrigin=Q}_getClosestElementsInfo(V){const Q=[];return this._elementInfo.forEach((ie,nt)=>{(nt===V||ie.checkChildren&&nt.contains(V))&&Q.push([nt,ie])}),Q}}return Ft.\u0275fac=function(V){return new(V||Ft)(C.LFG(C.R0b),C.LFG(ee.t4),C.LFG(ft),C.LFG(a.K0,8),C.LFG(xn,8))},Ft.\u0275prov=C.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:"root"}),Ft})();const Yn="cdk-high-contrast-black-on-white",_t="cdk-high-contrast-white-on-black",Tt="cdk-high-contrast-active";let Gt=(()=>{class Ft{constructor(V,Q){this._platform=V,this._document=Q}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const V=this._document.createElement("div");V.style.backgroundColor="rgb(1,2,3)",V.style.position="absolute",this._document.body.appendChild(V);const Q=this._document.defaultView||window,ie=Q&&Q.getComputedStyle?Q.getComputedStyle(V):null,nt=(ie&&ie.backgroundColor||"").replace(/ /g,"");switch(V.remove(),nt){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 V=this._document.body.classList;V.remove(Tt),V.remove(Yn),V.remove(_t),this._hasCheckedHighContrastMode=!0;const Q=this.getHighContrastMode();1===Q?(V.add(Tt),V.add(Yn)):2===Q&&(V.add(Tt),V.add(_t))}}}return Ft.\u0275fac=function(V){return new(V||Ft)(C.LFG(ee.t4),C.LFG(a.K0))},Ft.\u0275prov=C.Yz7({token:Ft,factory:Ft.\u0275fac,providedIn:"root"}),Ft})(),Rt=(()=>{class Ft{constructor(V){V._applyBodyHighContrastModeCssClasses()}}return Ft.\u0275fac=function(V){return new(V||Ft)(C.LFG(Gt))},Ft.\u0275mod=C.oAB({type:Ft}),Ft.\u0275inj=C.cJS({imports:[[ee.ud,x.Q8]]}),Ft})()},226:(St,oe,S)=>{"use strict";S.d(oe,{vT:()=>P,Is:()=>r});var a=S(5e3),C=S(9808);const N=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,a.f3M)(C.K0)}}),p=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let r=(()=>{class H{constructor(ee){if(this.value="ltr",this.change=new a.vpe,ee){const U=ee.documentElement?ee.documentElement.dir:null;this.value=function(H){const E=(null==H?void 0:H.toLowerCase())||"";return"auto"===E&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?p.test(navigator.language)?"rtl":"ltr":"rtl"===E?"rtl":"ltr"}((ee.body?ee.body.dir:null)||U||"ltr")}}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(ee){return new(ee||H)(a.LFG(N,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),P=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=a.oAB({type:H}),H.\u0275inj=a.cJS({}),H})()},3191:(St,oe,S)=>{"use strict";S.d(oe,{Eq:()=>p,Ig:()=>C,HM:()=>K,fI:()=>r,su:()=>N});var a=S(5e3);function C(P){return null!=P&&"false"!=`${P}`}function N(P,H=0){return function(P){return!isNaN(parseFloat(P))&&!isNaN(Number(P))}(P)?Number(P):H}function p(P){return Array.isArray(P)?P:[P]}function K(P){return null==P?"":"string"==typeof P?P:`${P}px`}function r(P){return P instanceof a.SBq?P.nativeElement:P}},1159:(St,oe,S)=>{"use strict";S.d(oe,{zL:()=>O,jx:()=>r,JH:()=>J,K5:()=>p,hY:()=>E,b2:()=>_i,MW:()=>Mn,JU:()=>K,Mf:()=>N,LH:()=>ce,Vb:()=>vn});const N=9,p=13,K=16,r=17,O=18,E=27,ce=38,J=40,Mn=91,_i=224;function vn(qi,...Qi){return Qi.length?Qi.some(Us=>qi[Us]):qi.altKey||qi.shiftKey||qi.ctrlKey||qi.metaKey}},7144:(St,oe,S)=>{"use strict";S.d(oe,{wD:()=>O,Q8:()=>P});var a=S(3191),C=S(5e3),N=S(8306),ze=S(7579),p=S(8372);let K=(()=>{class H{create(ee){return"undefined"==typeof MutationObserver?null:new MutationObserver(ee)}}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275prov=C.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),r=(()=>{class H{constructor(ee){this._mutationObserverFactory=ee,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((ee,x)=>this._cleanupObserver(x))}observe(ee){const x=(0,a.fI)(ee);return new N.y(U=>{const xe=this._observeElement(x).subscribe(U);return()=>{xe.unsubscribe(),this._unobserveElement(x)}})}_observeElement(ee){if(this._observedElements.has(ee))this._observedElements.get(ee).count++;else{const x=new ze.x,U=this._mutationObserverFactory.create(le=>x.next(le));U&&U.observe(ee,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(ee,{observer:U,stream:x,count:1})}return this._observedElements.get(ee).stream}_unobserveElement(ee){this._observedElements.has(ee)&&(this._observedElements.get(ee).count--,this._observedElements.get(ee).count||this._cleanupObserver(ee))}_cleanupObserver(ee){if(this._observedElements.has(ee)){const{observer:x,stream:U}=this._observedElements.get(ee);x&&x.disconnect(),U.complete(),this._observedElements.delete(ee)}}}return H.\u0275fac=function(ee){return new(ee||H)(C.LFG(K))},H.\u0275prov=C.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),O=(()=>{class H{constructor(ee,x,U){this._contentObserver=ee,this._elementRef=x,this._ngZone=U,this.event=new C.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(ee){this._disabled=(0,a.Ig)(ee),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(ee){this._debounce=(0,a.su)(ee),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const ee=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?ee.pipe((0,p.b)(this.debounce)):ee).subscribe(this.event)})}_unsubscribe(){var ee;null===(ee=this._currentSubscription)||void 0===ee||ee.unsubscribe()}}return H.\u0275fac=function(ee){return new(ee||H)(C.Y36(r),C.Y36(C.SBq),C.Y36(C.R0b))},H.\u0275dir=C.lG2({type:H,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),H})(),P=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=C.oAB({type:H}),H.\u0275inj=C.cJS({providers:[K]}),H})()},1314:(St,oe,S)=>{"use strict";S.d(oe,{aV:()=>G,X_:()=>ge,Xj:()=>it,U8:()=>Wt});var a=S(2411),C=S(9808),N=S(5e3),ze=S(3191),p=S(925),K=S(226),r=S(7429),O=S(7579),P=S(727),H=S(6451),E=S(5698),ee=S(2722);const x=(0,p.Mq)();class U{constructor(be,Je){this._viewportRuler=be,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Je}attach(){}enable(){if(this._canBeEnabled()){const be=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=be.style.left||"",this._previousHTMLStyles.top=be.style.top||"",be.style.left=(0,ze.HM)(-this._previousScrollPosition.left),be.style.top=(0,ze.HM)(-this._previousScrollPosition.top),be.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const be=this._document.documentElement,gt=be.style,Nt=this._document.body.style,$t=gt.scrollBehavior||"",ft=Nt.scrollBehavior||"";this._isEnabled=!1,gt.left=this._previousHTMLStyles.left,gt.top=this._previousHTMLStyles.top,be.classList.remove("cdk-global-scrollblock"),x&&(gt.scrollBehavior=Nt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),x&&(gt.scrollBehavior=$t,Nt.scrollBehavior=ft)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Je=this._document.body,gt=this._viewportRuler.getViewportSize();return Je.scrollHeight>gt.height||Je.scrollWidth>gt.width}}class xe{constructor(be,Je,gt,Nt){this._scrollDispatcher=be,this._ngZone=Je,this._viewportRuler=gt,this._config=Nt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(be){this._overlayRef=be}enable(){if(this._scrollSubscription)return;const be=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=be.subscribe(()=>{const Je=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Je-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=be.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class re{enable(){}disable(){}attach(){}}function ce(ye,be){return be.some(Je=>ye.bottomJe.bottom||ye.rightJe.right)}function L(ye,be){return be.some(Je=>ye.topJe.bottom||ye.leftJe.right)}class J{constructor(be,Je,gt,Nt){this._scrollDispatcher=be,this._viewportRuler=Je,this._ngZone=gt,this._config=Nt,this._scrollSubscription=null}attach(be){this._overlayRef=be}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 Je=this._overlayRef.overlayElement.getBoundingClientRect(),{width:gt,height:Nt}=this._viewportRuler.getViewportSize();ce(Je,[{width:gt,height:Nt,bottom:Nt,right:gt,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 we=(()=>{class ye{constructor(Je,gt,Nt,$t){this._scrollDispatcher=Je,this._viewportRuler=gt,this._ngZone=Nt,this.noop=()=>new re,this.close=ft=>new xe(this._scrollDispatcher,this._ngZone,this._viewportRuler,ft),this.block=()=>new U(this._viewportRuler,this._document),this.reposition=ft=>new J(this._scrollDispatcher,this._viewportRuler,this._ngZone,ft),this._document=$t}}return ye.\u0275fac=function(Je){return new(Je||ye)(N.LFG(a.mF),N.LFG(a.rL),N.LFG(N.R0b),N.LFG(C.K0))},ye.\u0275prov=N.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();class ge{constructor(be){if(this.scrollStrategy=new re,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,be){const Je=Object.keys(be);for(const gt of Je)void 0!==be[gt]&&(this[gt]=be[gt])}}}class e{constructor(be,Je){this.connectionPair=be,this.scrollableViewProperties=Je}}class rt{constructor(be,Je,gt,Nt,$t,ft,mt,Re,zt){this._portalOutlet=be,this._host=Je,this._pane=gt,this._config=Nt,this._ngZone=$t,this._keyboardDispatcher=ft,this._document=mt,this._location=Re,this._outsideClickDispatcher=zt,this._backdropElement=null,this._backdropClick=new O.x,this._attachments=new O.x,this._detachments=new O.x,this._locationChanges=P.w0.EMPTY,this._backdropClickHandler=Kt=>this._backdropClick.next(Kt),this._keydownEvents=new O.x,this._outsidePointerEvents=new O.x,Nt.scrollStrategy&&(this._scrollStrategy=Nt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Nt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(be){let Je=this._portalOutlet.attach(be);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,E.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),Je}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const be=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),be}dispose(){var be;const Je=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===(be=this._host)||void 0===be||be.remove(),this._previousHostParent=this._pane=this._host=null,Je&&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(be){be!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=be,this.hasAttached()&&(be.attach(this),this.updatePosition()))}updateSize(be){this._config=Object.assign(Object.assign({},this._config),be),this._updateElementSize()}setDirection(be){this._config=Object.assign(Object.assign({},this._config),{direction:be}),this._updateElementDirection()}addPanelClass(be){this._pane&&this._toggleClasses(this._pane,be,!0)}removePanelClass(be){this._pane&&this._toggleClasses(this._pane,be,!1)}getDirection(){const be=this._config.direction;return be?"string"==typeof be?be:be.value:"ltr"}updateScrollStrategy(be){be!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=be,this.hasAttached()&&(be.attach(this),be.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const be=this._pane.style;be.width=(0,ze.HM)(this._config.width),be.height=(0,ze.HM)(this._config.height),be.minWidth=(0,ze.HM)(this._config.minWidth),be.minHeight=(0,ze.HM)(this._config.minHeight),be.maxWidth=(0,ze.HM)(this._config.maxWidth),be.maxHeight=(0,ze.HM)(this._config.maxHeight)}_togglePointerEvents(be){this._pane.style.pointerEvents=be?"":"none"}_attachBackdrop(){const be="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(be)})}):this._backdropElement.classList.add(be)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const be=this._backdropElement;if(!be)return;let Je;const gt=()=>{be&&(be.removeEventListener("click",this._backdropClickHandler),be.removeEventListener("transitionend",gt),this._disposeBackdrop(be)),this._config.backdropClass&&this._toggleClasses(be,this._config.backdropClass,!1),clearTimeout(Je)};be.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{be.addEventListener("transitionend",gt)}),be.style.pointerEvents="none",Je=this._ngZone.runOutsideAngular(()=>setTimeout(gt,500))}_toggleClasses(be,Je,gt){const Nt=(0,ze.Eq)(Je||[]).filter($t=>!!$t);Nt.length&&(gt?be.classList.add(...Nt):be.classList.remove(...Nt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const be=this._ngZone.onStable.pipe((0,ee.R)((0,H.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()),be.unsubscribe())})})}_disposeScrollStrategy(){const be=this._scrollStrategy;be&&(be.disable(),be.detach&&be.detach())}_disposeBackdrop(be){be&&(be.remove(),this._backdropElement===be&&(this._backdropElement=null))}}let it=(()=>{class ye{constructor(Je,gt){this._platform=gt,this._document=Je}ngOnDestroy(){var Je;null===(Je=this._containerElement)||void 0===Je||Je.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Je="cdk-overlay-container";if(this._platform.isBrowser||(0,p.Oy)()){const Nt=this._document.querySelectorAll(`.${Je}[platform="server"], .${Je}[platform="test"]`);for(let $t=0;$t{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 be=this._originRect,Je=this._overlayRect,gt=this._viewportRect,Nt=[];let $t;for(let ft of this._preferredPositions){let mt=this._getOriginPoint(be,ft),Re=this._getOverlayPoint(mt,Je,ft),zt=this._getOverlayFit(Re,Je,gt,ft);if(zt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ft,mt);this._canFitWithFlexibleDimensions(zt,Re,gt)?Nt.push({position:ft,origin:mt,overlayRect:Je,boundingBoxRect:this._calculateBoundingBoxRect(mt,ft)}):(!$t||$t.overlayFit.visibleAreamt&&(mt=zt,ft=Re)}return this._isPushed=!1,void this._applyPosition(ft.position,ft.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition($t.position,$t.originPoint);this._applyPosition($t.position,$t.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ve(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ct),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 be=this._lastPosition||this._preferredPositions[0],Je=this._getOriginPoint(this._originRect,be);this._applyPosition(be,Je)}}withScrollableContainers(be){return this._scrollables=be,this}withPositions(be){return this._preferredPositions=be,-1===be.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(be){return this._viewportMargin=be,this}withFlexibleDimensions(be=!0){return this._hasFlexibleDimensions=be,this}withGrowAfterOpen(be=!0){return this._growAfterOpen=be,this}withPush(be=!0){return this._canPush=be,this}withLockedPosition(be=!0){return this._positionLocked=be,this}setOrigin(be){return this._origin=be,this}withDefaultOffsetX(be){return this._offsetX=be,this}withDefaultOffsetY(be){return this._offsetY=be,this}withTransformOriginOn(be){return this._transformOriginSelector=be,this}_getOriginPoint(be,Je){let gt,Nt;if("center"==Je.originX)gt=be.left+be.width/2;else{const $t=this._isRtl()?be.right:be.left,ft=this._isRtl()?be.left:be.right;gt="start"==Je.originX?$t:ft}return Nt="center"==Je.originY?be.top+be.height/2:"top"==Je.originY?be.top:be.bottom,{x:gt,y:Nt}}_getOverlayPoint(be,Je,gt){let Nt,$t;return Nt="center"==gt.overlayX?-Je.width/2:"start"===gt.overlayX?this._isRtl()?-Je.width:0:this._isRtl()?0:-Je.width,$t="center"==gt.overlayY?-Je.height/2:"top"==gt.overlayY?0:-Je.height,{x:be.x+Nt,y:be.y+$t}}_getOverlayFit(be,Je,gt,Nt){const $t=X(Je);let{x:ft,y:mt}=be,Re=this._getOffset(Nt,"x"),zt=this._getOffset(Nt,"y");Re&&(ft+=Re),zt&&(mt+=zt);let xn=0-mt,Mn=mt+$t.height-gt.height,Hn=this._subtractOverflows($t.width,0-ft,ft+$t.width-gt.width),pn=this._subtractOverflows($t.height,xn,Mn),Yn=Hn*pn;return{visibleArea:Yn,isCompletelyWithinViewport:$t.width*$t.height===Yn,fitsInViewportVertically:pn===$t.height,fitsInViewportHorizontally:Hn==$t.width}}_canFitWithFlexibleDimensions(be,Je,gt){if(this._hasFlexibleDimensions){const Nt=gt.bottom-Je.y,$t=gt.right-Je.x,ft=He(this._overlayRef.getConfig().minHeight),mt=He(this._overlayRef.getConfig().minWidth),zt=be.fitsInViewportHorizontally||null!=mt&&mt<=$t;return(be.fitsInViewportVertically||null!=ft&&ft<=Nt)&&zt}return!1}_pushOverlayOnScreen(be,Je,gt){if(this._previousPushAmount&&this._positionLocked)return{x:be.x+this._previousPushAmount.x,y:be.y+this._previousPushAmount.y};const Nt=X(Je),$t=this._viewportRect,ft=Math.max(be.x+Nt.width-$t.width,0),mt=Math.max(be.y+Nt.height-$t.height,0),Re=Math.max($t.top-gt.top-be.y,0),zt=Math.max($t.left-gt.left-be.x,0);let Kt=0,hn=0;return Kt=Nt.width<=$t.width?zt||-ft:be.xHn&&!this._isInitialRender&&!this._growAfterOpen&&(ft=be.y-Hn/2)}if("end"===Je.overlayX&&!Nt||"start"===Je.overlayX&&Nt)xn=gt.width-be.x+this._viewportMargin,Kt=be.x-this._viewportMargin;else if("start"===Je.overlayX&&!Nt||"end"===Je.overlayX&&Nt)hn=be.x,Kt=gt.right-be.x;else{const Mn=Math.min(gt.right-be.x+gt.left,be.x),Hn=this._lastBoundingBoxSize.width;Kt=2*Mn,hn=be.x-Mn,Kt>Hn&&!this._isInitialRender&&!this._growAfterOpen&&(hn=be.x-Hn/2)}return{top:ft,left:hn,bottom:mt,right:xn,width:Kt,height:$t}}_setBoundingBoxStyles(be,Je){const gt=this._calculateBoundingBoxRect(be,Je);!this._isInitialRender&&!this._growAfterOpen&&(gt.height=Math.min(gt.height,this._lastBoundingBoxSize.height),gt.width=Math.min(gt.width,this._lastBoundingBoxSize.width));const Nt={};if(this._hasExactPosition())Nt.top=Nt.left="0",Nt.bottom=Nt.right=Nt.maxHeight=Nt.maxWidth="",Nt.width=Nt.height="100%";else{const $t=this._overlayRef.getConfig().maxHeight,ft=this._overlayRef.getConfig().maxWidth;Nt.height=(0,ze.HM)(gt.height),Nt.top=(0,ze.HM)(gt.top),Nt.bottom=(0,ze.HM)(gt.bottom),Nt.width=(0,ze.HM)(gt.width),Nt.left=(0,ze.HM)(gt.left),Nt.right=(0,ze.HM)(gt.right),Nt.alignItems="center"===Je.overlayX?"center":"end"===Je.overlayX?"flex-end":"flex-start",Nt.justifyContent="center"===Je.overlayY?"center":"bottom"===Je.overlayY?"flex-end":"flex-start",$t&&(Nt.maxHeight=(0,ze.HM)($t)),ft&&(Nt.maxWidth=(0,ze.HM)(ft))}this._lastBoundingBoxSize=gt,Ve(this._boundingBox.style,Nt)}_resetBoundingBoxStyles(){Ve(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ve(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(be,Je){const gt={},Nt=this._hasExactPosition(),$t=this._hasFlexibleDimensions,ft=this._overlayRef.getConfig();if(Nt){const Kt=this._viewportRuler.getViewportScrollPosition();Ve(gt,this._getExactOverlayY(Je,be,Kt)),Ve(gt,this._getExactOverlayX(Je,be,Kt))}else gt.position="static";let mt="",Re=this._getOffset(Je,"x"),zt=this._getOffset(Je,"y");Re&&(mt+=`translateX(${Re}px) `),zt&&(mt+=`translateY(${zt}px)`),gt.transform=mt.trim(),ft.maxHeight&&(Nt?gt.maxHeight=(0,ze.HM)(ft.maxHeight):$t&&(gt.maxHeight="")),ft.maxWidth&&(Nt?gt.maxWidth=(0,ze.HM)(ft.maxWidth):$t&&(gt.maxWidth="")),Ve(this._pane.style,gt)}_getExactOverlayY(be,Je,gt){let Nt={top:"",bottom:""},$t=this._getOverlayPoint(Je,this._overlayRect,be);this._isPushed&&($t=this._pushOverlayOnScreen($t,this._overlayRect,gt));let ft=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return $t.y-=ft,"bottom"===be.overlayY?Nt.bottom=this._document.documentElement.clientHeight-($t.y+this._overlayRect.height)+"px":Nt.top=(0,ze.HM)($t.y),Nt}_getExactOverlayX(be,Je,gt){let ft,Nt={left:"",right:""},$t=this._getOverlayPoint(Je,this._overlayRect,be);return this._isPushed&&($t=this._pushOverlayOnScreen($t,this._overlayRect,gt)),ft=this._isRtl()?"end"===be.overlayX?"left":"right":"end"===be.overlayX?"right":"left","right"===ft?Nt.right=this._document.documentElement.clientWidth-($t.x+this._overlayRect.width)+"px":Nt.left=(0,ze.HM)($t.x),Nt}_getScrollVisibility(){const be=this._getOriginRect(),Je=this._pane.getBoundingClientRect(),gt=this._scrollables.map(Nt=>Nt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:L(be,gt),isOriginOutsideView:ce(be,gt),isOverlayClipped:L(Je,gt),isOverlayOutsideView:ce(Je,gt)}}_subtractOverflows(be,...Je){return Je.reduce((gt,Nt)=>gt-Math.max(Nt,0),be)}_getNarrowedViewportRect(){const be=this._document.documentElement.clientWidth,Je=this._document.documentElement.clientHeight,gt=this._viewportRuler.getViewportScrollPosition();return{top:gt.top+this._viewportMargin,left:gt.left+this._viewportMargin,right:gt.left+be-this._viewportMargin,bottom:gt.top+Je-this._viewportMargin,width:be-2*this._viewportMargin,height:Je-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(be,Je){return"x"===Je?null==be.offsetX?this._offsetX:be.offsetX:null==be.offsetY?this._offsetY:be.offsetY}_validatePositions(){}_addPanelClasses(be){this._pane&&(0,ze.Eq)(be).forEach(Je=>{""!==Je&&-1===this._appliedPanelClasses.indexOf(Je)&&(this._appliedPanelClasses.push(Je),this._pane.classList.add(Je))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(be=>{this._pane.classList.remove(be)}),this._appliedPanelClasses=[])}_getOriginRect(){const be=this._origin;if(be instanceof N.SBq)return be.nativeElement.getBoundingClientRect();if(be instanceof Element)return be.getBoundingClientRect();const Je=be.width||0,gt=be.height||0;return{top:be.y,bottom:be.y+gt,left:be.x,right:be.x+Je,height:gt,width:Je}}}function Ve(ye,be){for(let Je in be)be.hasOwnProperty(Je)&&(ye[Je]=be[Je]);return ye}function He(ye){if("number"!=typeof ye&&null!=ye){const[be,Je]=ye.split(g);return Je&&"px"!==Je?null:parseFloat(be)}return ye||null}function X(ye){return{top:Math.floor(ye.top),right:Math.floor(ye.right),bottom:Math.floor(ye.bottom),left:Math.floor(ye.left),width:Math.floor(ye.width),height:Math.floor(ye.height)}}const Le="cdk-global-overlay-wrapper";class Te{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(be){const Je=be.getConfig();this._overlayRef=be,this._width&&!Je.width&&be.updateSize({width:this._width}),this._height&&!Je.height&&be.updateSize({height:this._height}),be.hostElement.classList.add(Le),this._isDisposed=!1}top(be=""){return this._bottomOffset="",this._topOffset=be,this._alignItems="flex-start",this}left(be=""){return this._rightOffset="",this._leftOffset=be,this._justifyContent="flex-start",this}bottom(be=""){return this._topOffset="",this._bottomOffset=be,this._alignItems="flex-end",this}right(be=""){return this._leftOffset="",this._rightOffset=be,this._justifyContent="flex-end",this}width(be=""){return this._overlayRef?this._overlayRef.updateSize({width:be}):this._width=be,this}height(be=""){return this._overlayRef?this._overlayRef.updateSize({height:be}):this._height=be,this}centerHorizontally(be=""){return this.left(be),this._justifyContent="center",this}centerVertically(be=""){return this.top(be),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const be=this._overlayRef.overlayElement.style,Je=this._overlayRef.hostElement.style,gt=this._overlayRef.getConfig(),{width:Nt,height:$t,maxWidth:ft,maxHeight:mt}=gt,Re=!("100%"!==Nt&&"100vw"!==Nt||ft&&"100%"!==ft&&"100vw"!==ft),zt=!("100%"!==$t&&"100vh"!==$t||mt&&"100%"!==mt&&"100vh"!==mt);be.position=this._cssPosition,be.marginLeft=Re?"0":this._leftOffset,be.marginTop=zt?"0":this._topOffset,be.marginBottom=this._bottomOffset,be.marginRight=this._rightOffset,Re?Je.justifyContent="flex-start":"center"===this._justifyContent?Je.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?Je.justifyContent="flex-end":"flex-end"===this._justifyContent&&(Je.justifyContent="flex-start"):Je.justifyContent=this._justifyContent,Je.alignItems=zt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const be=this._overlayRef.overlayElement.style,Je=this._overlayRef.hostElement,gt=Je.style;Je.classList.remove(Le),gt.justifyContent=gt.alignItems=be.marginTop=be.marginBottom=be.marginLeft=be.marginRight=be.position="",this._overlayRef=null,this._isDisposed=!0}}let Ze=(()=>{class ye{constructor(Je,gt,Nt,$t){this._viewportRuler=Je,this._document=gt,this._platform=Nt,this._overlayContainer=$t}global(){return new Te}flexibleConnectedTo(Je){return new qe(Je,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ye.\u0275fac=function(Je){return new(Je||ye)(N.LFG(a.rL),N.LFG(C.K0),N.LFG(p.t4),N.LFG(it))},ye.\u0275prov=N.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),he=(()=>{class ye{constructor(Je){this._attachedOverlays=[],this._document=Je}ngOnDestroy(){this.detach()}add(Je){this.remove(Je),this._attachedOverlays.push(Je)}remove(Je){const gt=this._attachedOverlays.indexOf(Je);gt>-1&&this._attachedOverlays.splice(gt,1),0===this._attachedOverlays.length&&this.detach()}}return ye.\u0275fac=function(Je){return new(Je||ye)(N.LFG(C.K0))},ye.\u0275prov=N.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Ne=(()=>{class ye extends he{constructor(Je){super(Je),this._keydownListener=gt=>{const Nt=this._attachedOverlays;for(let $t=Nt.length-1;$t>-1;$t--)if(Nt[$t]._keydownEvents.observers.length>0){Nt[$t]._keydownEvents.next(gt);break}}}add(Je){super.add(Je),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 ye.\u0275fac=function(Je){return new(Je||ye)(N.LFG(C.K0))},ye.\u0275prov=N.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Me=(()=>{class ye extends he{constructor(Je,gt){super(Je),this._platform=gt,this._cursorStyleIsSet=!1,this._pointerDownListener=Nt=>{this._pointerDownEventTarget=(0,p.sA)(Nt)},this._clickListener=Nt=>{const $t=(0,p.sA)(Nt),ft="click"===Nt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:$t;this._pointerDownEventTarget=null;const mt=this._attachedOverlays.slice();for(let Re=mt.length-1;Re>-1;Re--){const zt=mt[Re];if(!(zt._outsidePointerEvents.observers.length<1)&&zt.hasAttached()){if(zt.overlayElement.contains($t)||zt.overlayElement.contains(ft))break;zt._outsidePointerEvents.next(Nt)}}}}add(Je){if(super.add(Je),!this._isAttached){const gt=this._document.body;gt.addEventListener("pointerdown",this._pointerDownListener,!0),gt.addEventListener("click",this._clickListener,!0),gt.addEventListener("auxclick",this._clickListener,!0),gt.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=gt.style.cursor,gt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Je=this._document.body;Je.removeEventListener("pointerdown",this._pointerDownListener,!0),Je.removeEventListener("click",this._clickListener,!0),Je.removeEventListener("auxclick",this._clickListener,!0),Je.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Je.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return ye.\u0275fac=function(Je){return new(Je||ye)(N.LFG(C.K0),N.LFG(p.t4))},ye.\u0275prov=N.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),ke=0,G=(()=>{class ye{constructor(Je,gt,Nt,$t,ft,mt,Re,zt,Kt,hn,xn){this.scrollStrategies=Je,this._overlayContainer=gt,this._componentFactoryResolver=Nt,this._positionBuilder=$t,this._keyboardDispatcher=ft,this._injector=mt,this._ngZone=Re,this._document=zt,this._directionality=Kt,this._location=hn,this._outsideClickDispatcher=xn}create(Je){const gt=this._createHostElement(),Nt=this._createPaneElement(gt),$t=this._createPortalOutlet(Nt),ft=new ge(Je);return ft.direction=ft.direction||this._directionality.value,new rt($t,gt,Nt,ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(Je){const gt=this._document.createElement("div");return gt.id="cdk-overlay-"+ke++,gt.classList.add("cdk-overlay-pane"),Je.appendChild(gt),gt}_createHostElement(){const Je=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Je),Je}_createPortalOutlet(Je){return this._appRef||(this._appRef=this._injector.get(N.z2F)),new r.u0(Je,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ye.\u0275fac=function(Je){return new(Je||ye)(N.LFG(we),N.LFG(it),N.LFG(N._Vd),N.LFG(Ze),N.LFG(Ne),N.LFG(N.zs3),N.LFG(N.R0b),N.LFG(C.K0),N.LFG(K.Is),N.LFG(C.Ye),N.LFG(Me))},ye.\u0275prov=N.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Jt={provide:new N.OlP("cdk-connected-overlay-scroll-strategy"),deps:[G],useFactory:function(ye){return()=>ye.scrollStrategies.reposition()}};let Wt=(()=>{class ye{}return ye.\u0275fac=function(Je){return new(Je||ye)},ye.\u0275mod=N.oAB({type:ye}),ye.\u0275inj=N.cJS({providers:[G,Jt],imports:[[K.vT,r.eL,a.Cl],a.Cl]}),ye})()},925:(St,oe,S)=>{"use strict";S.d(oe,{t4:()=>ze,ud:()=>p,sA:()=>J,ht:()=>L,kV:()=>ce,Oy:()=>we,i$:()=>E,Mq:()=>U});var a=S(5e3),C=S(9808);let N;try{N="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ge){N=!1}let P,x,xe,ze=(()=>{class ge{constructor(Ce){this._platformId=Ce,this.isBrowser=this._platformId?(0,C.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&&!N)&&"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 ge.\u0275fac=function(Ce){return new(Ce||ge)(a.LFG(a.Lbi))},ge.\u0275prov=a.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})(),p=(()=>{class ge{}return ge.\u0275fac=function(Ce){return new(Ce||ge)},ge.\u0275mod=a.oAB({type:ge}),ge.\u0275inj=a.cJS({}),ge})();function E(ge){return function(){if(null==P&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>P=!0}))}finally{P=P||!1}return P}()?ge:!!ge.capture}function U(){if(null==x){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return x=!1,x;if("scrollBehavior"in document.documentElement.style)x=!0;else{const ge=Element.prototype.scrollTo;x=!!ge&&!/\{\s*\[native code\]\s*\}/.test(ge.toString())}}return x}function ce(ge){if(function(){if(null==xe){const ge="undefined"!=typeof document?document.head:null;xe=!(!ge||!ge.createShadowRoot&&!ge.attachShadow)}return xe}()){const fe=ge.getRootNode?ge.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&fe instanceof ShadowRoot)return fe}return null}function L(){let ge="undefined"!=typeof document&&document?document.activeElement:null;for(;ge&&ge.shadowRoot;){const fe=ge.shadowRoot.activeElement;if(fe===ge)break;ge=fe}return ge}function J(ge){return ge.composedPath?ge.composedPath()[0]:ge.target}function we(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(St,oe,S)=>{"use strict";S.d(oe,{en:()=>x,Pl:()=>L,C5:()=>H,u0:()=>le,eL:()=>we,UE:()=>E});var a=S(5e3),C=S(9808);class P{attach(Ce){return this._attachedHost=Ce,Ce.attach(this)}detach(){let Ce=this._attachedHost;null!=Ce&&(this._attachedHost=null,Ce.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ce){this._attachedHost=Ce}}class H extends P{constructor(Ce,e,z,je){super(),this.component=Ce,this.viewContainerRef=e,this.injector=z,this.componentFactoryResolver=je}}class E extends P{constructor(Ce,e,z){super(),this.templateRef=Ce,this.viewContainerRef=e,this.context=z}get origin(){return this.templateRef.elementRef}attach(Ce,e=this.context){return this.context=e,super.attach(Ce)}detach(){return this.context=void 0,super.detach()}}class ee extends P{constructor(Ce){super(),this.element=Ce instanceof a.SBq?Ce.nativeElement:Ce}}class x{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Ce){return Ce instanceof H?(this._attachedPortal=Ce,this.attachComponentPortal(Ce)):Ce instanceof E?(this._attachedPortal=Ce,this.attachTemplatePortal(Ce)):this.attachDomPortal&&Ce instanceof ee?(this._attachedPortal=Ce,this.attachDomPortal(Ce)):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(Ce){this._disposeFn=Ce}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class le extends x{constructor(Ce,e,z,je,rt){super(),this.outletElement=Ce,this._componentFactoryResolver=e,this._appRef=z,this._defaultInjector=je,this.attachDomPortal=it=>{const ct=it.element,g=this._document.createComment("dom-portal");ct.parentNode.insertBefore(g,ct),this.outletElement.appendChild(ct),this._attachedPortal=it,super.setDisposeFn(()=>{g.parentNode&&g.parentNode.replaceChild(ct,g)})},this._document=rt}attachComponentPortal(Ce){const z=(Ce.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ce.component);let je;return Ce.viewContainerRef?(je=Ce.viewContainerRef.createComponent(z,Ce.viewContainerRef.length,Ce.injector||Ce.viewContainerRef.injector),this.setDisposeFn(()=>je.destroy())):(je=z.create(Ce.injector||this._defaultInjector),this._appRef.attachView(je.hostView),this.setDisposeFn(()=>{this._appRef.detachView(je.hostView),je.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(je)),this._attachedPortal=Ce,je}attachTemplatePortal(Ce){let e=Ce.viewContainerRef,z=e.createEmbeddedView(Ce.templateRef,Ce.context);return z.rootNodes.forEach(je=>this.outletElement.appendChild(je)),z.detectChanges(),this.setDisposeFn(()=>{let je=e.indexOf(z);-1!==je&&e.remove(je)}),this._attachedPortal=Ce,z}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Ce){return Ce.hostView.rootNodes[0]}}let L=(()=>{class fe extends x{constructor(e,z,je){super(),this._componentFactoryResolver=e,this._viewContainerRef=z,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=rt=>{const it=rt.element,ct=this._document.createComment("dom-portal");rt.setAttachedHost(this),it.parentNode.insertBefore(ct,it),this._getRootNode().appendChild(it),this._attachedPortal=rt,super.setDisposeFn(()=>{ct.parentNode&&ct.parentNode.replaceChild(it,ct)})},this._document=je}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const z=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,rt=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),it=z.createComponent(rt,z.length,e.injector||z.injector);return z!==this._viewContainerRef&&this._getRootNode().appendChild(it.hostView.rootNodes[0]),super.setDisposeFn(()=>it.destroy()),this._attachedPortal=e,this._attachedRef=it,this.attached.emit(it),it}attachTemplatePortal(e){e.setAttachedHost(this);const z=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=z,this.attached.emit(z),z}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return fe.\u0275fac=function(e){return new(e||fe)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(C.K0))},fe.\u0275dir=a.lG2({type:fe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),fe})(),we=(()=>{class fe{}return fe.\u0275fac=function(e){return new(e||fe)},fe.\u0275mod=a.oAB({type:fe}),fe.\u0275inj=a.cJS({}),fe})()},2411:(St,oe,S)=>{"use strict";S.d(oe,{ZD:()=>ot,mF:()=>X,Cl:()=>We,rL:()=>Ze});var a=S(3191),C=S(5e3),N=S(4408);let p,ze=1;const K={};function r(ut){return ut in K&&(delete K[ut],!0)}const O={setImmediate(ut){const Mt=ze++;return K[Mt]=!0,p||(p=Promise.resolve()),p.then(()=>r(Mt)&&ut()),Mt},clearImmediate(ut){r(ut)}},{setImmediate:H,clearImmediate:E}=O,ee={setImmediate(...ut){const{delegate:Mt}=ee;return((null==Mt?void 0:Mt.setImmediate)||H)(...ut)},clearImmediate(ut){const{delegate:Mt}=ee;return((null==Mt?void 0:Mt.clearImmediate)||E)(ut)},delegate:void 0};var U=S(7565);new class extends U.v{flush(Mt){this._active=!0;const At=this._scheduled;this._scheduled=void 0;const{actions:Jt}=this;let Wt;Mt=Mt||Jt.shift();do{if(Wt=Mt.execute(Mt.state,Mt.delay))break}while((Mt=Jt[0])&&Mt.id===At&&Jt.shift());if(this._active=!1,Wt){for(;(Mt=Jt[0])&&Mt.id===At&&Jt.shift();)Mt.unsubscribe();throw Wt}}}(class extends N.o{constructor(Mt,At){super(Mt,At),this.scheduler=Mt,this.work=At}requestAsyncId(Mt,At,Jt=0){return null!==Jt&&Jt>0?super.requestAsyncId(Mt,At,Jt):(Mt.actions.push(this),Mt._scheduled||(Mt._scheduled=ee.setImmediate(Mt.flush.bind(Mt,void 0))))}recycleAsyncId(Mt,At,Jt=0){if(null!=Jt&&Jt>0||null==Jt&&this.delay>0)return super.recycleAsyncId(Mt,At,Jt);Mt.actions.some(Wt=>Wt.id===At)||(ee.clearImmediate(At),Mt._scheduled=void 0)}});var ce=S(7579),L=S(9646),J=S(8306),we=S(4968),fe=(S(6406),S(3601)),Ce=S(9300),e=S(9808),z=S(925),je=S(226);let X=(()=>{class ut{constructor(At,Jt,Wt){this._ngZone=At,this._platform=Jt,this._scrolled=new ce.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Wt}register(At){this.scrollContainers.has(At)||this.scrollContainers.set(At,At.elementScrolled().subscribe(()=>this._scrolled.next(At)))}deregister(At){const Jt=this.scrollContainers.get(At);Jt&&(Jt.unsubscribe(),this.scrollContainers.delete(At))}scrolled(At=20){return this._platform.isBrowser?new J.y(Jt=>{this._globalSubscription||this._addGlobalListener();const Wt=At>0?this._scrolled.pipe((0,fe.e)(At)).subscribe(Jt):this._scrolled.subscribe(Jt);return this._scrolledCount++,()=>{Wt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,L.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((At,Jt)=>this.deregister(Jt)),this._scrolled.complete()}ancestorScrolled(At,Jt){const Wt=this.getAncestorScrollContainers(At);return this.scrolled(Jt).pipe((0,Ce.h)(Sn=>!Sn||Wt.indexOf(Sn)>-1))}getAncestorScrollContainers(At){const Jt=[];return this.scrollContainers.forEach((Wt,Sn)=>{this._scrollableContainsElement(Sn,At)&&Jt.push(Sn)}),Jt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(At,Jt){let Wt=(0,a.fI)(Jt),Sn=At.getElementRef().nativeElement;do{if(Wt==Sn)return!0}while(Wt=Wt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const At=this._getWindow();return(0,we.R)(At.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ut.\u0275fac=function(At){return new(At||ut)(C.LFG(C.R0b),C.LFG(z.t4),C.LFG(e.K0,8))},ut.\u0275prov=C.Yz7({token:ut,factory:ut.\u0275fac,providedIn:"root"}),ut})(),Ze=(()=>{class ut{constructor(At,Jt,Wt){this._platform=At,this._change=new ce.x,this._changeListener=Sn=>{this._change.next(Sn)},this._document=Wt,Jt.runOutsideAngular(()=>{if(At.isBrowser){const Sn=this._getWindow();Sn.addEventListener("resize",this._changeListener),Sn.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const At=this._getWindow();At.removeEventListener("resize",this._changeListener),At.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const At={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),At}getViewportRect(){const At=this.getViewportScrollPosition(),{width:Jt,height:Wt}=this.getViewportSize();return{top:At.top,left:At.left,bottom:At.top+Wt,right:At.left+Jt,height:Wt,width:Jt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const At=this._document,Jt=this._getWindow(),Wt=At.documentElement,Sn=Wt.getBoundingClientRect();return{top:-Sn.top||At.body.scrollTop||Jt.scrollY||Wt.scrollTop||0,left:-Sn.left||At.body.scrollLeft||Jt.scrollX||Wt.scrollLeft||0}}change(At=20){return At>0?this._change.pipe((0,fe.e)(At)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const At=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:At.innerWidth,height:At.innerHeight}:{width:0,height:0}}}return ut.\u0275fac=function(At){return new(At||ut)(C.LFG(z.t4),C.LFG(C.R0b),C.LFG(e.K0,8))},ut.\u0275prov=C.Yz7({token:ut,factory:ut.\u0275fac,providedIn:"root"}),ut})(),ot=(()=>{class ut{}return ut.\u0275fac=function(At){return new(At||ut)},ut.\u0275mod=C.oAB({type:ut}),ut.\u0275inj=C.cJS({}),ut})(),We=(()=>{class ut{}return ut.\u0275fac=function(At){return new(At||ut)},ut.\u0275mod=C.oAB({type:ut}),ut.\u0275inj=C.cJS({imports:[[je.vT,z.ud,ot],je.vT,ot]}),ut})()},9808:(St,oe,S)=>{"use strict";S.d(oe,{mr:()=>L,ez:()=>ki,H9:()=>Yt,K0:()=>r,uU:()=>Wr,Do:()=>we,V_:()=>H,Ye:()=>ge,S$:()=>re,mk:()=>Pr,sg:()=>wn,O5:()=>vn,PC:()=>Lr,RF:()=>vr,n9:()=>Ss,ED:()=>ds,tP:()=>eo,b0:()=>J,lw:()=>O,EM:()=>$s,JF:()=>aa,NF:()=>Es,PM:()=>ir,w_:()=>K,bD:()=>Ci,q:()=>N,Mx:()=>Ri,HT:()=>p});var a=S(5e3);let C=null;function N(){return C}function p(Ye){C||(C=Ye)}class K{}const r=new a.OlP("DocumentToken");let O=(()=>{class Ye{historyGo(et){throw new Error("Not implemented")}}return Ye.\u0275fac=function(et){return new(et||Ye)},Ye.\u0275prov=a.Yz7({token:Ye,factory:function(){return(0,a.LFG)(E)},providedIn:"platform"}),Ye})();const H=new a.OlP("Location Initialized");let E=(()=>{class Ye extends O{constructor(et){super(),this._doc=et,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return N().getBaseHref(this._doc)}onPopState(et){const Pt=N().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("popstate",et,!1),()=>Pt.removeEventListener("popstate",et)}onHashChange(et){const Pt=N().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("hashchange",et,!1),()=>Pt.removeEventListener("hashchange",et)}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(et){this.location.pathname=et}pushState(et,Pt,dn){ee()?this._history.pushState(et,Pt,dn):this.location.hash=dn}replaceState(et,Pt,dn){ee()?this._history.replaceState(et,Pt,dn):this.location.hash=dn}forward(){this._history.forward()}back(){this._history.back()}historyGo(et=0){this._history.go(et)}getState(){return this._history.state}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.LFG(r))},Ye.\u0275prov=a.Yz7({token:Ye,factory:function(){return new E((0,a.LFG)(r))},providedIn:"platform"}),Ye})();function ee(){return!!window.history.pushState}function U(Ye,Et){if(0==Ye.length)return Et;if(0==Et.length)return Ye;let et=0;return Ye.endsWith("/")&&et++,Et.startsWith("/")&&et++,2==et?Ye+Et.substring(1):1==et?Ye+Et:Ye+"/"+Et}function le(Ye){const Et=Ye.match(/#|\?|$/),et=Et&&Et.index||Ye.length;return Ye.slice(0,et-("/"===Ye[et-1]?1:0))+Ye.slice(et)}function xe(Ye){return Ye&&"?"!==Ye[0]?"?"+Ye:Ye}let re=(()=>{class Ye{historyGo(et){throw new Error("Not implemented")}}return Ye.\u0275fac=function(et){return new(et||Ye)},Ye.\u0275prov=a.Yz7({token:Ye,factory:function(){return function(Ye){const Et=(0,a.LFG)(r).location;return new J((0,a.LFG)(O),Et&&Et.origin||"")}()},providedIn:"root"}),Ye})();const L=new a.OlP("appBaseHref");let J=(()=>{class Ye extends re{constructor(et,Pt){if(super(),this._platformLocation=et,this._removeListenerFns=[],null==Pt&&(Pt=this._platformLocation.getBaseHrefFromDOM()),null==Pt)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Pt}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(et){this._removeListenerFns.push(this._platformLocation.onPopState(et),this._platformLocation.onHashChange(et))}getBaseHref(){return this._baseHref}prepareExternalUrl(et){return U(this._baseHref,et)}path(et=!1){const Pt=this._platformLocation.pathname+xe(this._platformLocation.search),dn=this._platformLocation.hash;return dn&&et?`${Pt}${dn}`:Pt}pushState(et,Pt,dn,$n){const li=this.prepareExternalUrl(dn+xe($n));this._platformLocation.pushState(et,Pt,li)}replaceState(et,Pt,dn,$n){const li=this.prepareExternalUrl(dn+xe($n));this._platformLocation.replaceState(et,Pt,li)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(et=0){var Pt,dn;null===(dn=(Pt=this._platformLocation).historyGo)||void 0===dn||dn.call(Pt,et)}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.LFG(O),a.LFG(L,8))},Ye.\u0275prov=a.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),we=(()=>{class Ye extends re{constructor(et,Pt){super(),this._platformLocation=et,this._baseHref="",this._removeListenerFns=[],null!=Pt&&(this._baseHref=Pt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(et){this._removeListenerFns.push(this._platformLocation.onPopState(et),this._platformLocation.onHashChange(et))}getBaseHref(){return this._baseHref}path(et=!1){let Pt=this._platformLocation.hash;return null==Pt&&(Pt="#"),Pt.length>0?Pt.substring(1):Pt}prepareExternalUrl(et){const Pt=U(this._baseHref,et);return Pt.length>0?"#"+Pt:Pt}pushState(et,Pt,dn,$n){let li=this.prepareExternalUrl(dn+xe($n));0==li.length&&(li=this._platformLocation.pathname),this._platformLocation.pushState(et,Pt,li)}replaceState(et,Pt,dn,$n){let li=this.prepareExternalUrl(dn+xe($n));0==li.length&&(li=this._platformLocation.pathname),this._platformLocation.replaceState(et,Pt,li)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(et=0){var Pt,dn;null===(dn=(Pt=this._platformLocation).historyGo)||void 0===dn||dn.call(Pt,et)}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.LFG(O),a.LFG(L,8))},Ye.\u0275prov=a.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),ge=(()=>{class Ye{constructor(et,Pt){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=et;const dn=this._platformStrategy.getBaseHref();this._platformLocation=Pt,this._baseHref=le(e(dn)),this._platformStrategy.onPopState($n=>{this._subject.emit({url:this.path(!0),pop:!0,state:$n.state,type:$n.type})})}path(et=!1){return this.normalize(this._platformStrategy.path(et))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(et,Pt=""){return this.path()==this.normalize(et+xe(Pt))}normalize(et){return Ye.stripTrailingSlash(function(Ye,Et){return Ye&&Et.startsWith(Ye)?Et.substring(Ye.length):Et}(this._baseHref,e(et)))}prepareExternalUrl(et){return et&&"/"!==et[0]&&(et="/"+et),this._platformStrategy.prepareExternalUrl(et)}go(et,Pt="",dn=null){this._platformStrategy.pushState(dn,"",et,Pt),this._notifyUrlChangeListeners(this.prepareExternalUrl(et+xe(Pt)),dn)}replaceState(et,Pt="",dn=null){this._platformStrategy.replaceState(dn,"",et,Pt),this._notifyUrlChangeListeners(this.prepareExternalUrl(et+xe(Pt)),dn)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(et=0){var Pt,dn;null===(dn=(Pt=this._platformStrategy).historyGo)||void 0===dn||dn.call(Pt,et)}onUrlChange(et){this._urlChangeListeners.push(et),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Pt=>{this._notifyUrlChangeListeners(Pt.url,Pt.state)}))}_notifyUrlChangeListeners(et="",Pt){this._urlChangeListeners.forEach(dn=>dn(et,Pt))}subscribe(et,Pt,dn){return this._subject.subscribe({next:et,error:Pt,complete:dn})}}return Ye.normalizeQueryParams=xe,Ye.joinWithSlash=U,Ye.stripTrailingSlash=le,Ye.\u0275fac=function(et){return new(et||Ye)(a.LFG(re),a.LFG(O))},Ye.\u0275prov=a.Yz7({token:Ye,factory:function(){return new ge((0,a.LFG)(re),(0,a.LFG)(O))},providedIn:"root"}),Ye})();function e(Ye){return Ye.replace(/\/index.html$/,"")}const z={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var je=(()=>((je=je||{})[je.Decimal=0]="Decimal",je[je.Percent=1]="Percent",je[je.Currency=2]="Currency",je[je.Scientific=3]="Scientific",je))(),rt=(()=>((rt=rt||{})[rt.Zero=0]="Zero",rt[rt.One=1]="One",rt[rt.Two=2]="Two",rt[rt.Few=3]="Few",rt[rt.Many=4]="Many",rt[rt.Other=5]="Other",rt))(),it=(()=>((it=it||{})[it.Format=0]="Format",it[it.Standalone=1]="Standalone",it))(),ct=(()=>((ct=ct||{})[ct.Narrow=0]="Narrow",ct[ct.Abbreviated=1]="Abbreviated",ct[ct.Wide=2]="Wide",ct[ct.Short=3]="Short",ct))(),g=(()=>((g=g||{})[g.Short=0]="Short",g[g.Medium=1]="Medium",g[g.Long=2]="Long",g[g.Full=3]="Full",g))(),qe=(()=>((qe=qe||{})[qe.Decimal=0]="Decimal",qe[qe.Group=1]="Group",qe[qe.List=2]="List",qe[qe.PercentSign=3]="PercentSign",qe[qe.PlusSign=4]="PlusSign",qe[qe.MinusSign=5]="MinusSign",qe[qe.Exponential=6]="Exponential",qe[qe.SuperscriptingExponent=7]="SuperscriptingExponent",qe[qe.PerMille=8]="PerMille",qe[qe.Infinity=9]="Infinity",qe[qe.NaN=10]="NaN",qe[qe.TimeSeparator=11]="TimeSeparator",qe[qe.CurrencyDecimal=12]="CurrencyDecimal",qe[qe.CurrencyGroup=13]="CurrencyGroup",qe))();function Me(Ye,Et){return gt((0,a.cg1)(Ye)[a.wAp.DateFormat],Et)}function ke(Ye,Et){return gt((0,a.cg1)(Ye)[a.wAp.TimeFormat],Et)}function G(Ye,Et){return gt((0,a.cg1)(Ye)[a.wAp.DateTimeFormat],Et)}function ot(Ye,Et){const et=(0,a.cg1)(Ye),Pt=et[a.wAp.NumberSymbols][Et];if(void 0===Pt){if(Et===qe.CurrencyDecimal)return et[a.wAp.NumberSymbols][qe.Decimal];if(Et===qe.CurrencyGroup)return et[a.wAp.NumberSymbols][qe.Group]}return Pt}const Wt=a.kL8;function Sn(Ye){if(!Ye[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ye[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gt(Ye,Et){for(let et=Et;et>-1;et--)if(void 0!==Ye[et])return Ye[et];throw new Error("Locale data API: locale data undefined")}function Nt(Ye){const[Et,et]=Ye.split(":");return{hours:+Et,minutes:+et}}const Re=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zt={},Kt=/((?:[^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 hn=(()=>((hn=hn||{})[hn.Short=0]="Short",hn[hn.ShortGMT=1]="ShortGMT",hn[hn.Long=2]="Long",hn[hn.Extended=3]="Extended",hn))(),xn=(()=>((xn=xn||{})[xn.FullYear=0]="FullYear",xn[xn.Month=1]="Month",xn[xn.Date=2]="Date",xn[xn.Hours=3]="Hours",xn[xn.Minutes=4]="Minutes",xn[xn.Seconds=5]="Seconds",xn[xn.FractionalSeconds=6]="FractionalSeconds",xn[xn.Day=7]="Day",xn))(),Mn=(()=>((Mn=Mn||{})[Mn.DayPeriods=0]="DayPeriods",Mn[Mn.Days=1]="Days",Mn[Mn.Months=2]="Months",Mn[Mn.Eras=3]="Eras",Mn))();function Hn(Ye,Et,et,Pt){let dn=function(Ye){if(on(Ye))return Ye;if("number"==typeof Ye&&!isNaN(Ye))return new Date(Ye);if("string"==typeof Ye){if(Ye=Ye.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ye)){const[dn,$n=1,li=1]=Ye.split("-").map(Bi=>+Bi);return pn(dn,$n-1,li)}const et=parseFloat(Ye);if(!isNaN(Ye-et))return new Date(et);let Pt;if(Pt=Ye.match(Re))return function(Ye){const Et=new Date(0);let et=0,Pt=0;const dn=Ye[8]?Et.setUTCFullYear:Et.setFullYear,$n=Ye[8]?Et.setUTCHours:Et.setHours;Ye[9]&&(et=Number(Ye[9]+Ye[10]),Pt=Number(Ye[9]+Ye[11])),dn.call(Et,Number(Ye[1]),Number(Ye[2])-1,Number(Ye[3]));const li=Number(Ye[4]||0)-et,Bi=Number(Ye[5]||0)-Pt,tt=Number(Ye[6]||0),$e=Math.floor(1e3*parseFloat("0."+(Ye[7]||0)));return $n.call(Et,li,Bi,tt,$e),Et}(Pt)}const Et=new Date(Ye);if(!on(Et))throw new Error(`Unable to convert "${Ye}" into a date`);return Et}(Ye);Et=Yn(et,Et)||Et;let Bi,li=[];for(;Et;){if(Bi=Kt.exec(Et),!Bi){li.push(Et);break}{li=li.concat(Bi.slice(1));const De=li.pop();if(!De)break;Et=De}}let tt=dn.getTimezoneOffset();Pt&&(tt=Zi(Pt,tt),dn=function(Ye,Et,et){const dn=Ye.getTimezoneOffset();return function(Ye,Et){return(Ye=new Date(Ye.getTime())).setMinutes(Ye.getMinutes()+Et),Ye}(Ye,-1*(Zi(Et,dn)-dn))}(dn,Pt));let $e="";return li.forEach(De=>{const kt=function(Ye){if(An[Ye])return An[Ye];let Et;switch(Ye){case"G":case"GG":case"GGG":Et=F(Mn.Eras,ct.Abbreviated);break;case"GGGG":Et=F(Mn.Eras,ct.Wide);break;case"GGGGG":Et=F(Mn.Eras,ct.Narrow);break;case"y":Et=Rt(xn.FullYear,1,0,!1,!0);break;case"yy":Et=Rt(xn.FullYear,2,0,!0,!0);break;case"yyy":Et=Rt(xn.FullYear,3,0,!1,!0);break;case"yyyy":Et=Rt(xn.FullYear,4,0,!1,!0);break;case"Y":Et=ni(1);break;case"YY":Et=ni(2,!0);break;case"YYY":Et=ni(3);break;case"YYYY":Et=ni(4);break;case"M":case"L":Et=Rt(xn.Month,1,1);break;case"MM":case"LL":Et=Rt(xn.Month,2,1);break;case"MMM":Et=F(Mn.Months,ct.Abbreviated);break;case"MMMM":Et=F(Mn.Months,ct.Wide);break;case"MMMMM":Et=F(Mn.Months,ct.Narrow);break;case"LLL":Et=F(Mn.Months,ct.Abbreviated,it.Standalone);break;case"LLLL":Et=F(Mn.Months,ct.Wide,it.Standalone);break;case"LLLLL":Et=F(Mn.Months,ct.Narrow,it.Standalone);break;case"w":Et=Qn(1);break;case"ww":Et=Qn(2);break;case"W":Et=Qn(1,!0);break;case"d":Et=Rt(xn.Date,1);break;case"dd":Et=Rt(xn.Date,2);break;case"c":case"cc":Et=Rt(xn.Day,1);break;case"ccc":Et=F(Mn.Days,ct.Abbreviated,it.Standalone);break;case"cccc":Et=F(Mn.Days,ct.Wide,it.Standalone);break;case"ccccc":Et=F(Mn.Days,ct.Narrow,it.Standalone);break;case"cccccc":Et=F(Mn.Days,ct.Short,it.Standalone);break;case"E":case"EE":case"EEE":Et=F(Mn.Days,ct.Abbreviated);break;case"EEEE":Et=F(Mn.Days,ct.Wide);break;case"EEEEE":Et=F(Mn.Days,ct.Narrow);break;case"EEEEEE":Et=F(Mn.Days,ct.Short);break;case"a":case"aa":case"aaa":Et=F(Mn.DayPeriods,ct.Abbreviated);break;case"aaaa":Et=F(Mn.DayPeriods,ct.Wide);break;case"aaaaa":Et=F(Mn.DayPeriods,ct.Narrow);break;case"b":case"bb":case"bbb":Et=F(Mn.DayPeriods,ct.Abbreviated,it.Standalone,!0);break;case"bbbb":Et=F(Mn.DayPeriods,ct.Wide,it.Standalone,!0);break;case"bbbbb":Et=F(Mn.DayPeriods,ct.Narrow,it.Standalone,!0);break;case"B":case"BB":case"BBB":Et=F(Mn.DayPeriods,ct.Abbreviated,it.Format,!0);break;case"BBBB":Et=F(Mn.DayPeriods,ct.Wide,it.Format,!0);break;case"BBBBB":Et=F(Mn.DayPeriods,ct.Narrow,it.Format,!0);break;case"h":Et=Rt(xn.Hours,1,-12);break;case"hh":Et=Rt(xn.Hours,2,-12);break;case"H":Et=Rt(xn.Hours,1);break;case"HH":Et=Rt(xn.Hours,2);break;case"m":Et=Rt(xn.Minutes,1);break;case"mm":Et=Rt(xn.Minutes,2);break;case"s":Et=Rt(xn.Seconds,1);break;case"ss":Et=Rt(xn.Seconds,2);break;case"S":Et=Rt(xn.FractionalSeconds,1);break;case"SS":Et=Rt(xn.FractionalSeconds,2);break;case"SSS":Et=Rt(xn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Et=Q(hn.Short);break;case"ZZZZZ":Et=Q(hn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Et=Q(hn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Et=Q(hn.Long);break;default:return null}return An[Ye]=Et,Et}(De);$e+=kt?kt(dn,et,tt):"''"===De?"'":De.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),$e}function pn(Ye,Et,et){const Pt=new Date(0);return Pt.setFullYear(Ye,Et,et),Pt.setHours(0,0,0),Pt}function Yn(Ye,Et){const et=function(Ye){return(0,a.cg1)(Ye)[a.wAp.LocaleId]}(Ye);if(zt[et]=zt[et]||{},zt[et][Et])return zt[et][Et];let Pt="";switch(Et){case"shortDate":Pt=Me(Ye,g.Short);break;case"mediumDate":Pt=Me(Ye,g.Medium);break;case"longDate":Pt=Me(Ye,g.Long);break;case"fullDate":Pt=Me(Ye,g.Full);break;case"shortTime":Pt=ke(Ye,g.Short);break;case"mediumTime":Pt=ke(Ye,g.Medium);break;case"longTime":Pt=ke(Ye,g.Long);break;case"fullTime":Pt=ke(Ye,g.Full);break;case"short":const dn=Yn(Ye,"shortTime"),$n=Yn(Ye,"shortDate");Pt=_t(G(Ye,g.Short),[dn,$n]);break;case"medium":const li=Yn(Ye,"mediumTime"),Bi=Yn(Ye,"mediumDate");Pt=_t(G(Ye,g.Medium),[li,Bi]);break;case"long":const tt=Yn(Ye,"longTime"),$e=Yn(Ye,"longDate");Pt=_t(G(Ye,g.Long),[tt,$e]);break;case"full":const De=Yn(Ye,"fullTime"),kt=Yn(Ye,"fullDate");Pt=_t(G(Ye,g.Full),[De,kt])}return Pt&&(zt[et][Et]=Pt),Pt}function _t(Ye,Et){return Et&&(Ye=Ye.replace(/\{([^}]+)}/g,function(et,Pt){return null!=Et&&Pt in Et?Et[Pt]:et})),Ye}function Tt(Ye,Et,et="-",Pt,dn){let $n="";(Ye<0||dn&&Ye<=0)&&(dn?Ye=1-Ye:(Ye=-Ye,$n=et));let li=String(Ye);for(;li.length0||Bi>-et)&&(Bi+=et),Ye===xn.Hours)0===Bi&&-12===et&&(Bi=12);else if(Ye===xn.FractionalSeconds)return function(Ye,Et){return Tt(Ye,3).substr(0,Et)}(Bi,Et);const tt=ot(li,qe.MinusSign);return Tt(Bi,Et,tt,Pt,dn)}}function F(Ye,Et,et=it.Format,Pt=!1){return function(dn,$n){return function(Ye,Et,et,Pt,dn,$n){switch(et){case Mn.Months:return function(Ye,Et,et){const Pt=(0,a.cg1)(Ye),$n=gt([Pt[a.wAp.MonthsFormat],Pt[a.wAp.MonthsStandalone]],Et);return gt($n,et)}(Et,dn,Pt)[Ye.getMonth()];case Mn.Days:return function(Ye,Et,et){const Pt=(0,a.cg1)(Ye),$n=gt([Pt[a.wAp.DaysFormat],Pt[a.wAp.DaysStandalone]],Et);return gt($n,et)}(Et,dn,Pt)[Ye.getDay()];case Mn.DayPeriods:const li=Ye.getHours(),Bi=Ye.getMinutes();if($n){const $e=function(Ye){const Et=(0,a.cg1)(Ye);return Sn(Et),(Et[a.wAp.ExtraData][2]||[]).map(Pt=>"string"==typeof Pt?Nt(Pt):[Nt(Pt[0]),Nt(Pt[1])])}(Et),De=function(Ye,Et,et){const Pt=(0,a.cg1)(Ye);Sn(Pt);const $n=gt([Pt[a.wAp.ExtraData][0],Pt[a.wAp.ExtraData][1]],Et)||[];return gt($n,et)||[]}(Et,dn,Pt),kt=$e.findIndex(Ln=>{if(Array.isArray(Ln)){const[Si,gs]=Ln,Ni=li>=Si.hours&&Bi>=Si.minutes,wr=li0?Math.floor(dn/60):Math.ceil(dn/60);switch(Ye){case hn.Short:return(dn>=0?"+":"")+Tt(li,2,$n)+Tt(Math.abs(dn%60),2,$n);case hn.ShortGMT:return"GMT"+(dn>=0?"+":"")+Tt(li,1,$n);case hn.Long:return"GMT"+(dn>=0?"+":"")+Tt(li,2,$n)+":"+Tt(Math.abs(dn%60),2,$n);case hn.Extended:return 0===Pt?"Z":(dn>=0?"+":"")+Tt(li,2,$n)+":"+Tt(Math.abs(dn%60),2,$n);default:throw new Error(`Unknown zone width "${Ye}"`)}}}function an(Ye){return pn(Ye.getFullYear(),Ye.getMonth(),Ye.getDate()+(4-Ye.getDay()))}function Qn(Ye,Et=!1){return function(et,Pt){let dn;if(Et){const $n=new Date(et.getFullYear(),et.getMonth(),1).getDay()-1,li=et.getDate();dn=1+Math.floor((li+$n)/7)}else{const $n=an(et),li=function(Ye){const Et=pn(Ye,0,1).getDay();return pn(Ye,0,1+(Et<=4?4:11)-Et)}($n.getFullYear()),Bi=$n.getTime()-li.getTime();dn=1+Math.round(Bi/6048e5)}return Tt(dn,Ye,ot(Pt,qe.MinusSign))}}function ni(Ye,Et=!1){return function(et,Pt){return Tt(an(et).getFullYear(),Ye,ot(Pt,qe.MinusSign),Et)}}const An={};function Zi(Ye,Et){Ye=Ye.replace(/:/g,"");const et=Date.parse("Jan 01, 1970 00:00:00 "+Ye)/6e4;return isNaN(et)?Et:et}function on(Ye){return Ye instanceof Date&&!isNaN(Ye.valueOf())}const kn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function vs(Ye,Et,et,Pt,dn){const li=function(Ye,Et="-"){const et={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Pt=Ye.split(";"),dn=Pt[0],$n=Pt[1],li=-1!==dn.indexOf(".")?dn.split("."):[dn.substring(0,dn.lastIndexOf("0")+1),dn.substring(dn.lastIndexOf("0")+1)],Bi=li[0],tt=li[1]||"";et.posPre=Bi.substr(0,Bi.indexOf("#"));for(let De=0;De-1&&(Et=Et.replace(".","")),($n=Et.search(/e/i))>0?(dn<0&&(dn=$n),dn+=+Et.slice($n+1),Et=Et.substring(0,$n)):dn<0&&(dn=Et.length),$n=0;"0"===Et.charAt($n);$n++);if($n===(Bi=Et.length))Pt=[0],dn=1;else{for(Bi--;"0"===Et.charAt(Bi);)Bi--;for(dn-=$n,Pt=[],li=0;$n<=Bi;$n++,li++)Pt[li]=Number(Et.charAt($n))}return dn>22&&(Pt=Pt.splice(0,21),et=dn-1,dn=1),{digits:Pt,exponent:et,integerLen:dn}}(Ye);li&&($e=function(Ye){if(0===Ye.digits[0])return Ye;const Et=Ye.digits.length-Ye.integerLen;return Ye.exponent?Ye.exponent+=2:(0===Et?Ye.digits.push(0,0):1===Et&&Ye.digits.push(0),Ye.integerLen+=2),Ye}($e));let De=Et.minInt,kt=Et.minFrac,Ln=Et.maxFrac;if($n){const Vr=$n.match(kn);if(null===Vr)throw new Error(`${$n} is not a valid digit info`);const us=Vr[1],Do=Vr[3],wa=Vr[5];null!=us&&(De=Ps(us)),null!=Do&&(kt=Ps(Do)),null!=wa?Ln=Ps(wa):null!=Do&&kt>Ln&&(Ln=kt)}!function(Ye,Et,et){if(Et>et)throw new Error(`The minimum number of digits after fraction (${Et}) is higher than the maximum (${et}).`);let Pt=Ye.digits,dn=Pt.length-Ye.integerLen;const $n=Math.min(Math.max(Et,dn),et);let li=$n+Ye.integerLen,Bi=Pt[li];if(li>0){Pt.splice(Math.max(Ye.integerLen,li));for(let kt=li;kt=5)if(li-1<0){for(let kt=0;kt>li;kt--)Pt.unshift(0),Ye.integerLen++;Pt.unshift(1),Ye.integerLen++}else Pt[li-1]++;for(;dn=$e?gs.pop():tt=!1),Ln>=10?1:0},0);De&&(Pt.unshift(De),Ye.integerLen++)}($e,kt,Ln);let Si=$e.digits,gs=$e.integerLen;const Ni=$e.exponent;let wr=[];for(tt=Si.every(Vr=>!Vr);gs0?wr=Si.splice(gs,Si.length):(wr=Si,Si=[0]);const Qs=[];for(Si.length>=Et.lgSize&&Qs.unshift(Si.splice(-Et.lgSize,Si.length).join(""));Si.length>Et.gSize;)Qs.unshift(Si.splice(-Et.gSize,Si.length).join(""));Si.length&&Qs.unshift(Si.join("")),Bi=Qs.join(ot(et,Pt)),wr.length&&(Bi+=ot(et,dn)+wr.join("")),Ni&&(Bi+=ot(et,qe.Exponential)+"+"+Ni)}else Bi=ot(et,qe.Infinity);return Bi=Ye<0&&!tt?Et.negPre+Bi+Et.negSuf:Et.posPre+Bi+Et.posSuf,Bi}(Ye,li,Et,qe.CurrencyGroup,qe.CurrencyDecimal,dn).replace("\xa4",et).replace("\xa4","").trim()}function Ps(Ye){const Et=parseInt(Ye);if(isNaN(Et))throw new Error("Invalid integer literal when parsing "+Ye);return Et}class Sr{}let Or=(()=>{class Ye extends Sr{constructor(et){super(),this.locale=et}getPluralCategory(et,Pt){switch(Wt(Pt||this.locale)(et)){case rt.Zero:return"zero";case rt.One:return"one";case rt.Two:return"two";case rt.Few:return"few";case rt.Many:return"many";default:return"other"}}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.LFG(a.soG))},Ye.\u0275prov=a.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();function Ri(Ye,Et){Et=encodeURIComponent(Et);for(const et of Ye.split(";")){const Pt=et.indexOf("="),[dn,$n]=-1==Pt?[et,""]:[et.slice(0,Pt),et.slice(Pt+1)];if(dn.trim()===Et)return decodeURIComponent($n)}return null}let Pr=(()=>{class Ye{constructor(et,Pt,dn,$n){this._iterableDiffers=et,this._keyValueDiffers=Pt,this._ngEl=dn,this._renderer=$n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(et){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof et?et.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(et){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof et?et.split(/\s+/):et,this._rawClass&&((0,a.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const et=this._iterableDiffer.diff(this._rawClass);et&&this._applyIterableChanges(et)}else if(this._keyValueDiffer){const et=this._keyValueDiffer.diff(this._rawClass);et&&this._applyKeyValueChanges(et)}}_applyKeyValueChanges(et){et.forEachAddedItem(Pt=>this._toggleClass(Pt.key,Pt.currentValue)),et.forEachChangedItem(Pt=>this._toggleClass(Pt.key,Pt.currentValue)),et.forEachRemovedItem(Pt=>{Pt.previousValue&&this._toggleClass(Pt.key,!1)})}_applyIterableChanges(et){et.forEachAddedItem(Pt=>{if("string"!=typeof Pt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,a.AaK)(Pt.item)}`);this._toggleClass(Pt.item,!0)}),et.forEachRemovedItem(Pt=>this._toggleClass(Pt.item,!1))}_applyClasses(et){et&&(Array.isArray(et)||et instanceof Set?et.forEach(Pt=>this._toggleClass(Pt,!0)):Object.keys(et).forEach(Pt=>this._toggleClass(Pt,!!et[Pt])))}_removeClasses(et){et&&(Array.isArray(et)||et instanceof Set?et.forEach(Pt=>this._toggleClass(Pt,!1)):Object.keys(et).forEach(Pt=>this._toggleClass(Pt,!1)))}_toggleClass(et,Pt){(et=et.trim())&&et.split(/\s+/g).forEach(dn=>{Pt?this._renderer.addClass(this._ngEl.nativeElement,dn):this._renderer.removeClass(this._ngEl.nativeElement,dn)})}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},Ye.\u0275dir=a.lG2({type:Ye,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Ye})();class Zn{constructor(Et,et,Pt,dn){this.$implicit=Et,this.ngForOf=et,this.index=Pt,this.count=dn}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 wn=(()=>{class Ye{constructor(et,Pt,dn){this._viewContainer=et,this._template=Pt,this._differs=dn,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(et){this._ngForOf=et,this._ngForOfDirty=!0}set ngForTrackBy(et){this._trackByFn=et}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(et){et&&(this._template=et)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const et=this._ngForOf;!this._differ&&et&&(this._differ=this._differs.find(et).create(this.ngForTrackBy))}if(this._differ){const et=this._differ.diff(this._ngForOf);et&&this._applyChanges(et)}}_applyChanges(et){const Pt=this._viewContainer;et.forEachOperation((dn,$n,li)=>{if(null==dn.previousIndex)Pt.createEmbeddedView(this._template,new Zn(dn.item,this._ngForOf,-1,-1),null===li?void 0:li);else if(null==li)Pt.remove(null===$n?void 0:$n);else if(null!==$n){const Bi=Pt.get($n);Pt.move(Bi,li),On(Bi,dn)}});for(let dn=0,$n=Pt.length;dn<$n;dn++){const Bi=Pt.get(dn).context;Bi.index=dn,Bi.count=$n,Bi.ngForOf=this._ngForOf}et.forEachIdentityChange(dn=>{On(Pt.get(dn.currentIndex),dn)})}static ngTemplateContextGuard(et,Pt){return!0}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},Ye.\u0275dir=a.lG2({type:Ye,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Ye})();function On(Ye,Et){Ye.context.$implicit=Et.item}let vn=(()=>{class Ye{constructor(et,Pt){this._viewContainer=et,this._context=new qi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Pt}set ngIf(et){this._context.$implicit=this._context.ngIf=et,this._updateView()}set ngIfThen(et){Qi("ngIfThen",et),this._thenTemplateRef=et,this._thenViewRef=null,this._updateView()}set ngIfElse(et){Qi("ngIfElse",et),this._elseTemplateRef=et,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(et,Pt){return!0}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.s_b),a.Y36(a.Rgc))},Ye.\u0275dir=a.lG2({type:Ye,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Ye})();class qi{constructor(){this.$implicit=null,this.ngIf=null}}function Qi(Ye,Et){if(Et&&!Et.createEmbeddedView)throw new Error(`${Ye} must be a TemplateRef, but received '${(0,a.AaK)(Et)}'.`)}class Us{constructor(Et,et){this._viewContainerRef=Et,this._templateRef=et,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Et){Et&&!this._created?this.create():!Et&&this._created&&this.destroy()}}let vr=(()=>{class Ye{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(et){this._ngSwitch=et,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(et){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(et)}_matchCase(et){const Pt=et==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Pt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Pt}_updateDefaultCases(et){if(this._defaultViews&&et!==this._defaultUsed){this._defaultUsed=et;for(let Pt=0;Pt{class Ye{constructor(et,Pt,dn){this.ngSwitch=dn,dn._addCase(),this._view=new Us(et,Pt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(vr,9))},Ye.\u0275dir=a.lG2({type:Ye,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Ye})(),ds=(()=>{class Ye{constructor(et,Pt,dn){dn._addDefault(new Us(et,Pt))}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(vr,9))},Ye.\u0275dir=a.lG2({type:Ye,selectors:[["","ngSwitchDefault",""]]}),Ye})(),Lr=(()=>{class Ye{constructor(et,Pt,dn){this._ngEl=et,this._differs=Pt,this._renderer=dn,this._ngStyle=null,this._differ=null}set ngStyle(et){this._ngStyle=et,!this._differ&&et&&(this._differ=this._differs.find(et).create())}ngDoCheck(){if(this._differ){const et=this._differ.diff(this._ngStyle);et&&this._applyChanges(et)}}_setStyle(et,Pt){const[dn,$n]=et.split(".");null!=(Pt=null!=Pt&&$n?`${Pt}${$n}`:Pt)?this._renderer.setStyle(this._ngEl.nativeElement,dn,Pt):this._renderer.removeStyle(this._ngEl.nativeElement,dn)}_applyChanges(et){et.forEachRemovedItem(Pt=>this._setStyle(Pt.key,null)),et.forEachAddedItem(Pt=>this._setStyle(Pt.key,Pt.currentValue)),et.forEachChangedItem(Pt=>this._setStyle(Pt.key,Pt.currentValue))}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},Ye.\u0275dir=a.lG2({type:Ye,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Ye})(),eo=(()=>{class Ye{constructor(et){this._viewContainerRef=et,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(et){if(et.ngTemplateOutlet){const Pt=this._viewContainerRef;this._viewRef&&Pt.remove(Pt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Pt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&et.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.s_b))},Ye.\u0275dir=a.lG2({type:Ye,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[a.TTD]}),Ye})();function Rr(Ye,Et){return Error(`InvalidPipeArgument: '${Et}' for pipe '${(0,a.AaK)(Ye)}'`)}const zo=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Wr=(()=>{class Ye{constructor(et,Pt){this.locale=et,this.defaultTimezone=Pt}transform(et,Pt="mediumDate",dn,$n){var li;if(null==et||""===et||et!=et)return null;try{return Hn(et,Pt,$n||this.locale,null!==(li=null!=dn?dn:this.defaultTimezone)&&void 0!==li?li:void 0)}catch(Bi){throw Rr(Ye,Bi.message)}}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.soG,16),a.Y36(zo,24))},Ye.\u0275pipe=a.Yjl({name:"date",type:Ye,pure:!0}),Ye})(),Yt=(()=>{class Ye{constructor(et,Pt="USD"){this._locale=et,this._defaultCurrencyCode=Pt}transform(et,Pt=this._defaultCurrencyCode,dn="symbol",$n,li){if(!function(Ye){return!(null==Ye||""===Ye||Ye!=Ye)}(et))return null;li=li||this._locale,"boolean"==typeof dn&&(dn=dn?"symbol":"code");let Bi=Pt||this._defaultCurrencyCode;"code"!==dn&&(Bi="symbol"===dn||"symbol-narrow"===dn?function(Ye,Et,et="en"){const Pt=function(Ye){return(0,a.cg1)(Ye)[a.wAp.Currencies]}(et)[Ye]||z[Ye]||[],dn=Pt[1];return"narrow"===Et&&"string"==typeof dn?dn:Pt[0]||Ye}(Bi,"symbol"===dn?"wide":"narrow",li):dn);try{return vs(function(Ye){if("string"==typeof Ye&&!isNaN(Number(Ye)-parseFloat(Ye)))return Number(Ye);if("number"!=typeof Ye)throw new Error(`${Ye} is not a number`);return Ye}(et),li,Bi,Pt,$n)}catch(tt){throw Rr(Ye,tt.message)}}}return Ye.\u0275fac=function(et){return new(et||Ye)(a.Y36(a.soG,16),a.Y36(a.EJc,16))},Ye.\u0275pipe=a.Yjl({name:"currency",type:Ye,pure:!0}),Ye})();let ki=(()=>{class Ye{}return Ye.\u0275fac=function(et){return new(et||Ye)},Ye.\u0275mod=a.oAB({type:Ye}),Ye.\u0275inj=a.cJS({providers:[{provide:Sr,useClass:Or}]}),Ye})();const Ci="browser";function Es(Ye){return Ye===Ci}function ir(Ye){return"server"===Ye}let $s=(()=>{class Ye{}return Ye.\u0275prov=(0,a.Yz7)({token:Ye,providedIn:"root",factory:()=>new Ds((0,a.LFG)(r),window)}),Ye})();class Ds{constructor(Et,et){this.document=Et,this.window=et,this.offset=()=>[0,0]}setOffset(Et){this.offset=Array.isArray(Et)?()=>Et:Et}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Et){this.supportsScrolling()&&this.window.scrollTo(Et[0],Et[1])}scrollToAnchor(Et){if(!this.supportsScrolling())return;const et=function(Ye,Et){const et=Ye.getElementById(Et)||Ye.getElementsByName(Et)[0];if(et)return et;if("function"==typeof Ye.createTreeWalker&&Ye.body&&(Ye.body.createShadowRoot||Ye.body.attachShadow)){const Pt=Ye.createTreeWalker(Ye.body,NodeFilter.SHOW_ELEMENT);let dn=Pt.currentNode;for(;dn;){const $n=dn.shadowRoot;if($n){const li=$n.getElementById(Et)||$n.querySelector(`[name="${Et}"]`);if(li)return li}dn=Pt.nextNode()}}return null}(this.document,Et);et&&(this.scrollToElement(et),this.attemptFocus(et))}setHistoryScrollRestoration(Et){if(this.supportScrollRestoration()){const et=this.window.history;et&&et.scrollRestoration&&(et.scrollRestoration=Et)}}scrollToElement(Et){const et=Et.getBoundingClientRect(),Pt=et.left+this.window.pageXOffset,dn=et.top+this.window.pageYOffset,$n=this.offset();this.window.scrollTo(Pt-$n[0],dn-$n[1])}attemptFocus(Et){return Et.focus(),this.document.activeElement===Et}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Et=So(this.window.history)||So(Object.getPrototypeOf(this.window.history));return!(!Et||!Et.writable&&!Et.set)}catch(Et){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Et){return!1}}}function So(Ye){return Object.getOwnPropertyDescriptor(Ye,"scrollRestoration")}class aa{}},520:(St,oe,S)=>{"use strict";S.d(oe,{TP:()=>He,eN:()=>qe,JF:()=>gt,WM:()=>H,LE:()=>re});var a=S(9808),C=S(5e3),N=S(9646),ze=S(8306),p=S(4351),K=S(9300),r=S(4004);class O{}class P{}class H{constructor(mt){this.normalizedNames=new Map,this.lazyUpdate=null,mt?this.lazyInit="string"==typeof mt?()=>{this.headers=new Map,mt.split("\n").forEach(Re=>{const zt=Re.indexOf(":");if(zt>0){const Kt=Re.slice(0,zt),hn=Kt.toLowerCase(),xn=Re.slice(zt+1).trim();this.maybeSetNormalizedName(Kt,hn),this.headers.has(hn)?this.headers.get(hn).push(xn):this.headers.set(hn,[xn])}})}:()=>{this.headers=new Map,Object.keys(mt).forEach(Re=>{let zt=mt[Re];const Kt=Re.toLowerCase();"string"==typeof zt&&(zt=[zt]),zt.length>0&&(this.headers.set(Kt,zt),this.maybeSetNormalizedName(Re,Kt))})}:this.headers=new Map}has(mt){return this.init(),this.headers.has(mt.toLowerCase())}get(mt){this.init();const Re=this.headers.get(mt.toLowerCase());return Re&&Re.length>0?Re[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(mt){return this.init(),this.headers.get(mt.toLowerCase())||null}append(mt,Re){return this.clone({name:mt,value:Re,op:"a"})}set(mt,Re){return this.clone({name:mt,value:Re,op:"s"})}delete(mt,Re){return this.clone({name:mt,value:Re,op:"d"})}maybeSetNormalizedName(mt,Re){this.normalizedNames.has(Re)||this.normalizedNames.set(Re,mt)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(mt=>this.applyUpdate(mt)),this.lazyUpdate=null))}copyFrom(mt){mt.init(),Array.from(mt.headers.keys()).forEach(Re=>{this.headers.set(Re,mt.headers.get(Re)),this.normalizedNames.set(Re,mt.normalizedNames.get(Re))})}clone(mt){const Re=new H;return Re.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,Re.lazyUpdate=(this.lazyUpdate||[]).concat([mt]),Re}applyUpdate(mt){const Re=mt.name.toLowerCase();switch(mt.op){case"a":case"s":let zt=mt.value;if("string"==typeof zt&&(zt=[zt]),0===zt.length)return;this.maybeSetNormalizedName(mt.name,Re);const Kt=("a"===mt.op?this.headers.get(Re):void 0)||[];Kt.push(...zt),this.headers.set(Re,Kt);break;case"d":const hn=mt.value;if(hn){let xn=this.headers.get(Re);if(!xn)return;xn=xn.filter(Mn=>-1===hn.indexOf(Mn)),0===xn.length?(this.headers.delete(Re),this.normalizedNames.delete(Re)):this.headers.set(Re,xn)}else this.headers.delete(Re),this.normalizedNames.delete(Re)}}forEach(mt){this.init(),Array.from(this.normalizedNames.keys()).forEach(Re=>mt(this.normalizedNames.get(Re),this.headers.get(Re)))}}class E{encodeKey(mt){return le(mt)}encodeValue(mt){return le(mt)}decodeKey(mt){return decodeURIComponent(mt)}decodeValue(mt){return decodeURIComponent(mt)}}const x=/%(\d[a-f0-9])/gi,U={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function le(ft){return encodeURIComponent(ft).replace(x,(mt,Re)=>{var zt;return null!==(zt=U[Re])&&void 0!==zt?zt:mt})}function xe(ft){return`${ft}`}class re{constructor(mt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=mt.encoder||new E,mt.fromString){if(mt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(ft,mt){const Re=new Map;return ft.length>0&&ft.replace(/^\?/,"").split("&").forEach(Kt=>{const hn=Kt.indexOf("="),[xn,Mn]=-1==hn?[mt.decodeKey(Kt),""]:[mt.decodeKey(Kt.slice(0,hn)),mt.decodeValue(Kt.slice(hn+1))],Hn=Re.get(xn)||[];Hn.push(Mn),Re.set(xn,Hn)}),Re}(mt.fromString,this.encoder)}else mt.fromObject?(this.map=new Map,Object.keys(mt.fromObject).forEach(Re=>{const zt=mt.fromObject[Re];this.map.set(Re,Array.isArray(zt)?zt:[zt])})):this.map=null}has(mt){return this.init(),this.map.has(mt)}get(mt){this.init();const Re=this.map.get(mt);return Re?Re[0]:null}getAll(mt){return this.init(),this.map.get(mt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(mt,Re){return this.clone({param:mt,value:Re,op:"a"})}appendAll(mt){const Re=[];return Object.keys(mt).forEach(zt=>{const Kt=mt[zt];Array.isArray(Kt)?Kt.forEach(hn=>{Re.push({param:zt,value:hn,op:"a"})}):Re.push({param:zt,value:Kt,op:"a"})}),this.clone(Re)}set(mt,Re){return this.clone({param:mt,value:Re,op:"s"})}delete(mt,Re){return this.clone({param:mt,value:Re,op:"d"})}toString(){return this.init(),this.keys().map(mt=>{const Re=this.encoder.encodeKey(mt);return this.map.get(mt).map(zt=>Re+"="+this.encoder.encodeValue(zt)).join("&")}).filter(mt=>""!==mt).join("&")}clone(mt){const Re=new re({encoder:this.encoder});return Re.cloneFrom=this.cloneFrom||this,Re.updates=(this.updates||[]).concat(mt),Re}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(mt=>this.map.set(mt,this.cloneFrom.map.get(mt))),this.updates.forEach(mt=>{switch(mt.op){case"a":case"s":const Re=("a"===mt.op?this.map.get(mt.param):void 0)||[];Re.push(xe(mt.value)),this.map.set(mt.param,Re);break;case"d":if(void 0===mt.value){this.map.delete(mt.param);break}{let zt=this.map.get(mt.param)||[];const Kt=zt.indexOf(xe(mt.value));-1!==Kt&&zt.splice(Kt,1),zt.length>0?this.map.set(mt.param,zt):this.map.delete(mt.param)}}}),this.cloneFrom=this.updates=null)}}class L{constructor(){this.map=new Map}set(mt,Re){return this.map.set(mt,Re),this}get(mt){return this.map.has(mt)||this.map.set(mt,mt.defaultValue()),this.map.get(mt)}delete(mt){return this.map.delete(mt),this}has(mt){return this.map.has(mt)}keys(){return this.map.keys()}}function we(ft){return"undefined"!=typeof ArrayBuffer&&ft instanceof ArrayBuffer}function ge(ft){return"undefined"!=typeof Blob&&ft instanceof Blob}function fe(ft){return"undefined"!=typeof FormData&&ft instanceof FormData}class e{constructor(mt,Re,zt,Kt){let hn;if(this.url=Re,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=mt.toUpperCase(),function(ft){switch(ft){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Kt?(this.body=void 0!==zt?zt:null,hn=Kt):hn=zt,hn&&(this.reportProgress=!!hn.reportProgress,this.withCredentials=!!hn.withCredentials,hn.responseType&&(this.responseType=hn.responseType),hn.headers&&(this.headers=hn.headers),hn.context&&(this.context=hn.context),hn.params&&(this.params=hn.params)),this.headers||(this.headers=new H),this.context||(this.context=new L),this.params){const xn=this.params.toString();if(0===xn.length)this.urlWithParams=Re;else{const Mn=Re.indexOf("?");this.urlWithParams=Re+(-1===Mn?"?":MnTt.set(Gt,mt.setHeaders[Gt]),pn)),mt.setParams&&(Yn=Object.keys(mt.setParams).reduce((Tt,Gt)=>Tt.set(Gt,mt.setParams[Gt]),Yn)),new e(zt,Kt,xn,{params:Yn,headers:pn,context:_t,reportProgress:Hn,responseType:hn,withCredentials:Mn})}}var z=(()=>((z=z||{})[z.Sent=0]="Sent",z[z.UploadProgress=1]="UploadProgress",z[z.ResponseHeader=2]="ResponseHeader",z[z.DownloadProgress=3]="DownloadProgress",z[z.Response=4]="Response",z[z.User=5]="User",z))();class je{constructor(mt,Re=200,zt="OK"){this.headers=mt.headers||new H,this.status=void 0!==mt.status?mt.status:Re,this.statusText=mt.statusText||zt,this.url=mt.url||null,this.ok=this.status>=200&&this.status<300}}class rt extends je{constructor(mt={}){super(mt),this.type=z.ResponseHeader}clone(mt={}){return new rt({headers:mt.headers||this.headers,status:void 0!==mt.status?mt.status:this.status,statusText:mt.statusText||this.statusText,url:mt.url||this.url||void 0})}}class it extends je{constructor(mt={}){super(mt),this.type=z.Response,this.body=void 0!==mt.body?mt.body:null}clone(mt={}){return new it({body:void 0!==mt.body?mt.body:this.body,headers:mt.headers||this.headers,status:void 0!==mt.status?mt.status:this.status,statusText:mt.statusText||this.statusText,url:mt.url||this.url||void 0})}}class ct extends je{constructor(mt){super(mt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${mt.url||"(unknown url)"}`:`Http failure response for ${mt.url||"(unknown url)"}: ${mt.status} ${mt.statusText}`,this.error=mt.error||null}}function g(ft,mt){return{body:mt,headers:ft.headers,context:ft.context,observe:ft.observe,params:ft.params,reportProgress:ft.reportProgress,responseType:ft.responseType,withCredentials:ft.withCredentials}}let qe=(()=>{class ft{constructor(Re){this.handler=Re}request(Re,zt,Kt={}){let hn;if(Re instanceof e)hn=Re;else{let Hn,pn;Hn=Kt.headers instanceof H?Kt.headers:new H(Kt.headers),Kt.params&&(pn=Kt.params instanceof re?Kt.params:new re({fromObject:Kt.params})),hn=new e(Re,zt,void 0!==Kt.body?Kt.body:null,{headers:Hn,context:Kt.context,params:pn,reportProgress:Kt.reportProgress,responseType:Kt.responseType||"json",withCredentials:Kt.withCredentials})}const xn=(0,N.of)(hn).pipe((0,p.b)(Hn=>this.handler.handle(Hn)));if(Re instanceof e||"events"===Kt.observe)return xn;const Mn=xn.pipe((0,K.h)(Hn=>Hn instanceof it));switch(Kt.observe||"body"){case"body":switch(hn.responseType){case"arraybuffer":return Mn.pipe((0,r.U)(Hn=>{if(null!==Hn.body&&!(Hn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Hn.body}));case"blob":return Mn.pipe((0,r.U)(Hn=>{if(null!==Hn.body&&!(Hn.body instanceof Blob))throw new Error("Response is not a Blob.");return Hn.body}));case"text":return Mn.pipe((0,r.U)(Hn=>{if(null!==Hn.body&&"string"!=typeof Hn.body)throw new Error("Response is not a string.");return Hn.body}));default:return Mn.pipe((0,r.U)(Hn=>Hn.body))}case"response":return Mn;default:throw new Error(`Unreachable: unhandled observe type ${Kt.observe}}`)}}delete(Re,zt={}){return this.request("DELETE",Re,zt)}get(Re,zt={}){return this.request("GET",Re,zt)}head(Re,zt={}){return this.request("HEAD",Re,zt)}jsonp(Re,zt){return this.request("JSONP",Re,{params:(new re).append(zt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Re,zt={}){return this.request("OPTIONS",Re,zt)}patch(Re,zt,Kt={}){return this.request("PATCH",Re,g(Kt,zt))}post(Re,zt,Kt={}){return this.request("POST",Re,g(Kt,zt))}put(Re,zt,Kt={}){return this.request("PUT",Re,g(Kt,zt))}}return ft.\u0275fac=function(Re){return new(Re||ft)(C.LFG(O))},ft.\u0275prov=C.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Ve{constructor(mt,Re){this.next=mt,this.interceptor=Re}handle(mt){return this.interceptor.intercept(mt,this.next)}}const He=new C.OlP("HTTP_INTERCEPTORS");let X=(()=>{class ft{intercept(Re,zt){return zt.handle(Re)}}return ft.\u0275fac=function(Re){return new(Re||ft)},ft.\u0275prov=C.Yz7({token:ft,factory:ft.\u0275fac}),ft})();const G=/^\)\]\}',?\n/;let We=(()=>{class ft{constructor(Re){this.xhrFactory=Re}handle(Re){if("JSONP"===Re.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ze.y(zt=>{const Kt=this.xhrFactory.build();if(Kt.open(Re.method,Re.urlWithParams),Re.withCredentials&&(Kt.withCredentials=!0),Re.headers.forEach((Gt,Rt)=>Kt.setRequestHeader(Gt,Rt.join(","))),Re.headers.has("Accept")||Kt.setRequestHeader("Accept","application/json, text/plain, */*"),!Re.headers.has("Content-Type")){const Gt=Re.detectContentTypeHeader();null!==Gt&&Kt.setRequestHeader("Content-Type",Gt)}if(Re.responseType){const Gt=Re.responseType.toLowerCase();Kt.responseType="json"!==Gt?Gt:"text"}const hn=Re.serializeBody();let xn=null;const Mn=()=>{if(null!==xn)return xn;const Gt=1223===Kt.status?204:Kt.status,Rt=Kt.statusText||"OK",Ft=new H(Kt.getAllResponseHeaders()),F=function(ft){return"responseURL"in ft&&ft.responseURL?ft.responseURL:/^X-Request-URL:/m.test(ft.getAllResponseHeaders())?ft.getResponseHeader("X-Request-URL"):null}(Kt)||Re.url;return xn=new rt({headers:Ft,status:Gt,statusText:Rt,url:F}),xn},Hn=()=>{let{headers:Gt,status:Rt,statusText:Ft,url:F}=Mn(),V=null;204!==Rt&&(V=void 0===Kt.response?Kt.responseText:Kt.response),0===Rt&&(Rt=V?200:0);let Q=Rt>=200&&Rt<300;if("json"===Re.responseType&&"string"==typeof V){const ie=V;V=V.replace(G,"");try{V=""!==V?JSON.parse(V):null}catch(nt){V=ie,Q&&(Q=!1,V={error:nt,text:V})}}Q?(zt.next(new it({body:V,headers:Gt,status:Rt,statusText:Ft,url:F||void 0})),zt.complete()):zt.error(new ct({error:V,headers:Gt,status:Rt,statusText:Ft,url:F||void 0}))},pn=Gt=>{const{url:Rt}=Mn(),Ft=new ct({error:Gt,status:Kt.status||0,statusText:Kt.statusText||"Unknown Error",url:Rt||void 0});zt.error(Ft)};let Yn=!1;const _t=Gt=>{Yn||(zt.next(Mn()),Yn=!0);let Rt={type:z.DownloadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(Rt.total=Gt.total),"text"===Re.responseType&&!!Kt.responseText&&(Rt.partialText=Kt.responseText),zt.next(Rt)},Tt=Gt=>{let Rt={type:z.UploadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(Rt.total=Gt.total),zt.next(Rt)};return Kt.addEventListener("load",Hn),Kt.addEventListener("error",pn),Kt.addEventListener("timeout",pn),Kt.addEventListener("abort",pn),Re.reportProgress&&(Kt.addEventListener("progress",_t),null!==hn&&Kt.upload&&Kt.upload.addEventListener("progress",Tt)),Kt.send(hn),zt.next({type:z.Sent}),()=>{Kt.removeEventListener("error",pn),Kt.removeEventListener("abort",pn),Kt.removeEventListener("load",Hn),Kt.removeEventListener("timeout",pn),Re.reportProgress&&(Kt.removeEventListener("progress",_t),null!==hn&&Kt.upload&&Kt.upload.removeEventListener("progress",Tt)),Kt.readyState!==Kt.DONE&&Kt.abort()}})}}return ft.\u0275fac=function(Re){return new(Re||ft)(C.LFG(a.JF))},ft.\u0275prov=C.Yz7({token:ft,factory:ft.\u0275fac}),ft})();const ut=new C.OlP("XSRF_COOKIE_NAME"),Mt=new C.OlP("XSRF_HEADER_NAME");class At{}let Jt=(()=>{class ft{constructor(Re,zt,Kt){this.doc=Re,this.platform=zt,this.cookieName=Kt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Re=this.doc.cookie||"";return Re!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,a.Mx)(Re,this.cookieName),this.lastCookieString=Re),this.lastToken}}return ft.\u0275fac=function(Re){return new(Re||ft)(C.LFG(a.K0),C.LFG(C.Lbi),C.LFG(ut))},ft.\u0275prov=C.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),Wt=(()=>{class ft{constructor(Re,zt){this.tokenService=Re,this.headerName=zt}intercept(Re,zt){const Kt=Re.url.toLowerCase();if("GET"===Re.method||"HEAD"===Re.method||Kt.startsWith("http://")||Kt.startsWith("https://"))return zt.handle(Re);const hn=this.tokenService.getToken();return null!==hn&&!Re.headers.has(this.headerName)&&(Re=Re.clone({headers:Re.headers.set(this.headerName,hn)})),zt.handle(Re)}}return ft.\u0275fac=function(Re){return new(Re||ft)(C.LFG(At),C.LFG(Mt))},ft.\u0275prov=C.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),Sn=(()=>{class ft{constructor(Re,zt){this.backend=Re,this.injector=zt,this.chain=null}handle(Re){if(null===this.chain){const zt=this.injector.get(He,[]);this.chain=zt.reduceRight((Kt,hn)=>new Ve(Kt,hn),this.backend)}return this.chain.handle(Re)}}return ft.\u0275fac=function(Re){return new(Re||ft)(C.LFG(P),C.LFG(C.zs3))},ft.\u0275prov=C.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),Je=(()=>{class ft{static disable(){return{ngModule:ft,providers:[{provide:Wt,useClass:X}]}}static withOptions(Re={}){return{ngModule:ft,providers:[Re.cookieName?{provide:ut,useValue:Re.cookieName}:[],Re.headerName?{provide:Mt,useValue:Re.headerName}:[]]}}}return ft.\u0275fac=function(Re){return new(Re||ft)},ft.\u0275mod=C.oAB({type:ft}),ft.\u0275inj=C.cJS({providers:[Wt,{provide:He,useExisting:Wt,multi:!0},{provide:At,useClass:Jt},{provide:ut,useValue:"XSRF-TOKEN"},{provide:Mt,useValue:"X-XSRF-TOKEN"}]}),ft})(),gt=(()=>{class ft{}return ft.\u0275fac=function(Re){return new(Re||ft)},ft.\u0275mod=C.oAB({type:ft}),ft.\u0275inj=C.cJS({providers:[qe,{provide:O,useClass:Sn},We,{provide:P,useExisting:We}],imports:[[Je.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ft})()},5e3:(St,oe,S)=>{"use strict";S.d(oe,{deG:()=>eu,tb:()=>py,AFp:()=>Zd,ip1:()=>b3,CZH:()=>ag,hGG:()=>qC,z2F:()=>Xm,sBO:()=>zC,Sil:()=>lg,_Vd:()=>Iu,aQ5:()=>Fu,AcB:()=>Sl,EJc:()=>H8,SBq:()=>N1,qLn:()=>pc,vpe:()=>Yh,AA_:()=>ri,pfw:()=>DC,L6J:()=>CS,gxx:()=>Ep,tBr:()=>lt,XFs:()=>Je,OlP:()=>po,zs3:()=>Hc,IIB:()=>MC,ZZ4:()=>pg,aQg:()=>s6,soG:()=>C3,YKP:()=>F5,h0i:()=>Xu,PXZ:()=>RC,R0b:()=>_d,FiY:()=>Lt,r_U:()=>IC,Lbi:()=>N8,g9A:()=>hy,n_E:()=>p3,Qsj:()=>a3,FYo:()=>Um,JOm:()=>La,q3G:()=>Ho,PiD:()=>Tn,tp0:()=>ei,Rgc:()=>Wm,dDg:()=>_y,GfV:()=>q2,i9L:()=>xd,vR:()=>Ic,s_b:()=>Zm,ifc:()=>xn,eFA:()=>wy,G48:()=>NC,Gpc:()=>E,f3M:()=>ep,X6Q:()=>IS,_c5:()=>Qh,VLi:()=>by,c2e:()=>z8,zSh:()=>I1,wAp:()=>Ks,vHH:()=>le,EiD:()=>qo,mCW:()=>ru,qzn:()=>hc,JVY:()=>cp,pB0:()=>k0,eBb:()=>yh,L6k:()=>hf,LAX:()=>pf,cg1:()=>U2,kL8:()=>Om,yhl:()=>lp,dqk:()=>_t,sIi:()=>Rn,CqO:()=>M4,QGY:()=>Lp,F4k:()=>O2,RDi:()=>$s,AaK:()=>O,z3N:()=>uc,qOj:()=>x2,TTD:()=>Cn,_Bn:()=>T5,xp6:()=>Sg,uIk:()=>pd,Tol:()=>a0,Gre:()=>z4,ekj:()=>Bp,Suo:()=>J5,Xpm:()=>Qn,lG2:()=>jt,Yz7:()=>ke,cJS:()=>ot,oAB:()=>Ti,Yjl:()=>on,Y36:()=>A1,_UZ:()=>A2,GkF:()=>w4,BQk:()=>am,ynx:()=>om,qZA:()=>Su,TgZ:()=>Pp,EpF:()=>x4,n5z:()=>ah,Ikx:()=>j2,QtT:()=>D5,DtL:()=>qv,pQV:()=>r3,LFG:()=>Zo,$8M:()=>Po,$Z:()=>E2,NdJ:()=>gd,CRH:()=>K5,kcU:()=>sr,O4$:()=>zr,oxw:()=>T4,ALo:()=>h8,lcZ:()=>nr,xi3:()=>H1,Dn7:()=>f8,gM2:()=>h3,Hsn:()=>dm,F$t:()=>E4,Q6J:()=>k2,s9C:()=>um,MGl:()=>r0,FAE:()=>hm,DdM:()=>L5,VKq:()=>B5,WLB:()=>N5,kEZ:()=>d8,l5B:()=>u8,qbA:()=>d3,HTZ:()=>cC,Hh0:()=>dC,qlk:()=>z5,iGM:()=>Z5,MAs:()=>uv,evT:()=>Mh,Jf7:()=>Bd,CHM:()=>ne,oJD:()=>xh,LSH:()=>ua,kYT:()=>yn,Udp:()=>P2,WFA:()=>lm,d8E:()=>G2,YNc:()=>dv,W1O:()=>ey,_uU:()=>mm,Oqu:()=>Ja,hij:()=>zp,AsE:()=>vm,lnq:()=>_m,xDo:()=>H2,Gf:()=>x8});var a=S(7579),C=S(727),N=S(8306),ze=S(6451),p=S(3099);function K(l){for(let c in l)if(l[c]===K)return c;throw Error("Could not find renamed property on target object.")}function r(l,c){for(const f in c)c.hasOwnProperty(f)&&!l.hasOwnProperty(f)&&(l[f]=c[f])}function O(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(O).join(", ")+"]";if(null==l)return""+l;if(l.overriddenName)return`${l.overriddenName}`;if(l.name)return`${l.name}`;const c=l.toString();if(null==c)return""+c;const f=c.indexOf("\n");return-1===f?c:c.substring(0,f)}function P(l,c){return null==l||""===l?null===c?"":c:null==c||""===c?l:l+" "+c}const H=K({__forward_ref__:K});function E(l){return l.__forward_ref__=E,l.toString=function(){return O(this())},l}function ee(l){return x(l)?l():l}function x(l){return"function"==typeof l&&l.hasOwnProperty(H)&&l.__forward_ref__===E}class le extends Error{constructor(c,f){super(function(l,c){return`${l?`NG0${l}: `:""}${c}`}(c,f)),this.code=c}}function ce(l){return"string"==typeof l?l:null==l?"":String(l)}function L(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():ce(l)}function fe(l,c){const f=c?` in ${c}`:"";throw new le("201",`No provider for ${L(l)} found${f}`)}function Te(l,c){null==l&&function(l,c,f,y){throw new Error(`ASSERTION ERROR: ${l}`+(null==y?"":` [Expected=> ${f} ${y} ${c} <=Actual]`))}(c,l,null,"!=")}function ke(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}function ot(l){return{providers:l.providers||[],imports:l.imports||[]}}function We(l){return ut(l,Wt)||ut(l,ye)}function ut(l,c){return l.hasOwnProperty(c)?l[c]:null}function Jt(l){return l&&(l.hasOwnProperty(Sn)||l.hasOwnProperty(be))?l[Sn]:null}const Wt=K({\u0275prov:K}),Sn=K({\u0275inj:K}),ye=K({ngInjectableDef:K}),be=K({ngInjectorDef:K});var Je=(()=>((Je=Je||{})[Je.Default=0]="Default",Je[Je.Host=1]="Host",Je[Je.Self=2]="Self",Je[Je.SkipSelf=4]="SkipSelf",Je[Je.Optional=8]="Optional",Je))();let gt;function $t(l){const c=gt;return gt=l,c}function ft(l,c,f){const y=We(l);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:f&Je.Optional?null:void 0!==c?c:void fe(O(l),"Injector")}function Re(l){return{toString:l}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),xn=(()=>{return(l=xn||(xn={}))[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom",xn;var l})();const Mn="undefined"!=typeof globalThis&&globalThis,Hn="undefined"!=typeof window&&window,pn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,_t=Mn||"undefined"!=typeof global&&global||Hn||pn,Rt={},Ft=[],F=K({\u0275cmp:K}),V=K({\u0275dir:K}),Q=K({\u0275pipe:K}),ie=K({\u0275mod:K}),nt=K({\u0275fac:K}),bt=K({__NG_ELEMENT_ID__:K});let an=0;function Qn(l){return Re(()=>{const f={},y={type:l.type,providersResolver:null,decls:l.decls,vars:l.vars,factory:null,template:l.template||null,consts:l.consts||null,ngContentSelectors:l.ngContentSelectors,hostBindings:l.hostBindings||null,hostVars:l.hostVars||0,hostAttrs:l.hostAttrs||null,contentQueries:l.contentQueries||null,declaredInputs:f,inputs:null,outputs:null,exportAs:l.exportAs||null,onPush:l.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,selectors:l.selectors||Ft,viewQuery:l.viewQuery||null,features:l.features||null,data:l.data||{},encapsulation:l.encapsulation||xn.Emulated,id:"c",styles:l.styles||Ft,_:null,setInput:null,schemas:l.schemas||null,tView:null},w=l.directives,R=l.features,te=l.pipes;return y.id+=an++,y.inputs=qt(l.inputs,f),y.outputs=qt(l.outputs),R&&R.forEach(_e=>_e(y)),y.directiveDefs=w?()=>("function"==typeof w?w():w).map(An):null,y.pipeDefs=te?()=>("function"==typeof te?te():te).map(Ii):null,y})}function An(l){return kn(l)||function(l){return l[V]||null}(l)}function Ii(l){return function(l){return l[Q]||null}(l)}const Zi={};function Ti(l){return Re(()=>{const c={type:l.type,bootstrap:l.bootstrap||Ft,declarations:l.declarations||Ft,imports:l.imports||Ft,exports:l.exports||Ft,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null};return null!=l.id&&(Zi[l.id]=l.type),c})}function yn(l,c){return Re(()=>{const f=ps(l,!0);f.declarations=c.declarations||Ft,f.imports=c.imports||Ft,f.exports=c.exports||Ft})}function qt(l,c){if(null==l)return Rt;const f={};for(const y in l)if(l.hasOwnProperty(y)){let w=l[y],R=w;Array.isArray(w)&&(R=w[1],w=w[0]),f[w]=y,c&&(c[w]=R)}return f}const jt=Qn;function on(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,onDestroy:l.type.prototype.ngOnDestroy||null}}function kn(l){return l[F]||null}function ps(l,c){const f=l[ie]||null;if(!f&&!0===c)throw new Error(`Type ${O(l)} does not have '\u0275mod' property.`);return f}function Ss(l){return Array.isArray(l)&&"object"==typeof l[1]}function ds(l){return Array.isArray(l)&&!0===l[1]}function Yr(l){return 0!=(8&l.flags)}function Fr(l){return 2==(2&l.flags)}function Tr(l){return 1==(1&l.flags)}function Lr(l){return null!==l.template}function eo(l){return 0!=(512&l[2])}function Yt(l,c){return l.hasOwnProperty(nt)?l[nt]:null}class en{constructor(c,f,y){this.previousValue=c,this.currentValue=f,this.firstChange=y}isFirstChange(){return this.firstChange}}function Cn(){return ai}function ai(l){return l.type.prototype.ngOnChanges&&(l.setInput=ki),ii}function ii(){const l=Yi(this),c=null==l?void 0:l.current;if(c){const f=l.previous;if(f===Rt)l.previous=c;else for(let y in c)f[y]=c[y];l.current=null,this.ngOnChanges(c)}}function ki(l,c,f,y){const w=Yi(l)||function(l,c){return l[Ci]=c}(l,{previous:Rt,current:null}),R=w.current||(w.current={}),te=w.previous,_e=this.declaredInputs[f],Pe=te[_e];R[_e]=new en(Pe&&Pe.currentValue,c,te===Rt),l[y]=c}Cn.ngInherit=!0;const Ci="__ngSimpleChanges__";function Yi(l){return l[Ci]||null}const hr="http://www.w3.org/2000/svg";let qr;function $s(l){qr=l}function Ds(){return void 0!==qr?qr:"undefined"!=typeof document?document:void 0}function yr(l){return!!l.listen}const Wo={createRenderer:(l,c)=>Ds()};function Ye(l){for(;Array.isArray(l);)l=l[0];return l}function Pt(l,c){return Ye(c[l])}function dn(l,c){return Ye(c[l.index])}function li(l,c){return l.data[c]}function Bi(l,c){return l[c]}function tt(l,c){const f=c[l];return Ss(f)?f:f[0]}function $e(l){return 4==(4&l[2])}function De(l){return 128==(128&l[2])}function Ln(l,c){return null==c?null:l[c]}function Si(l){l[18]=0}function gs(l,c){l[5]+=c;let f=l,y=l[3];for(;null!==y&&(1===c&&1===f[5]||-1===c&&0===f[5]);)y[5]+=c,f=y,y=y[3]}const Ni={lFrame:Ji(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Do(){return Ni.bindingsEnabled}function st(){return Ni.lFrame.lView}function $(){return Ni.lFrame.tView}function ne(l){return Ni.lFrame.contextLView=l,l[8]}function Ae(){let l=Ct();for(;null!==l&&64===l.type;)l=l.parent;return l}function Ct(){return Ni.lFrame.currentTNode}function nn(l,c){const f=Ni.lFrame;f.currentTNode=l,f.isParent=c}function un(){return Ni.lFrame.isParent}function Fn(){Ni.lFrame.isParent=!1}function Fi(){return Ni.isInCheckNoChangesMode}function Ge(l){Ni.isInCheckNoChangesMode=l}function Xe(){const l=Ni.lFrame;let c=l.bindingRootIndex;return-1===c&&(c=l.bindingRootIndex=l.tView.bindingStartIndex),c}function dt(){return Ni.lFrame.bindingIndex}function ue(){return Ni.lFrame.bindingIndex++}function fn(l){const c=Ni.lFrame,f=c.bindingIndex;return c.bindingIndex=c.bindingIndex+l,f}function Ue(l,c){const f=Ni.lFrame;f.bindingIndex=f.bindingRootIndex=l,Bt(c)}function Bt(l){Ni.lFrame.currentDirectiveIndex=l}function Ut(l){const c=Ni.lFrame.currentDirectiveIndex;return-1===c?null:l[c]}function mn(){return Ni.lFrame.currentQueryIndex}function In(l){Ni.lFrame.currentQueryIndex=l}function En(l){const c=l[1];return 2===c.type?c.declTNode:1===c.type?l[6]:null}function Jn(l,c,f){if(f&Je.SkipSelf){let w=c,R=l;for(;!(w=w.parent,null!==w||f&Je.Host||(w=En(R),null===w||(R=R[15],10&w.type))););if(null===w)return!1;c=w,l=R}const y=Ni.lFrame=as();return y.currentTNode=c,y.lView=l,!0}function mi(l){const c=as(),f=l[1];Ni.lFrame=c,c.currentTNode=f.firstChild,c.lView=l,c.tView=f,c.contextLView=l,c.bindingIndex=f.bindingStartIndex,c.inI18n=!1}function as(){const l=Ni.lFrame,c=null===l?null:l.child;return null===c?Ji(l):c}function Ji(l){const c={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:l,child:null,inI18n:!1};return null!==l&&(l.child=c),c}function ls(){const l=Ni.lFrame;return Ni.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}const Di=ls;function Ki(){const l=ls();l.isParent=!0,l.tView=null,l.selectedIndex=-1,l.contextLView=null,l.elementDepthCount=0,l.currentDirectiveIndex=-1,l.currentNamespace=null,l.bindingRootIndex=-1,l.bindingIndex=-1,l.currentQueryIndex=0}function Wn(){return Ni.lFrame.selectedIndex}function br(l){Ni.lFrame.selectedIndex=l}function _s(){const l=Ni.lFrame;return li(l.tView,l.selectedIndex)}function zr(){Ni.lFrame.currentNamespace=hr}function sr(){Ni.lFrame.currentNamespace=null}function _r(l,c){for(let f=c.directiveStart,y=c.directiveEnd;f=y)break}else c[Pe]<0&&(l[18]+=65536),(_e>11>16&&(3&l[2])===c){l[2]+=2048;try{R.call(_e)}finally{}}}else try{R.call(_e)}finally{}}class ka{constructor(c,f,y){this.factory=c,this.resolving=!1,this.canSeeViewProviders=f,this.injectImpl=y}}function Xa(l,c,f){const y=yr(l);let w=0;for(;wc){te=R-1;break}}}for(;R>16}(l),y=c;for(;f>0;)y=y[15],f--;return y}let Vl=!0;function Ga(l){const c=Vl;return Vl=l,c}let Qe=0;function Vt(l,c){const f=_n(l,c);if(-1!==f)return f;const y=c[1];y.firstCreatePass&&(l.injectorIndex=c.length,rn(y.data,l),rn(c,null),rn(y.blueprint,null));const w=Kn(l,c),R=l.injectorIndex;if(Ol(w)){const te=Cl(w),_e=la(w,c),Pe=_e[1].data;for(let vt=0;vt<8;vt++)c[R+vt]=_e[te+vt]|Pe[te+vt]}return c[R+8]=w,R}function rn(l,c){l.push(0,0,0,0,0,0,0,0,c)}function _n(l,c){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===c[l.injectorIndex+8]?-1:l.injectorIndex}function Kn(l,c){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;let f=0,y=null,w=c;for(;null!==w;){const R=w[1],te=R.type;if(y=2===te?R.declTNode:1===te?w[6]:null,null===y)return-1;if(f++,w=w[15],-1!==y.injectorIndex)return y.injectorIndex|f<<16}return-1}function Wi(l,c,f){!function(l,c,f){let y;"string"==typeof f?y=f.charCodeAt(0)||0:f.hasOwnProperty(bt)&&(y=f[bt]),null==y&&(y=f[bt]=Qe++);const w=255&y;c.data[l+(w>>5)]|=1<=0?255&c:ia:c}(f);if("function"==typeof R){if(!Jn(c,l,y))return y&Je.Host?Ai(w,f,y):Ir(c,f,y,w);try{const te=R(y);if(null!=te||y&Je.Optional)return te;fe(f)}finally{Di()}}else if("number"==typeof R){let te=null,_e=_n(l,c),Pe=-1,vt=y&Je.Host?c[16][6]:null;for((-1===_e||y&Je.SkipSelf)&&(Pe=-1===_e?Kn(l,c):c[_e+8],-1!==Pe&&bo(y,!1)?(te=c[1],_e=Cl(Pe),c=la(Pe,c)):_e=-1);-1!==_e;){const Ot=c[1];if(Gl(R,_e,Ot.data)){const Xt=Ro(_e,c,f,te,y,vt);if(Xt!==Eo)return Xt}Pe=c[_e+8],-1!==Pe&&bo(y,c[1].data[_e+8]===vt)&&Gl(R,_e,c)?(te=Ot,_e=Cl(Pe),c=la(Pe,c)):_e=-1}}}return Ir(c,f,y,w)}const Eo={};function ia(){return new Ul(Ae(),st())}function Ro(l,c,f,y,w,R){const te=c[1],_e=te.data[l+8],Ot=Fa(_e,te,f,null==y?Fr(_e)&&Vl:y!=te&&0!=(3&_e.type),w&Je.Host&&R===_e);return null!==Ot?jl(c,te,Ot,_e):Eo}function Fa(l,c,f,y,w){const R=l.providerIndexes,te=c.data,_e=1048575&R,Pe=l.directiveStart,Ot=R>>20,bn=w?_e+Ot:l.directiveEnd;for(let Nn=y?_e:_e+Ot;Nn=Pe&&di.type===f)return Nn}if(w){const Nn=te[Pe];if(Nn&&Lr(Nn)&&Nn.type===f)return Pe}return null}function jl(l,c,f,y){let w=l[f];const R=c.data;if(function(l){return l instanceof ka}(w)){const te=w;te.resolving&&function(l,c){throw new le("200",`Circular dependency in DI detected for ${l}`)}(L(R[f]));const _e=Ga(te.canSeeViewProviders);te.resolving=!0;const Pe=te.injectImpl?$t(te.injectImpl):null;Jn(l,y,Je.Default);try{w=l[f]=te.factory(void 0,R,l,y),c.firstCreatePass&&f>=y.directiveStart&&function(l,c,f){const{ngOnChanges:y,ngOnInit:w,ngDoCheck:R}=c.type.prototype;if(y){const te=ai(c);(f.preOrderHooks||(f.preOrderHooks=[])).push(l,te),(f.preOrderCheckHooks||(f.preOrderCheckHooks=[])).push(l,te)}w&&(f.preOrderHooks||(f.preOrderHooks=[])).push(0-l,w),R&&((f.preOrderHooks||(f.preOrderHooks=[])).push(l,R),(f.preOrderCheckHooks||(f.preOrderCheckHooks=[])).push(l,R))}(f,R[f],c)}finally{null!==Pe&&$t(Pe),Ga(_e),te.resolving=!1,Di()}}return w}function Gl(l,c,f){return!!(f[c+(l>>5)]&1<{const c=l.prototype.constructor,f=c[nt]||Xd(c),y=Object.prototype;let w=Object.getPrototypeOf(l.prototype).constructor;for(;w&&w!==y;){const R=w[nt]||Xd(w);if(R&&R!==f)return R;w=Object.getPrototypeOf(w)}return R=>new R})}function Xd(l){return x(l)?()=>{const c=Xd(ee(l));return c&&c()}:Yt(l)}function Po(l){return function(l,c){if("class"===c)return l.classes;if("style"===c)return l.styles;const f=l.attrs;if(f){const y=f.length;let w=0;for(;w{const y=ho(c);function w(...R){if(this instanceof w)return y.apply(this,R),this;const te=new w(...R);return _e.annotation=te,_e;function _e(Pe,vt,Ot){const Xt=Pe.hasOwnProperty(oc)?Pe[oc]:Object.defineProperty(Pe,oc,{value:[]})[oc];for(;Xt.length<=Ot;)Xt.push(null);return(Xt[Ot]=Xt[Ot]||[]).push(te),Pe}}return f&&(w.prototype=Object.create(f.prototype)),w.prototype.ngMetadataName=l,w.annotationCls=w,w})}function ca(l,c,f,y){return Re(()=>{const w=ho(c);function R(...te){if(this instanceof R)return w.apply(this,te),this;const _e=new R(...te);return function(vt,Ot){const Xt=vt.constructor,bn=Xt.hasOwnProperty(Ua)?Xt[Ua]:Object.defineProperty(Xt,Ua,{value:{}})[Ua];bn[Ot]=bn.hasOwnProperty(Ot)&&bn[Ot]||[],bn[Ot].unshift(_e),y&&y(vt,Ot,...te)}}return f&&(R.prototype=Object.create(f.prototype)),R.prototype.ngMetadataName=l,R.annotationCls=R,R})}class po{constructor(c,f){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof f?this.__NG_ELEMENT_ID__=f:void 0!==f&&(this.\u0275prov=ke({token:this,providedIn:f.providedIn||"root",factory:f.factory}))}toString(){return`InjectionToken ${this._desc}`}}const eu=new po("AnalyzeForEntryComponents");class wd{}const Sl=ca("ContentChildren",(l,c={})=>Object.assign({selector:l,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},c),wd),Fu=ca("ContentChild",(l,c={})=>Object.assign({selector:l,first:!0,isViewQuery:!1,descendants:!0},c),wd),Ic=ca("ViewChildren",(l,c={})=>Object.assign({selector:l,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},c),wd),xd=ca("ViewChild",(l,c)=>Object.assign({selector:l,first:!0,isViewQuery:!0,descendants:!0},c),wd);function $a(l,c){void 0===c&&(c=l);for(let f=0;fArray.isArray(f)?tl(f,c):c(f))}function ch(l,c,f){c>=l.length?l.push(f):l.splice(c,0,f)}function Gr(l,c){return c>=l.length-1?l.pop():l.splice(c,1)[0]}function ac(l,c){const f=[];for(let y=0;y=0?l[1|y]=f:(y=~y,function(l,c,f,y){let w=l.length;if(w==c)l.push(f,y);else if(1===w)l.push(y,l[0]),l[0]=f;else{for(w--,l.push(l[w-1],l[w]);w>c;)l[w]=l[w-2],w--;l[c]=f,l[c+1]=y}}(l,y,c,f)),y}function Tc(l,c){const f=ed(l,c);if(f>=0)return l[1|f]}function ed(l,c){return function(l,c,f){let y=0,w=l.length>>f;for(;w!==y;){const R=y+(w-y>>1),te=l[R<c?w=R:y=R+1}return~(w<({token:l})),-1),Lt=j(qc("Optional"),8),Tn=j(qc("Self"),2),ei=j(qc("SkipSelf"),4),ri=j(qc("Host"),1);let Ac,pl;function nd(l){var c;return(null===(c=function(){if(void 0===Ac&&(Ac=null,_t.trustedTypes))try{Ac=_t.trustedTypes.createPolicy("angular",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch(l){}return Ac}())||void 0===c?void 0:c.createHTML(l))||l}function _h(l){var c;return(null===(c=function(){if(void 0===pl&&(pl=null,_t.trustedTypes))try{pl=_t.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch(l){}return pl}())||void 0===c?void 0:c.createHTML(l))||l}class id{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class wl extends id{getTypeName(){return"HTML"}}class Oc extends id{getTypeName(){return"Style"}}class uf extends id{getTypeName(){return"Script"}}class sd extends id{getTypeName(){return"URL"}}class ap extends id{getTypeName(){return"ResourceURL"}}function uc(l){return l instanceof id?l.changingThisBreaksApplicationSecurity:l}function hc(l,c){const f=lp(l);if(null!=f&&f!==c){if("ResourceURL"===f&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${f} (see https://g.co/ng/security#xss)`)}return f===c}function lp(l){return l instanceof id&&l.getTypeName()||null}function cp(l){return new wl(l)}function hf(l){return new Oc(l)}function yh(l){return new uf(l)}function pf(l){return new sd(l)}function k0(l){return new ap(l)}class r1{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c=""+c;try{const f=(new window.DOMParser).parseFromString(nd(c),"text/html").body;return null===f?this.inertDocumentHelper.getInertBodyElement(c):(f.removeChild(f.firstChild),f)}catch(f){return null}}}class o1{constructor(c){if(this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const f=this.inertDocument.createElement("html");this.inertDocument.appendChild(f);const y=this.inertDocument.createElement("body");f.appendChild(y)}}getInertBodyElement(c){const f=this.inertDocument.createElement("template");if("content"in f)return f.innerHTML=nd(c),f;const y=this.inertDocument.createElement("body");return y.innerHTML=nd(c),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(c){const f=c.attributes;for(let w=f.length-1;0ru(c.trim())).join(", ")),this.buf.push(" ",te,'="',Fc(Pe),'"')}var l;return this.buf.push(">"),!0}endElement(c){const f=c.nodeName.toLowerCase();Sh.hasOwnProperty(f)&&!il.hasOwnProperty(f)&&(this.buf.push(""))}chars(c){this.buf.push(Fc(c))}checkClobberedElement(c,f){if(f&&(c.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${c.outerHTML}`);return f}}const Pu=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,is=/([^\#-~ |!])/g;function Fc(l){return l.replace(/&/g,"&").replace(Pu,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(is,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(//g,">")}let hp;function qo(l,c){let f=null;try{hp=hp||function(l){const c=new o1(l);return function(){try{return!!(new window.DOMParser).parseFromString(nd(""),"text/html")}catch(l){return!1}}()?new r1(c):c}(l);let y=c?String(c):"";f=hp.getInertBodyElement(y);let w=5,R=y;do{if(0===w)throw new Error("Failed to sanitize html because the input is unstable");w--,y=R,R=f.innerHTML,f=hp.getInertBodyElement(y)}while(y!==R);return nd((new yf).sanitizeChildren(rd(f)||f))}finally{if(f){const y=rd(f)||f;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function rd(l){return"content"in l&&function(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var Ho=(()=>((Ho=Ho||{})[Ho.NONE=0]="NONE",Ho[Ho.HTML=1]="HTML",Ho[Ho.STYLE=2]="STYLE",Ho[Ho.SCRIPT=3]="SCRIPT",Ho[Ho.URL=4]="URL",Ho[Ho.RESOURCE_URL=5]="RESOURCE_URL",Ho))();function xh(l){const c=Ur();return c?_h(c.sanitize(Ho.HTML,l)||""):hc(l,"HTML")?_h(uc(l)):qo(Ds(),ce(l))}function ua(l){const c=Ur();return c?c.sanitize(Ho.URL,l)||"":hc(l,"URL")?uc(l):ru(ce(l))}function Ur(){const l=st();return l&&l[12]}const Jo="__ngContext__";function jo(l,c){l[Jo]=c}function Rd(l){const c=function(l){return l[Jo]||null}(l);return c?Array.isArray(c)?c:c.lView:null}function Ld(l){return l.ngOriginalError}function ys(l,...c){l.error(...c)}class pc{constructor(){this._console=console}handleError(c){const f=this._findOriginalError(c),y=(l=c)&&l.ngErrorLogger||ys;var l;y(this._console,"ERROR",c),f&&y(this._console,"ORIGINAL ERROR",f)}_findOriginalError(c){let f=c&&Ld(c);for(;f&&Ld(f);)f=Ld(f);return f||null}}const tr=/^>|^->||--!>|)/;const Rs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(_t))();function Bd(l){return l.ownerDocument.defaultView}function Mh(l){return l.ownerDocument}function xl(l){return l instanceof Function?l():l}var La=(()=>((La=La||{})[La.Important=1]="Important",La[La.DashCase=2]="DashCase",La))();function oa(l,c){return undefined(l,c)}function Ko(l){const c=l[3];return ds(c)?c[3]:c}function Wa(l){return Nd(l[13])}function ga(l){return Nd(l[4])}function Nd(l){for(;null!==l&&!ds(l);)l=l[4];return l}function du(l,c,f,y,w){if(null!=y){let R,te=!1;ds(y)?R=y:Ss(y)&&(te=!0,y=y[0]);const _e=Ye(y);0===l&&null!==f?null==w?zd(c,f,_e):rl(c,f,_e,w||null,!0):1===l&&null!==f?rl(c,f,_e,w||null,!0):2===l?f1(c,_e,te):3===l&&c.destroyNode(_e),null!=R&&function(l,c,f,y,w){const R=f[7];R!==Ye(f)&&du(c,l,y,R,w);for(let _e=10;_ec.replace(vp,"\u200b$1\u200b"))}(c))}function yp(l,c,f){return yr(l)?l.createElement(c,f):null===f?l.createElement(c):l.createElementNS(f,c)}function gc(l,c){const f=l[9],y=f.indexOf(c),w=c[3];1024&c[2]&&(c[2]&=-1025,gs(w,-1)),f.splice(y,1)}function ma(l,c){if(l.length<=10)return;const f=10+c,y=l[f];if(y){const w=y[17];null!==w&&w!==l&&gc(w,y),c>0&&(l[f-1][4]=y[4]);const R=Gr(l,10+c);!function(l,c){Oh(l,c,c[11],2,null,null),c[0]=null,c[6]=null}(y[1],y);const te=R[19];null!==te&&te.detachView(R[1]),y[3]=null,y[4]=null,y[2]&=-129}return y}function Dh(l,c){if(!(256&c[2])){const f=c[11];yr(f)&&f.destroyNode&&Oh(l,c,f,3,null,null),function(l){let c=l[13];if(!c)return dd(l[1],l);for(;c;){let f=null;if(Ss(c))f=c[13];else{const y=c[10];y&&(f=y)}if(!f){for(;c&&!c[4]&&c!==l;)Ss(c)&&dd(c[1],c),c=c[3];null===c&&(c=l),Ss(c)&&dd(c[1],c),f=c&&c[4]}c=f}}(c)}}function dd(l,c){if(!(256&c[2])){c[2]&=-129,c[2]|=256,function(l,c){let f;if(null!=l&&null!=(f=l.destroyHooks))for(let y=0;y=0?y[w=vt]():y[w=-vt].unsubscribe(),R+=2}else{const te=y[w=f[R+1]];f[R].call(te)}if(null!==y){for(let R=w+1;RR?"":w[Xt+1].toLowerCase();const Nn=8&y?bn:null;if(Nn&&-1!==v(Nn,vt,0)||2&y&&vt!==bn){if(qn(y))return!1;te=!0}}}}else{if(!te&&!qn(y)&&!qn(Pe))return!1;if(te&&qn(Pe))continue;te=!1,y=Pe|1&y}}return qn(y)||te}function qn(l){return 0==(1&l)}function Un(l,c,f,y){if(null===c)return-1;let w=0;if(y||!f){let R=!1;for(;w-1)for(f++;f0?'="'+_e+'"':"")+"]"}else 8&y?w+="."+te:4&y&&(w+=" "+te);else""!==w&&!qn(te)&&(c+=fu(R,w),w=""),y=te,R=R||!qn(y);f++}return""!==w&&(c+=fu(R,w)),c}const Dr={};function Sg(l){V0($(),st(),Wn()+l,Fi())}function V0(l,c,f,y){if(!y)if(3==(3&c[2])){const R=l.preOrderCheckHooks;null!==R&&ro(c,R,f)}else{const R=l.preOrderHooks;null!==R&&_o(c,R,0,f)}br(f)}function Mf(l,c){return l<<17|c<<2}function za(l){return l>>17&32767}function G0(l){return 2|l}function ol(l){return(131068&l)>>2}function Sp(l,c){return-131069&l|c<<2}function If(l){return 1|l}function Dg(l,c){const f=l.contentQueries;if(null!==f)for(let y=0;y20&&V0(l,c,20,Fi()),f(y,w)}finally{br(R)}}function X0(l,c,f){if(Yr(c)){const w=c.directiveEnd;for(let R=c.directiveStart;R0;){const f=l[--c];if("number"==typeof f&&f<0)return f}return 0})(_e)!=Pe&&_e.push(Pe),_e.push(y,w,te)}}function d2(l,c){null!==l.hostBindings&&l.hostBindings(1,c)}function Gf(l,c){c.flags|=2,(l.components||(l.components=[])).push(c.index)}function h2(l,c,f){if(f){if(c.exportAs)for(let y=0;y0&&Yf(f)}}function Yf(l){for(let y=Wa(l);null!==y;y=ga(y))for(let w=10;w0&&Yf(R)}const f=l[1].components;if(null!==f)for(let y=0;y0&&Yf(w)}}function S1(l,c){const f=tt(c,l),y=f[1];(function(l,c){for(let f=c.length;fPromise.resolve(null))();function Gg(l){return l[7]||(l[7]=[])}function Ug(l){return l.cleanup||(l.cleanup=[])}function $g(l,c,f){return(null===l||Lr(l))&&(f=function(l){for(;Array.isArray(l);){if("object"==typeof l[1])return l;l=l[0]}return null}(f[c.index])),f[11]}function m2(l,c){const f=l[9],y=f?f.get(pc,null):null;y&&y.handleError(c)}function v2(l,c,f,y,w){for(let R=0;Rthis.processProvider(_e,c,f)),tl([c],_e=>this.processInjectorType(_e,[],R)),this.records.set(Ep,$u(void 0,this));const te=this.records.get(I1);this.scope=null!=te?te.value:null,this.source=w||("object"==typeof c?null:O(c))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(c=>c.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(c,f=kc,y=Je.Default){this.assertNotDestroyed();const w=su(this),R=$t(void 0);try{if(!(y&Je.SkipSelf)){let _e=this.records.get(c);if(void 0===_e){const Pe=("function"==typeof(l=c)||"object"==typeof l&&l instanceof po)&&We(c);_e=Pe&&this.injectableDefInScope(Pe)?$u(Yg(c),zc):null,this.records.set(c,_e)}if(null!=_e)return this.hydrate(c,_e)}return(y&Je.Self?Wf():this.parent).get(c,f=y&Je.Optional&&f===kc?null:f)}catch(te){if("NullInjectorError"===te.name){if((te[nu]=te[nu]||[]).unshift(O(c)),w)throw te;return function(l,c,f,y){const w=l[nu];throw c[fh]&&w.unshift(c[fh]),l.message=function(l,c,f,y=null){l=l&&"\n"===l.charAt(0)&&"\u0275"==l.charAt(1)?l.substr(2):l;let w=O(c);if(Array.isArray(c))w=c.map(O).join(" -> ");else if("object"==typeof c){let R=[];for(let te in c)if(c.hasOwnProperty(te)){let _e=c[te];R.push(te+":"+("string"==typeof _e?JSON.stringify(_e):O(_e)))}w=`{${R.join(", ")}}`}return`${f}${y?"("+y+")":""}[${w}]: ${l.replace(n1,"\n ")}`}("\n"+l.message,w,f,y),l.ngTokenPath=w,l[nu]=null,l}(te,c,"R3InjectorError",this.source)}throw te}finally{$t(R),su(w)}var l}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(c=>this.get(c))}toString(){const c=[];return this.records.forEach((y,w)=>c.push(O(w))),`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(c,f,y){if(!(c=ee(c)))return!1;let w=Jt(c);const R=null==w&&c.ngModule||void 0,te=void 0===R?c:R,_e=-1!==y.indexOf(te);if(void 0!==R&&(w=Jt(R)),null==w)return!1;if(null!=w.imports&&!_e){let Ot;y.push(te);try{tl(w.imports,Xt=>{this.processInjectorType(Xt,f,y)&&(void 0===Ot&&(Ot=[]),Ot.push(Xt))})}finally{}if(void 0!==Ot)for(let Xt=0;Xtthis.processProvider(di,bn,Nn||Ft))}}this.injectorDefTypes.add(te);const Pe=Yt(te)||(()=>new te);this.records.set(te,$u(Pe,zc));const vt=w.providers;if(null!=vt&&!_e){const Ot=c;tl(vt,Xt=>this.processProvider(Xt,Ot,vt))}return void 0!==R&&void 0!==c.providers}processProvider(c,f,y){let w=Yu(c=ee(c))?c:ee(c&&c.provide);const R=(l=c,kp(l)?$u(void 0,l.useValue):$u(Qg(l),zc));var l;if(Yu(c)||!0!==c.multi)this.records.get(w);else{let te=this.records.get(w);te||(te=$u(void 0,zc,!0),te.factory=()=>Ql(te.multi),this.records.set(w,te)),w=c,te.multi.push(c)}this.records.set(w,R)}hydrate(c,f){return f.value===zc&&(f.value=_2,f.value=f.factory()),"object"==typeof f.value&&f.value&&null!==(l=f.value)&&"object"==typeof l&&"function"==typeof l.ngOnDestroy&&this.onDestroy.add(f.value),f.value;var l}injectableDefInScope(c){if(!c.providedIn)return!1;const f=ee(c.providedIn);return"string"==typeof f?"any"===f||f===this.scope:this.injectorDefTypes.has(f)}}function Yg(l){const c=We(l),f=null!==c?c.factory:Yt(l);if(null!==f)return f;if(l instanceof po)throw new Error(`Token ${O(l)} is missing a \u0275prov definition.`);if(l instanceof Function)return function(l){const c=l.length;if(c>0){const y=ac(c,"?");throw new Error(`Can't resolve all parameters for ${O(l)}: (${y.join(", ")}).`)}const f=function(l){const c=l&&(l[Wt]||l[ye]);if(c){const f=function(l){if(l.hasOwnProperty("name"))return l.name;const c=(""+l).match(/^function\s*([^\s(]+)/);return null===c?"":c[1]}(l);return console.warn(`DEPRECATED: DI is instantiating a token "${f}" 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 "${f}" class.`),c}return null}(l);return null!==f?()=>f.factory(l):()=>new l}(l);throw new Error("unreachable")}function Qg(l,c,f){let y;if(Yu(l)){const w=ee(l);return Yt(w)||Yg(w)}if(kp(l))y=()=>ee(l.useValue);else if(function(l){return!(!l||!l.useFactory)}(l))y=()=>l.useFactory(...Ql(l.deps||[]));else if(function(l){return!(!l||!l.useExisting)}(l))y=()=>Zo(ee(l.useExisting));else{const w=ee(l&&(l.useClass||l.provide));if(!function(l){return!!l.deps}(l))return Yt(w)||Yg(w);y=()=>new w(...Ql(l.deps))}return y}function $u(l,c,f=!1){return{factory:l,value:c,multi:f?[]:void 0}}function kp(l){return null!==l&&"object"==typeof l&&lc in l}function Yu(l){return"function"==typeof l}let Hc=(()=>{class l{static create(f,y){var w;if(Array.isArray(f))return _u({name:""},y,f,"");{const R=null!==(w=f.name)&&void 0!==w?w:"";return _u({name:R},f.parent,f.providers,R)}}}return l.THROW_IF_NOT_FOUND=kc,l.NULL=new hd,l.\u0275prov=ke({token:l,providedIn:"any",factory:()=>Zo(Ep)}),l.__NG_ELEMENT_ID__=-1,l})();function em(l,c){_r(Rd(l)[1],Ae())}function x2(l){let c=function(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),f=!0;const y=[l];for(;c;){let w;if(Lr(l))w=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Error("Directives cannot inherit Components");w=c.\u0275dir}if(w){if(f){y.push(w);const te=l;te.inputs=M2(l.inputs),te.declaredInputs=M2(l.declaredInputs),te.outputs=M2(l.outputs);const _e=w.hostBindings;_e&&m(l,_e);const Pe=w.viewQuery,vt=w.contentQueries;if(Pe&&I2(l,Pe),vt&&Op(l,vt),r(l.inputs,w.inputs),r(l.declaredInputs,w.declaredInputs),r(l.outputs,w.outputs),Lr(w)&&w.data.animation){const Ot=l.data;Ot.animation=(Ot.animation||[]).concat(w.data.animation)}}const R=w.features;if(R)for(let te=0;te=0;y--){const w=l[y];w.hostVars=c+=w.hostVars,w.hostAttrs=To(w.hostAttrs,f=To(f,w.hostAttrs))}}(y)}function M2(l){return l===Rt?{}:l===Ft?[]:l}function I2(l,c){const f=l.viewQuery;l.viewQuery=f?(y,w)=>{c(y,w),f(y,w)}:c}function Op(l,c){const f=l.contentQueries;l.contentQueries=f?(y,w,R)=>{c(y,w,R),f(y,w,R)}:c}function m(l,c){const f=l.hostBindings;l.hostBindings=f?(y,w)=>{c(y,w),f(y,w)}:c}let W=null;function Ee(){if(!W){const l=_t.Symbol;if(l&&l.iterator)W=l.iterator;else{const c=Object.getOwnPropertyNames(Map.prototype);for(let f=0;f_e(Ye(io[y.index])):y.index;if(yr(f)){let io=null;if(!_e&&Pe&&(io=function(l,c,f,y){const w=l.cleanup;if(null!=w)for(let R=0;RPe?_e[Pe]:null}"string"==typeof te&&(R+=2)}return null}(l,c,w,y.index)),null!==io)(io.__ngLastListenerFn__||io).__ngNextListenerFn__=R,io.__ngLastListenerFn__=R,Nn=!1;else{R=cm(y,c,Xt,R,!1);const Bo=f.listen(As,w,R);bn.push(R,Bo),Ot&&Ot.push(w,or,bi,bi+1)}}else R=cm(y,c,Xt,R,!0),As.addEventListener(w,R,te),bn.push(R),Ot&&Ot.push(w,or,bi,te)}else R=cm(y,c,Xt,R,!1);const di=y.outputs;let zi;if(Nn&&null!==di&&(zi=di[w])){const ns=zi.length;if(ns)for(let As=0;As0;)c=c[15],l--;return c}(l,Ni.lFrame.contextLView))[8]}(l)}function yv(l,c){let f=null;const y=function(l){const c=l.attrs;if(null!=c){const f=c.indexOf(5);if(0==(1&f))return c[f+1]}return null}(l);for(let w=0;w=0}const ml={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Uc(l){return l.substring(ml.key,ml.keyEnd)}function wv(l,c){const f=ml.textEnd;return f===c?-1:(c=ml.keyEnd=function(l,c,f){for(;c32;)c++;return c}(l,ml.key=c,f),O1(l,c,f))}function O1(l,c,f){for(;c=0;f=wv(c,f))Ma(l,Uc(c),!0)}function ql(l,c,f,y){const w=st(),R=$(),te=fn(2);R.firstUpdatePass&&l0(R,l,te,y),c!==Dr&&cr(w,te,c)&&L4(R,R.data[Wn()],w,w[11],l,w[te+1]=function(l,c){return null==l||("string"==typeof c?l+=c:"object"==typeof l&&(l=O(uc(l)))),l}(c,f),y,te)}function Bl(l,c,f,y){const w=$(),R=fn(2);w.firstUpdatePass&&l0(w,null,R,y);const te=st();if(f!==Dr&&cr(te,R,f)){const _e=w.data[Wn()];if(N4(_e,y)&&!_c(w,R)){let Pe=y?_e.classesWithoutHost:_e.stylesWithoutHost;null!==Pe&&(f=P(Pe,f||"")),s0(w,_e,te,f,y)}else!function(l,c,f,y,w,R,te,_e){w===Dr&&(w=Ft);let Pe=0,vt=0,Ot=0=l.expandoStartIndex}function l0(l,c,f,y){const w=l.data;if(null===w[f+1]){const R=w[Wn()],te=_c(l,f);N4(R,y)&&null===c&&!te&&(c=!1),c=function(l,c,f,y){const w=Ut(l);let R=y?c.residualClasses:c.residualStyles;if(null===w)0===(y?c.classBindings:c.styleBindings)&&(f=Np(f=L2(null,l,c,f,y),c.attrs,y),R=null);else{const te=c.directiveStylingLast;if(-1===te||l[te]!==w)if(f=L2(w,l,c,f,y),null===R){let Pe=function(l,c,f){const y=f?c.classBindings:c.styleBindings;if(0!==ol(y))return l[za(y)]}(l,c,y);void 0!==Pe&&Array.isArray(Pe)&&(Pe=L2(null,l,c,Pe[1],y),Pe=Np(Pe,c.attrs,y),function(l,c,f,y){l[za(f?c.classBindings:c.styleBindings)]=y}(l,c,y,Pe))}else R=function(l,c,f){let y;const w=c.directiveEnd;for(let R=1+c.directiveStylingLast;R0)&&(vt=!0)}else Ot=f;if(w)if(0!==Pe){const bn=za(l[_e+1]);l[y+1]=Mf(bn,_e),0!==bn&&(l[bn+1]=Sp(l[bn+1],y)),l[_e+1]=function(l,c){return 131071&l|c<<17}(l[_e+1],y)}else l[y+1]=Mf(_e,0),0!==_e&&(l[_e+1]=Sp(l[_e+1],y)),_e=y;else l[y+1]=Mf(Pe,0),0===_e?_e=y:l[Pe+1]=Sp(l[Pe+1],y),Pe=y;vt&&(l[y+1]=G0(l[y+1])),Wu(l,Ot,y,!0),Wu(l,Ot,y,!1),function(l,c,f,y,w){const R=w?l.residualClasses:l.residualStyles;null!=R&&"string"==typeof c&&ed(R,c)>=0&&(f[y+1]=If(f[y+1]))}(c,Ot,l,y,R),te=Mf(_e,Pe),R?c.classBindings=te:c.styleBindings=te}(w,R,c,f,te,y)}}function L2(l,c,f,y,w){let R=null;const te=f.directiveEnd;let _e=f.directiveStylingLast;for(-1===_e?_e=f.directiveStart:_e++;_e0;){const Pe=l[w],vt=Array.isArray(Pe),Ot=vt?Pe[1]:Pe,Xt=null===Ot;let bn=f[w+1];bn===Dr&&(bn=Xt?Ft:void 0);let Nn=Xt?Tc(bn,y):Ot===y?bn:void 0;if(vt&&!z2(Nn)&&(Nn=Tc(Pe,y)),z2(Nn)&&(_e=Nn,te))return _e;const di=l[w+1];w=te?za(di):ol(di)}if(null!==c){let Pe=R?c.residualClasses:c.residualStyles;null!=Pe&&(_e=Tc(Pe,y))}return _e}function z2(l){return void 0!==l}function N4(l,c){return 0!=(l.flags&(c?16:32))}function mm(l,c=""){const f=st(),y=$(),w=l+20,R=y.firstCreatePass?Ip(y,w,1,c,null):y.data[w],te=f[w]=l1(f[11],c);Ah(y,f,te,R),nn(R,!1)}function Ja(l){return zp("",l,""),Ja}function zp(l,c,f){const y=st(),w=Ud(y,l,c,f);return w!==Dr&&mu(y,Wn(),w),zp}function vm(l,c,f,y,w){const R=st(),te=function(l,c,f,y,w,R){const _e=Fo(l,dt(),f,w);return fn(2),_e?c+ce(f)+y+ce(w)+R:Dr}(R,l,c,f,y,w);return te!==Dr&&mu(R,Wn(),te),vm}function _m(l,c,f,y,w,R,te){const _e=st(),Pe=function(l,c,f,y,w,R,te,_e){const vt=gl(l,dt(),f,w,te);return fn(3),vt?c+ce(f)+y+ce(w)+R+ce(te)+_e:Dr}(_e,l,c,f,y,w,R,te);return Pe!==Dr&&mu(_e,Wn(),Pe),_m}function H2(l,c,f,y,w,R,te,_e,Pe,vt,Ot){const Xt=st(),bn=function(l,c,f,y,w,R,te,_e,Pe,vt,Ot,Xt){const bn=dt();let Nn=mo(l,bn,f,w,te,Pe);return Nn=cr(l,bn+4,Ot)||Nn,fn(5),Nn?c+ce(f)+y+ce(w)+R+ce(te)+_e+ce(Pe)+vt+ce(Ot)+Xt:Dr}(Xt,l,c,f,y,w,R,te,_e,Pe,vt,Ot);return bn!==Dr&&mu(Xt,Wn(),bn),H2}function z4(l,c,f){Bl(Ma,vc,Ud(st(),l,c,f),!0)}function j2(l,c,f){const y=st();return cr(y,ue(),c)&&mc($(),_s(),y,l,c,y[11],f,!0),j2}function G2(l,c,f){const y=st();if(cr(y,ue(),c)){const R=$(),te=_s();mc(R,te,y,l,c,$g(Ut(R.data),te,y),f,!0)}return G2}const Mu=void 0;var Am=["en",[["a","p"],["AM","PM"],Mu],[["AM","PM"],Mu,Mu],[["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"]],Mu,[["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"]],Mu,[["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}",Mu,"{1} 'at' {0}",Mu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(l){const f=Math.floor(Math.abs(l)),y=l.toString().replace(/^[^.]*\.?/,"").length;return 1===f&&0===y?1:5}];let jp={};function U2(l){const c=function(l){return l.toLowerCase().replace(/_/g,"-")}(l);let f=Fm(c);if(f)return f;const y=c.split("-")[0];if(f=Fm(y),f)return f;if("en"===y)return Am;throw new Error(`Missing locale data for the locale "${l}".`)}function Om(l){return U2(l)[Ks.PluralCase]}function Fm(l){return l in jp||(jp[l]=_t.ng&&_t.ng.common&&_t.ng.common.locales&&_t.ng.common.locales[l]),jp[l]}var Ks=(()=>((Ks=Ks||{})[Ks.LocaleId=0]="LocaleId",Ks[Ks.DayPeriodsFormat=1]="DayPeriodsFormat",Ks[Ks.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ks[Ks.DaysFormat=3]="DaysFormat",Ks[Ks.DaysStandalone=4]="DaysStandalone",Ks[Ks.MonthsFormat=5]="MonthsFormat",Ks[Ks.MonthsStandalone=6]="MonthsStandalone",Ks[Ks.Eras=7]="Eras",Ks[Ks.FirstDayOfWeek=8]="FirstDayOfWeek",Ks[Ks.WeekendRange=9]="WeekendRange",Ks[Ks.DateFormat=10]="DateFormat",Ks[Ks.TimeFormat=11]="TimeFormat",Ks[Ks.DateTimeFormat=12]="DateTimeFormat",Ks[Ks.NumberSymbols=13]="NumberSymbols",Ks[Ks.NumberFormats=14]="NumberFormats",Ks[Ks.CurrencyCode=15]="CurrencyCode",Ks[Ks.CurrencySymbol=16]="CurrencySymbol",Ks[Ks.CurrencyName=17]="CurrencyName",Ks[Ks.Currencies=18]="Currencies",Ks[Ks.Directionality=19]="Directionality",Ks[Ks.PluralCase=20]="PluralCase",Ks[Ks.ExtraData=21]="ExtraData",Ks))();const Q4=["zero","one","two","few","many"],h0="en-US",R1={marker:"element"},p0={marker:"ICU"};let Pm=h0;function P1(l,c){const f=l.data[c];return null===f||"string"==typeof f?null:f.hasOwnProperty("currentCaseLViewIndex")?f:f.value}function $2(l,c){const f=c[l.currentCaseLViewIndex];return null===f?f:f<0?~f:f}function c5(l){return l>>>17}function d5(l){return(131070&l)>>>1}let Ju=0,Y2=0;function p5(l,c,f,y){const w=f[11];let te,R=null;for(let _e=0;_e>>1,f),null,null,Nn,di,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${Pe}"`)}else switch(Pe){case p0:const vt=c[++_e],Ot=c[++_e];null===f[Ot]&&jo(f[Ot]=ks(w,vt),f);break;case R1:const Xt=c[++_e],bn=c[++_e];null===f[bn]&&jo(f[bn]=yp(w,Xt,null),f)}}}function Yb(l,c,f,y,w){for(let R=0;R>>2;switch(3&Ot){case 1:const bn=f[++vt],Nn=f[++vt],di=l.data[Xt];"string"==typeof di?Uf(c[11],c[Xt],null,di,bn,Pe,Nn):mc(l,di,c,bn,Pe,c[11],Nn,!1);break;case 0:const zi=c[Xt];null!==zi&&c1(c[11],zi,Pe);break;case 2:Q2(l,P1(l,Xt),c,Pe);break;case 3:Qb(l,P1(l,Xt),y,c)}}}}else{const Pe=f[R+1];if(Pe>0&&3==(3&Pe)){const Ot=P1(l,Pe>>>2);c[Ot.currentCaseLViewIndex]<0&&Qb(l,Ot,y,c)}}R+=_e}}function Qb(l,c,f,y){let w=y[c.currentCaseLViewIndex];if(null!==w){let R=Ju;w<0&&(w=y[c.currentCaseLViewIndex]=~w,R=-1),Yb(l,y,c.update[w],f,R)}}function Q2(l,c,f,y){const w=function(l,c){let f=l.cases.indexOf(c);if(-1===f)switch(l.type){case 1:{const y=function(l,c){const f=Om(c)(parseInt(l,10)),y=Q4[f];return void 0!==y?y:"other"}(c,Pm);f=l.cases.indexOf(y),-1===f&&"other"!==y&&(f=l.cases.indexOf("other"));break}case 0:f=l.cases.indexOf("other")}return-1===f?null:f}(c,y);if($2(c,f)!==w&&(f5(l,c,f),f[c.currentCaseLViewIndex]=null===w?null:~w,null!==w)){const te=f[c.anchorIdx];te&&p5(l,c.create[w],f,te)}}function f5(l,c,f){let y=$2(c,f);if(null!==y){const w=c.remove[y];for(let R=0;R0){const _e=Pt(te,f);null!==_e&&f1(f[11],_e)}else f5(l,P1(l,~te),f)}}}const Gp=/\ufffd(\d+):?\d*\ufffd/gi,Uv=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function g0(l,c,f,y,w,R){const te=l.length,_e=te+1;l.push(null,null);const Pe=te+2,vt=c.split(Gp);let Ot=0;for(let Xt=0;Xt0){const y=l.data[f];Yb(l,c,Array.isArray(y)?y:y.update,dt()-Y2-1,Ju)}Ju=0,Y2=0}($(),st(),l+20)}function o3(l,c,f,y,w){if(l=ee(l),Array.isArray(l))for(let R=0;R>20;if(Yu(l)||!l.multi){const Nn=new ka(Pe,w,A1),di=t8(_e,c,w?Ot:Ot+bn,Xt);-1===di?(Wi(Vt(vt,te),R,_e),Xv(R,l,c.length),c.push(_e),vt.directiveStart++,vt.directiveEnd++,w&&(vt.providerIndexes+=1048576),f.push(Nn),te.push(Nn)):(f[di]=Nn,te[di]=Nn)}else{const Nn=t8(_e,c,Ot+bn,Xt),di=t8(_e,c,Ot,Ot+bn),zi=Nn>=0&&f[Nn],ns=di>=0&&f[di];if(w&&!ns||!w&&!zi){Wi(Vt(vt,te),R,_e);const As=function(l,c,f,y,w){const R=new ka(l,f,A1);return R.multi=[],R.index=c,R.componentProviders=0,e8(R,w,y&&!f),R}(w?B1:sC,f.length,w,y,Pe);!w&&ns&&(f[di].providerFactory=As),Xv(R,l,c.length,0),c.push(_e),vt.directiveStart++,vt.directiveEnd++,w&&(vt.providerIndexes+=1048576),f.push(As),te.push(As)}else Xv(R,l,Nn>-1?Nn:di,e8(f[w?di:Nn],Pe,!w&&y));!w&&y&&ns&&f[di].componentProviders++}}}function Xv(l,c,f,y){const w=Yu(c),R=function(l){return!!l.useClass}(c);if(w||R){const Pe=(R?ee(c.useClass):c).prototype.ngOnDestroy;if(Pe){const vt=l.destroyHooks||(l.destroyHooks=[]);if(!w&&c.multi){const Ot=vt.indexOf(f);-1===Ot?vt.push(f,[y,Pe]):vt[Ot+1].push(y,Pe)}else vt.push(f,Pe)}}}function e8(l,c,f){return f&&l.componentProviders++,l.multi.push(c)-1}function t8(l,c,f,y){for(let w=f;w{f.providersResolver=(y,w)=>function(l,c,f){const y=$();if(y.firstCreatePass){const w=Lr(l);o3(f,y.data,y.blueprint,w,!0),o3(c,y.data,y.blueprint,w,!1)}}(y,w?w(l):l,c)}}class E5{}class co{resolveComponentFactory(c){throw function(l){const c=Error(`No component factory found for ${O(l)}. Did you add it to @NgModule.entryComponents?`);return c.ngComponent=l,c}(c)}}let Iu=(()=>{class l{}return l.NULL=new co,l})();function qu(){return K2(Ae(),st())}function K2(l,c){return new N1(dn(l,c))}let N1=(()=>{class l{constructor(f){this.nativeElement=f}}return l.__NG_ELEMENT_ID__=qu,l})();function r8(l){return l instanceof N1?l.nativeElement:l}class Um{}let a3=(()=>{class l{}return l.__NG_ELEMENT_ID__=()=>function(){const l=st(),f=tt(Ae().index,l);return function(l){return l[11]}(Ss(f)?f:l)}(),l})(),Il=(()=>{class l{}return l.\u0275prov=ke({token:l,providedIn:"root",factory:()=>null}),l})();class q2{constructor(c){this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")}}const _0=new q2("13.1.1"),z1={};function l3(l,c,f,y,w=!1){for(;null!==f;){const R=c[f.index];if(null!==R&&y.push(Ye(R)),ds(R))for(let _e=10;_e-1&&(ma(c,y),Gr(f,y))}this._attachedToViewContainer=!1}Dh(this._lView[1],this._lView)}onDestroy(c){o2(this._lView[1],this._lView,null,c)}markForCheck(){Qf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){f2(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(l,c,f){Ge(!0);try{f2(l,c,f)}finally{Ge(!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(){var c;this._appRef=null,Oh(this._lView[1],c=this._lView,c[11],2,null,null)}attachToAppRef(c){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=c}}class A5 extends Du{constructor(c){super(c),this._view=c}detectChanges(){Vg(this._view)}checkNoChanges(){!function(l){Ge(!0);try{Vg(l)}finally{Ge(!1)}}(this._view)}get context(){return null}}class Up extends Iu{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const f=kn(c);return new a8(f,this.ngModule)}}function $p(l){const c=[];for(let f in l)l.hasOwnProperty(f)&&c.push({propName:l[f],templateName:f});return c}const wo=new po("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Rs});class a8 extends E5{constructor(c,f){super(),this.componentDef=c,this.ngModule=f,this.componentType=c.type,this.selector=c.selectors.map(Sf).join(","),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!f}get inputs(){return $p(this.componentDef.inputs)}get outputs(){return $p(this.componentDef.outputs)}create(c,f,y,w){const R=(w=w||this.ngModule)?function(l,c){return{get:(f,y,w)=>{const R=l.get(f,z1,w);return R!==z1||y===z1?R:c.get(f,y,w)}}}(c,w.injector):c,te=R.get(Um,Wo),_e=R.get(Il,null),Pe=te.createRenderer(null,this.componentDef),vt=this.componentDef.selectors[0][0]||"div",Ot=y?function(l,c,f){if(yr(l))return l.selectRootElement(c,f===xn.ShadowDom);let y="string"==typeof c?l.querySelector(c):c;return y.textContent="",y}(Pe,y,this.componentDef.encapsulation):yp(te.createRenderer(null,this.componentDef),vt,function(l){const c=l.toLowerCase();return"svg"===c?hr:"math"===c?"http://www.w3.org/1998/MathML/":null}(vt)),Xt=this.componentDef.onPush?576:528,bn=function(l,c){return{components:[],scheduler:l||Rs,clean:n4,playerHandler:c||null,flags:0}}(),Nn=Dp(0,null,null,1,0,null,null,null,null,null),di=Hf(null,Nn,bn,Xt,null,null,te,Pe,_e,R);let zi,ns;mi(di);try{const As=function(l,c,f,y,w,R){const te=f[1];f[20]=l;const Pe=Ip(te,20,2,"#host",null),vt=Pe.mergedAttrs=c.hostAttrs;null!==vt&&(Hh(Pe,vt,!0),null!==l&&(Xa(w,l,vt),null!==Pe.classes&&_(w,l,Pe.classes),null!==Pe.styles&&g1(w,l,Pe.styles)));const Ot=y.createRenderer(l,c),Xt=Hf(f,n2(c),null,c.onPush?64:16,f[20],Pe,y,Ot,R||null,null);return te.firstCreatePass&&(Wi(Vt(Pe,f),te,c.type),Gf(te,Pe),C1(Pe,f.length,1)),w1(f,Xt),f[20]=Xt}(Ot,this.componentDef,di,te,Pe);if(Ot)if(y)Xa(Pe,Ot,["ng-version",_0.full]);else{const{attrs:bi,classes:or}=function(l){const c=[],f=[];let y=1,w=2;for(;y0&&_(Pe,Ot,or.join(" "))}if(ns=li(Nn,20),void 0!==f){const bi=ns.projection=[];for(let or=0;orPe(te,c)),c.contentQueries){const Pe=Ae();c.contentQueries(1,te,Pe.directiveStart)}const _e=Ae();return!R.firstCreatePass||null===c.hostBindings&&null===c.hostAttrs||(br(_e.index),K6(f[1],_e,0,_e.directiveStart,_e.directiveEnd,c),d2(c,te)),te}(As,this.componentDef,di,bn,[em]),Vf(Nn,di,null)}finally{Ki()}return new aC(this.componentType,zi,K2(ns,di),di,ns)}}class aC extends class{}{constructor(c,f,y,w,R){super(),this.location=y,this._rootLView=w,this._tNode=R,this.instance=f,this.hostView=this.changeDetectorRef=new A5(w),this.componentType=c}get injector(){return new Ul(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(c){this.hostView.onDestroy(c)}}class Xu{}class F5{}const eg=new Map;class P5 extends Xu{constructor(c,f){super(),this._parent=f,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Up(this);const y=ps(c);this._bootstrapComponents=xl(y.bootstrap),this._r3Injector=Zf(c,f,[{provide:Xu,useValue:this},{provide:Iu,useValue:this.componentFactoryResolver}],O(c)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(c)}get(c,f=Hc.THROW_IF_NOT_FOUND,y=Je.Default){return c===Hc||c===Xu||c===Ep?this:this._r3Injector.get(c,f,y)}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(f=>f()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class c8 extends F5{constructor(c){super(),this.moduleType=c,null!==ps(c)&&function(l){const c=new Set;!function f(y){const w=ps(y,!0),R=w.id;null!==R&&(function(l,c,f){if(c&&c!==f)throw new Error(`Duplicate module registered for ${l} - ${O(c)} vs ${O(c.name)}`)}(R,eg.get(R),y),eg.set(R,y));const te=xl(w.imports);for(const _e of te)c.has(_e)||(c.add(_e),f(_e))}(l)}(c)}create(c){return new P5(this.moduleType,c)}}function L5(l,c,f){const y=Xe()+l,w=st();return w[y]===Dr?Cr(w,y,f?c.call(f):c()):Ls(w,y)}function B5(l,c,f,y){return H5(st(),Xe(),l,c,f,y)}function N5(l,c,f,y,w){return V5(st(),Xe(),l,c,f,y,w)}function d8(l,c,f,y,w,R){return u3(st(),Xe(),l,c,f,y,w,R)}function u8(l,c,f,y,w,R,te){return j5(st(),Xe(),l,c,f,y,w,R,te)}function d3(l,c,f,y,w,R,te,_e){const Pe=Xe()+l,vt=st(),Ot=mo(vt,Pe,f,y,w,R);return cr(vt,Pe+4,te)||Ot?Cr(vt,Pe+5,_e?c.call(_e,f,y,w,R,te):c(f,y,w,R,te)):Ls(vt,Pe+5)}function cC(l,c,f,y,w,R,te,_e,Pe){const vt=Xe()+l,Ot=st(),Xt=mo(Ot,vt,f,y,w,R);return Fo(Ot,vt+4,te,_e)||Xt?Cr(Ot,vt+6,Pe?c.call(Pe,f,y,w,R,te,_e):c(f,y,w,R,te,_e)):Ls(Ot,vt+6)}function dC(l,c,f,y,w,R,te,_e,Pe,vt){const Ot=Xe()+l,Xt=st();let bn=mo(Xt,Ot,f,y,w,R);return gl(Xt,Ot+4,te,_e,Pe)||bn?Cr(Xt,Ot+7,vt?c.call(vt,f,y,w,R,te,_e,Pe):c(f,y,w,R,te,_e,Pe)):Ls(Xt,Ot+7)}function z5(l,c,f,y,w,R,te,_e,Pe,vt,Ot){const Xt=Xe()+l,bn=st(),Nn=mo(bn,Xt,f,y,w,R);return mo(bn,Xt+4,te,_e,Pe,vt)||Nn?Cr(bn,Xt+8,Ot?c.call(Ot,f,y,w,R,te,_e,Pe,vt):c(f,y,w,R,te,_e,Pe,vt)):Ls(bn,Xt+8)}function Cc(l,c){const f=l[c];return f===Dr?void 0:f}function H5(l,c,f,y,w,R){const te=c+f;return cr(l,te,w)?Cr(l,te+1,R?y.call(R,w):y(w)):Cc(l,te+1)}function V5(l,c,f,y,w,R,te){const _e=c+f;return Fo(l,_e,w,R)?Cr(l,_e+2,te?y.call(te,w,R):y(w,R)):Cc(l,_e+2)}function u3(l,c,f,y,w,R,te,_e){const Pe=c+f;return gl(l,Pe,w,R,te)?Cr(l,Pe+3,_e?y.call(_e,w,R,te):y(w,R,te)):Cc(l,Pe+3)}function j5(l,c,f,y,w,R,te,_e,Pe){const vt=c+f;return mo(l,vt,w,R,te,_e)?Cr(l,vt+4,Pe?y.call(Pe,w,R,te,_e):y(w,R,te,_e)):Cc(l,vt+4)}function h8(l,c){const f=$();let y;const w=l+20;f.firstCreatePass?(y=function(l,c){if(c)for(let f=c.length-1;f>=0;f--){const y=c[f];if(l===y.name)return y}}(c,f.pipeRegistry),f.data[w]=y,y.onDestroy&&(f.destroyHooks||(f.destroyHooks=[])).push(w,y.onDestroy)):y=f.data[w];const R=y.factory||(y.factory=Yt(y.type)),te=$t(A1);try{const _e=Ga(!1),Pe=R();return Ga(_e),function(l,c,f,y){f>=l.data.length&&(l.data[f]=null,l.blueprint[f]=null),c[f]=y}(f,st(),w,Pe),Pe}finally{$t(te)}}function nr(l,c,f){const y=l+20,w=st(),R=Bi(w,y);return tg(w,y)?H5(w,Xe(),c,R.transform,f,R):R.transform(f)}function H1(l,c,f,y){const w=l+20,R=st(),te=Bi(R,w);return tg(R,w)?V5(R,Xe(),c,te.transform,f,y,te):te.transform(f,y)}function f8(l,c,f,y,w){const R=l+20,te=st(),_e=Bi(te,R);return tg(te,R)?u3(te,Xe(),c,_e.transform,f,y,w,_e):_e.transform(f,y,w)}function h3(l,c,f,y,w,R){const te=l+20,_e=st(),Pe=Bi(_e,te);return tg(_e,te)?j5(_e,Xe(),c,Pe.transform,f,y,w,R,Pe):Pe.transform(f,y,w,R)}function tg(l,c){return l[1].data[c].pure}function m8(l){return c=>{setTimeout(l,void 0,c)}}const Yh=class extends a.x{constructor(c=!1){super(),this.__isAsync=c}emit(c){super.next(c)}subscribe(c,f,y){var w,R,te;let _e=c,Pe=f||(()=>null),vt=y;if(c&&"object"==typeof c){const Xt=c;_e=null===(w=Xt.next)||void 0===w?void 0:w.bind(Xt),Pe=null===(R=Xt.error)||void 0===R?void 0:R.bind(Xt),vt=null===(te=Xt.complete)||void 0===te?void 0:te.bind(Xt)}this.__isAsync&&(Pe=m8(Pe),_e&&(_e=m8(_e)),vt&&(vt=m8(vt)));const Ot=super.subscribe({next:_e,error:Pe,complete:vt});return c instanceof C.w0&&c.add(Ot),Ot}};function ng(){return this._results[Ee()]()}class p3{constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const f=Ee(),y=p3.prototype;y[f]||(y[f]=ng)}get changes(){return this._changes||(this._changes=new Yh)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,f){return this._results.reduce(c,f)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,f){const y=this;y.dirty=!1;const w=$a(c);(this._changesDetected=!function(l,c,f){if(l.length!==c.length)return!1;for(let y=0;y{class l{}return l.__NG_ELEMENT_ID__=U5,l})();const pC=Wm,G5=class extends pC{constructor(c,f,y){super(),this._declarationLView=c,this._declarationTContainer=f,this.elementRef=y}createEmbeddedView(c){const f=this._declarationTContainer.tViews,y=Hf(this._declarationLView,f,c,16,null,f.declTNode,null,null,null,null);y[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(y[19]=R.createEmbeddedView(f)),Vf(f,y,c),new Du(y)}};function U5(){return f3(Ae(),st())}function f3(l,c){return 4&l.type?new G5(c,l,K2(l,c)):null}let Zm=(()=>{class l{}return l.__NG_ELEMENT_ID__=eh,l})();function eh(){return Y5(Ae(),st())}const v8=Zm,_8=class extends v8{constructor(c,f,y){super(),this._lContainer=c,this._hostTNode=f,this._hostLView=y}get element(){return K2(this._hostTNode,this._hostLView)}get injector(){return new Ul(this._hostTNode,this._hostLView)}get parentInjector(){const c=Kn(this._hostTNode,this._hostLView);if(Ol(c)){const f=la(c,this._hostLView),y=Cl(c);return new Ul(f[1].data[y+8],f)}return new Ul(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const f=$5(this._lContainer);return null!==f&&f[c]||null}get length(){return this._lContainer.length-10}createEmbeddedView(c,f,y){const w=c.createEmbeddedView(f||{});return this.insert(w,y),w}createComponent(c,f,y,w,R){const te=c&&!("function"==typeof c);let _e;if(te)_e=f;else{const Xt=f||{};_e=Xt.index,y=Xt.injector,w=Xt.projectableNodes,R=Xt.ngModuleRef}const Pe=te?c:new a8(kn(c)),vt=y||this.parentInjector;if(!R&&null==Pe.ngModule&&vt){const Xt=vt.get(Xu,null);Xt&&(R=Xt)}const Ot=Pe.create(vt,w,void 0,R);return this.insert(Ot.hostView,_e),Ot}insert(c,f){const y=c._lView,w=y[1];if(ds(y[3])){const Ot=this.indexOf(c);if(-1!==Ot)this.detach(Ot);else{const Xt=y[3],bn=new _8(Xt,Xt[6],Xt[3]);bn.detach(bn.indexOf(c))}}const R=this._adjustIndex(f),te=this._lContainer;!function(l,c,f,y){const w=10+y,R=f.length;y>0&&(f[w-1][4]=c),y0)y.push(te[_e/2]);else{const vt=R[_e+1],Ot=c[-Pe];for(let Xt=10;Xt({bindingPropertyName:l})),IC=ca("Output",l=>({bindingPropertyName:l})),DC=ca("HostBinding",l=>({hostPropertyName:l})),CS=ca("HostListener",(l,c)=>({eventName:l,args:c}));function y3(...l){}const b3=new po("Application Initializer");let ag=(()=>{class l{constructor(f){this.appInits=f,this.resolve=y3,this.reject=y3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,w)=>{this.resolve=y,this.reject=w})}runInitializers(){if(this.initialized)return;const f=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let w=0;w{R.subscribe({complete:_e,error:Pe})});f.push(te)}}Promise.all(f).then(()=>{y()}).catch(w=>{this.reject(w)}),0===f.length&&y(),this.initialized=!0}}return l.\u0275fac=function(f){return new(f||l)(Zo(b3,8))},l.\u0275prov=ke({token:l,factory:l.\u0275fac}),l})();const Zd=new po("AppId"),EC={provide:Zd,useFactory:function(){return`${B8()}${B8()}${B8()}`},deps:[]};function B8(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const hy=new po("Platform Initializer"),N8=new po("Platform ID"),py=new po("appBootstrapListener");let z8=(()=>{class l{log(f){console.log(f)}warn(f){console.warn(f)}}return l.\u0275fac=function(f){return new(f||l)},l.\u0275prov=ke({token:l,factory:l.\u0275fac}),l})();const C3=new po("LocaleId"),H8=new po("DefaultCurrencyCode");class gy{constructor(c,f){this.ngModuleFactory=c,this.componentFactories=f}}let lg=(()=>{class l{compileModuleSync(f){return new c8(f)}compileModuleAsync(f){return Promise.resolve(this.compileModuleSync(f))}compileModuleAndAllComponentsSync(f){const y=this.compileModuleSync(f),R=xl(ps(f).declarations).reduce((te,_e)=>{const Pe=kn(_e);return Pe&&te.push(new a8(Pe)),te},[]);return new gy(y,R)}compileModuleAndAllComponentsAsync(f){return Promise.resolve(this.compileModuleAndAllComponentsSync(f))}clearCache(){}clearCacheFor(f){}getModuleId(f){}}return l.\u0275fac=function(f){return new(f||l)},l.\u0275prov=ke({token:l,factory:l.\u0275fac}),l})();const qm=(()=>Promise.resolve(0))();function S3(l){"undefined"==typeof Zone?qm.then(()=>{l&&l.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",l)}class _d{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:f=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Yh(!1),this.onMicrotaskEmpty=new Yh(!1),this.onStable=new Yh(!1),this.onError=new Yh(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const w=this;w._nesting=0,w._outer=w._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(w._inner=w._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(w._inner=w._inner.fork(Zone.longStackTraceZoneSpec)),w.shouldCoalesceEventChangeDetection=!y&&f,w.shouldCoalesceRunChangeDetection=y,w.lastRequestAnimationFrameId=-1,w.nativeRequestAnimationFrame=function(){let l=_t.requestAnimationFrame,c=_t.cancelAnimationFrame;if("undefined"!=typeof Zone&&l&&c){const f=l[Zone.__symbol__("OriginalDelegate")];f&&(l=f);const y=c[Zone.__symbol__("OriginalDelegate")];y&&(c=y)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function(l){const c=()=>{!function(l){l.isCheckStableRunning||-1!==l.lastRequestAnimationFrameId||(l.lastRequestAnimationFrameId=l.nativeRequestAnimationFrame.call(_t,()=>{l.fakeTopEventTask||(l.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{l.lastRequestAnimationFrameId=-1,j8(l),l.isCheckStableRunning=!0,V8(l),l.isCheckStableRunning=!1},void 0,()=>{},()=>{})),l.fakeTopEventTask.invoke()}),j8(l))}(l)};l._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(f,y,w,R,te,_e)=>{try{return G8(l),f.invokeTask(w,R,te,_e)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===R.type||l.shouldCoalesceRunChangeDetection)&&c(),U8(l)}},onInvoke:(f,y,w,R,te,_e,Pe)=>{try{return G8(l),f.invoke(w,R,te,_e,Pe)}finally{l.shouldCoalesceRunChangeDetection&&c(),U8(l)}},onHasTask:(f,y,w,R)=>{f.hasTask(w,R),y===w&&("microTask"==R.change?(l._hasPendingMicrotasks=R.microTask,j8(l),V8(l)):"macroTask"==R.change&&(l.hasPendingMacrotasks=R.macroTask))},onHandleError:(f,y,w,R)=>(f.handleError(w,R),l.runOutsideAngular(()=>l.onError.emit(R)),!1)})}(w)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_d.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_d.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(c,f,y){return this._inner.run(c,f,y)}runTask(c,f,y,w){const R=this._inner,te=R.scheduleEventTask("NgZoneEvent: "+w,c,w3,y3,y3);try{return R.runTask(te,f,y)}finally{R.cancelTask(te)}}runGuarded(c,f,y){return this._inner.runGuarded(c,f,y)}runOutsideAngular(c){return this._outer.run(c)}}const w3={};function V8(l){if(0==l._nesting&&!l.hasPendingMicrotasks&&!l.isStable)try{l._nesting++,l.onMicrotaskEmpty.emit(null)}finally{if(l._nesting--,!l.hasPendingMicrotasks)try{l.runOutsideAngular(()=>l.onStable.emit(null))}finally{l.isStable=!0}}}function j8(l){l.hasPendingMicrotasks=!!(l._hasPendingMicrotasks||(l.shouldCoalesceEventChangeDetection||l.shouldCoalesceRunChangeDetection)&&-1!==l.lastRequestAnimationFrameId)}function G8(l){l._nesting++,l.isStable&&(l.isStable=!1,l.onUnstable.emit(null))}function U8(l){l._nesting--,V8(l)}class Tu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Yh,this.onMicrotaskEmpty=new Yh,this.onStable=new Yh,this.onError=new Yh}run(c,f,y){return c.apply(f,y)}runGuarded(c,f,y){return c.apply(f,y)}runOutsideAngular(c){return c()}runTask(c,f,y,w){return c.apply(f,y)}}let _y=(()=>{class l{constructor(f){this._ngZone=f,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),f.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:()=>{_d.assertNotInAngularZone(),S3(()=>{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())S3(()=>{for(;0!==this._callbacks.length;){let f=this._callbacks.pop();clearTimeout(f.timeoutId),f.doneCb(this._didWork)}this._didWork=!1});else{let f=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(f)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(f=>({source:f.source,creationLocation:f.creationLocation,data:f.data})):[]}addCallback(f,y,w){let R=-1;y&&y>0&&(R=setTimeout(()=>{this._callbacks=this._callbacks.filter(te=>te.timeoutId!==R),f(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:f,timeoutId:R,updateCb:w})}whenStable(f,y,w){if(w&&!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(f,y,w),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(f,y,w){return[]}}return l.\u0275fac=function(f){return new(f||l)(Zo(_d))},l.\u0275prov=ke({token:l,factory:l.\u0275fac}),l})(),$8=(()=>{class l{constructor(){this._applications=new Map,x3.addToWindow(this)}registerApplication(f,y){this._applications.set(f,y)}unregisterApplication(f){this._applications.delete(f)}unregisterAllApplications(){this._applications.clear()}getTestability(f){return this._applications.get(f)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(f,y=!0){return x3.findTestabilityInTree(this,f,y)}}return l.\u0275fac=function(f){return new(f||l)},l.\u0275prov=ke({token:l,factory:l.\u0275fac}),l})();class yy{addToWindow(c){}findTestabilityInTree(c,f,y){return null}}function by(l){x3=l}let Eu,x3=new yy;const Sy=new po("AllowMultipleToken");class RC{constructor(c,f){this.name=c,this.token=f}}function wy(l,c,f=[]){const y=`Platform: ${c}`,w=new po(y);return(R=[])=>{let te=cg();if(!te||te.injector.get(Sy,!1))if(l)l(f.concat(R).concat({provide:w,useValue:!0}));else{const _e=f.concat(R).concat({provide:w,useValue:!0},{provide:I1,useValue:"platform"});!function(l){if(Eu&&!Eu.destroyed&&!Eu.injector.get(Sy,!1))throw new le("400","");Eu=l.get(My);const c=l.get(hy,null);c&&c.forEach(f=>f())}(Hc.create({providers:_e,name:y}))}return function(l){const c=cg();if(!c)throw new le("401","");return c}()}}function cg(){return Eu&&!Eu.destroyed?Eu:null}let My=(()=>{class l{constructor(f){this._injector=f,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(f,y){const _e=function(l,c){let f;return f="noop"===l?new Tu:("zone.js"===l?void 0:l)||new _d({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==c?void 0:c.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==c?void 0:c.ngZoneRunCoalescing)}),f}(y?y.ngZone:void 0,{ngZoneEventCoalescing:y&&y.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:y&&y.ngZoneRunCoalescing||!1}),Pe=[{provide:_d,useValue:_e}];return _e.run(()=>{const vt=Hc.create({providers:Pe,parent:this.injector,name:f.moduleType.name}),Ot=f.create(vt),Xt=Ot.injector.get(pc,null);if(!Xt)throw new le("402","");return _e.runOutsideAngular(()=>{const bn=_e.onError.subscribe({next:Nn=>{Xt.handleError(Nn)}});Ot.onDestroy(()=>{M3(this._modules,Ot),bn.unsubscribe()})}),function(l,c,f){try{const y=f();return Lp(y)?y.catch(w=>{throw c.runOutsideAngular(()=>l.handleError(w)),w}):y}catch(y){throw c.runOutsideAngular(()=>l.handleError(y)),y}}(Xt,_e,()=>{const bn=Ot.injector.get(ag);return bn.runInitializers(),bn.donePromise.then(()=>(function(l){Te(l,"Expected localeId to be defined"),"string"==typeof l&&(Pm=l.toLowerCase().replace(/_/g,"-"))}(Ot.injector.get(C3,h0)||h0),this._moduleDoBootstrap(Ot),Ot))})})}bootstrapModule(f,y=[]){const w=Y8({},y);return function(l,c,f){const y=new c8(f);return Promise.resolve(y)}(0,0,f).then(R=>this.bootstrapModuleFactory(R,w))}_moduleDoBootstrap(f){const y=f.injector.get(Xm);if(f._bootstrapComponents.length>0)f._bootstrapComponents.forEach(w=>y.bootstrap(w));else{if(!f.instance.ngDoBootstrap)throw new le("403","");f.instance.ngDoBootstrap(y)}this._modules.push(f)}onDestroy(f){this._destroyListeners.push(f)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new le("404","");this._modules.slice().forEach(f=>f.destroy()),this._destroyListeners.forEach(f=>f()),this._destroyed=!0}get destroyed(){return this._destroyed}}return l.\u0275fac=function(f){return new(f||l)(Zo(Hc))},l.\u0275prov=ke({token:l,factory:l.\u0275fac}),l})();function Y8(l,c){return Array.isArray(c)?c.reduce(Y8,l):Object.assign(Object.assign({},l),c)}let Xm=(()=>{class l{constructor(f,y,w,R,te){this._zone=f,this._injector=y,this._exceptionHandler=w,this._componentFactoryResolver=R,this._initStatus=te,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 _e=new N.y(vt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{vt.next(this._stable),vt.complete()})}),Pe=new N.y(vt=>{let Ot;this._zone.runOutsideAngular(()=>{Ot=this._zone.onStable.subscribe(()=>{_d.assertNotInAngularZone(),S3(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,vt.next(!0))})})});const Xt=this._zone.onUnstable.subscribe(()=>{_d.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{vt.next(!1)}))});return()=>{Ot.unsubscribe(),Xt.unsubscribe()}});this.isStable=(0,ze.T)(_e,Pe.pipe((0,p.B)()))}bootstrap(f,y){if(!this._initStatus.done)throw new le("405","");let w;w=f instanceof E5?f:this._componentFactoryResolver.resolveComponentFactory(f),this.componentTypes.push(w.componentType);const R=function(l){return l.isBoundToModule}(w)?void 0:this._injector.get(Xu),_e=w.create(Hc.NULL,[],y||w.selector,R),Pe=_e.location.nativeElement,vt=_e.injector.get(_y,null),Ot=vt&&_e.injector.get($8);return vt&&Ot&&Ot.registerApplication(Pe,vt),_e.onDestroy(()=>{this.detachView(_e.hostView),M3(this.components,_e),Ot&&Ot.unregisterApplication(Pe)}),this._loadComponent(_e),_e}tick(){if(this._runningTick)throw new le("101","");try{this._runningTick=!0;for(let f of this._views)f.detectChanges()}catch(f){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(f))}finally{this._runningTick=!1}}attachView(f){const y=f;this._views.push(y),y.attachToAppRef(this)}detachView(f){const y=f;M3(this._views,y),y.detachFromAppRef()}_loadComponent(f){this.attachView(f.hostView),this.tick(),this.components.push(f),this._injector.get(py,[]).concat(this._bootstrapListeners).forEach(w=>w(f))}ngOnDestroy(){this._views.slice().forEach(f=>f.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return l.\u0275fac=function(f){return new(f||l)(Zo(_d),Zo(Hc),Zo(pc),Zo(Iu),Zo(ag))},l.\u0275prov=ke({token:l,factory:l.\u0275fac}),l})();function M3(l,c){const f=l.indexOf(c);f>-1&&l.splice(f,1)}let Dy=!0,Ty=!1;function IS(){return Ty=!0,Dy}function NC(){if(Ty)throw new Error("Cannot enable prod mode after platform setup.");Dy=!1}let zC=(()=>{class l{}return l.__NG_ELEMENT_ID__=e6,l})();function e6(l){return function(l,c,f){if(Fr(l)&&!f){const y=tt(l.index,c);return new Du(y,y)}return 47&l.type?new Du(c[16],c):null}(Ae(),st(),16==(16&l))}class ky{constructor(){}supports(c){return Rn(c)}create(c){return new $C(c)}}const i6=(l,c)=>c;class $C{constructor(c){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||i6}forEachItem(c){let f;for(f=this._itHead;null!==f;f=f._next)c(f)}forEachOperation(c){let f=this._itHead,y=this._removalsHead,w=0,R=null;for(;f||y;){const te=!y||f&&f.currentIndex{te=this._trackByFn(w,_e),null!==f&&Object.is(f.trackById,te)?(y&&(f=this._verifyReinsertion(f,_e,te,w)),Object.is(f.item,_e)||this._addIdentityChange(f,_e)):(f=this._mismatch(f,_e,te,w),y=!0),f=f._next,w++}),this.length=w;return this._truncate(f),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,f,y,w){let R;return null===c?R=this._itTail:(R=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(c.item,f)||this._addIdentityChange(c,f),this._reinsertAfter(c,R,w)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(y,w))?(Object.is(c.item,f)||this._addIdentityChange(c,f),this._moveAfter(c,R,w)):c=this._addAfter(new YC(f,y),R,w),c}_verifyReinsertion(c,f,y,w){let R=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==R?c=this._reinsertAfter(R,c._prev,w):c.currentIndex!=w&&(c.currentIndex=w,this._addToMoves(c,w)),c}_truncate(c){for(;null!==c;){const f=c._next;this._addToRemovals(this._unlink(c)),c=f}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(c,f,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const w=c._prevRemoved,R=c._nextRemoved;return null===w?this._removalsHead=R:w._nextRemoved=R,null===R?this._removalsTail=w:R._prevRemoved=w,this._insertAfter(c,f,y),this._addToMoves(c,y),c}_moveAfter(c,f,y){return this._unlink(c),this._insertAfter(c,f,y),this._addToMoves(c,y),c}_addAfter(c,f,y){return this._insertAfter(c,f,y),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,f,y){const w=null===f?this._itHead:f._next;return c._next=w,c._prev=f,null===w?this._itTail=c:w._prev=c,null===f?this._itHead=c:f._next=c,null===this._linkedRecords&&(this._linkedRecords=new Ay),this._linkedRecords.put(c),c.currentIndex=y,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const f=c._prev,y=c._next;return null===f?this._itHead=y:f._next=y,null===y?this._itTail=f:y._prev=f,c}_addToMoves(c,f){return c.previousIndex===f||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ay),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,f){return c.item=f,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class YC{constructor(c,f){this.item=c,this.trackById=f,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 QC{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,f){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===f||f<=y.currentIndex)&&Object.is(y.trackById,c))return y;return null}remove(c){const f=c._prevDup,y=c._nextDup;return null===f?this._head=y:f._nextDup=y,null===y?this._tail=f:y._prevDup=f,null===this._head}}class Ay{constructor(){this.map=new Map}put(c){const f=c.trackById;let y=this.map.get(f);y||(y=new QC,this.map.set(f,y)),y.add(c)}get(c,f){const w=this.map.get(c);return w?w.get(c,f):null}remove(c){const f=c.trackById;return this.map.get(f).remove(c)&&this.map.delete(f),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function J8(l,c,f){const y=l.previousIndex;if(null===y)return y;let w=0;return f&&y{if(f&&f.key===w)this._maybeAddToChanges(f,y),this._appendAfter=f,f=f._next;else{const R=this._getOrCreateRecordForKey(w,y);f=this._insertBeforeOrAppend(f,R)}}),f){f._prev&&(f._prev._next=null),this._removalsHead=f;for(let y=f;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,f){if(c){const y=c._prev;return f._next=c,f._prev=y,c._prev=f,y&&(y._next=f),c===this._mapHead&&(this._mapHead=f),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=f,f._prev=this._appendAfter):this._mapHead=f,this._appendAfter=f,null}_getOrCreateRecordForKey(c,f){if(this._records.has(c)){const w=this._records.get(c);this._maybeAddToChanges(w,f);const R=w._prev,te=w._next;return R&&(R._next=te),te&&(te._prev=R),w._next=null,w._prev=null,w}const y=new q8(c);return this._records.set(c,y),y.currentValue=f,this._addToAdditions(y),y}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,f){Object.is(f,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=f,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,f){c instanceof Map?c.forEach(f):Object.keys(c).forEach(y=>f(c[y],y))}}class q8{constructor(c){this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function X8(){return new pg([new ky])}let pg=(()=>{class l{constructor(f){this.factories=f}static create(f,y){if(null!=y){const w=y.factories.slice();f=f.concat(w)}return new l(f)}static extend(f){return{provide:l,useFactory:y=>l.create(f,y||X8()),deps:[[l,new ei,new Lt]]}}find(f){const y=this.factories.find(w=>w.supports(f));if(null!=y)return y;throw new Error(`Cannot find a differ supporting object '${f}' of type '${function(l){return l.name||typeof l}(f)}'`)}}return l.\u0275prov=ke({token:l,providedIn:"root",factory:X8}),l})();function e_(){return new s6([new K8])}let s6=(()=>{class l{constructor(f){this.factories=f}static create(f,y){if(y){const w=y.factories.slice();f=f.concat(w)}return new l(f)}static extend(f){return{provide:l,useFactory:y=>l.create(f,y||e_()),deps:[[l,new ei,new Lt]]}}find(f){const y=this.factories.find(w=>w.supports(f));if(y)return y;throw new Error(`Cannot find a differ supporting object '${f}'`)}}return l.\u0275prov=ke({token:l,providedIn:"root",factory:e_}),l})();const WC=[new K8],Sc=new pg([new ky]),Ts=new s6(WC),Qh=wy(null,"core",[{provide:N8,useValue:"unknown"},{provide:My,deps:[Hc]},{provide:$8,deps:[]},{provide:z8,deps:[]}]),KC=[{provide:Xm,useClass:Xm,deps:[_d,Hc,pc,Iu,ag]},{provide:wo,deps:[_d],useFactory:function(l){let c=[];return l.onStable.subscribe(()=>{for(;c.length;)c.pop()()}),function(f){c.push(f)}}},{provide:ag,useClass:ag,deps:[[new Lt,b3]]},{provide:lg,useClass:lg,deps:[]},EC,{provide:pg,useFactory:function(){return Sc},deps:[]},{provide:s6,useFactory:function(){return Ts},deps:[]},{provide:C3,useFactory:function(l){return l||"undefined"!=typeof $localize&&$localize.locale||h0},deps:[[new lt(C3),new Lt,new ei]]},{provide:H8,useValue:"USD"}];let qC=(()=>{class l{constructor(f){}}return l.\u0275fac=function(f){return new(f||l)(Zo(Xm))},l.\u0275mod=Ti({type:l}),l.\u0275inj=ot({providers:KC}),l})()},2382:(St,oe,S)=>{"use strict";S.d(oe,{Wl:()=>re,Zs:()=>ir,Fj:()=>we,on:()=>Hr,NI:()=>ur,oH:()=>Xs,cw:()=>pr,u5:()=>Pt,nD:()=>So,Cf:()=>Ce,JU:()=>le,a5:()=>gt,JJ:()=>Re,JL:()=>zt,F:()=>Or,On:()=>qi,YN:()=>de,_:()=>Tr,UX:()=>dn,Q7:()=>Es,EJ:()=>ln,kI:()=>je,_Y:()=>Qi,Kr:()=>Yt});var a=S(5e3),C=S(9808),N=S(8306),ze=S(4742),p=S(8421),K=S(3269),r=S(5403),O=S(3268),P=S(1810),E=S(8996),ee=S(4004);let x=(()=>{class tt{constructor(De,kt){this._renderer=De,this._elementRef=kt,this.onChange=Ln=>{},this.onTouched=()=>{}}setProperty(De,kt){this._renderer.setProperty(this._elementRef.nativeElement,De,kt)}registerOnTouched(De){this.onTouched=De}registerOnChange(De){this.onChange=De}setDisabledState(De){this.setProperty("disabled",De)}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(a.Qsj),a.Y36(a.SBq))},tt.\u0275dir=a.lG2({type:tt}),tt})(),U=(()=>{class tt extends x{}return tt.\u0275fac=function(){let $e;return function(kt){return($e||($e=a.n5z(tt)))(kt||tt)}}(),tt.\u0275dir=a.lG2({type:tt,features:[a.qOj]}),tt})();const le=new a.OlP("NgValueAccessor"),xe={provide:le,useExisting:(0,a.Gpc)(()=>re),multi:!0};let re=(()=>{class tt extends U{writeValue(De){this.setProperty("checked",De)}}return tt.\u0275fac=function(){let $e;return function(kt){return($e||($e=a.n5z(tt)))(kt||tt)}}(),tt.\u0275dir=a.lG2({type:tt,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(De,kt){1&De&&a.NdJ("change",function(Si){return kt.onChange(Si.target.checked)})("blur",function(){return kt.onTouched()})},features:[a._Bn([xe]),a.qOj]}),tt})();const ce={provide:le,useExisting:(0,a.Gpc)(()=>we),multi:!0},J=new a.OlP("CompositionEventMode");let we=(()=>{class tt extends x{constructor(De,kt,Ln){super(De,kt),this._compositionMode=Ln,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const tt=(0,C.q)()?(0,C.q)().getUserAgent():"";return/android (\d+)/.test(tt.toLowerCase())}())}writeValue(De){this.setProperty("value",null==De?"":De)}_handleInput(De){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(De)}_compositionStart(){this._composing=!0}_compositionEnd(De){this._composing=!1,this._compositionMode&&this.onChange(De)}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(J,8))},tt.\u0275dir=a.lG2({type:tt,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(De,kt){1&De&&a.NdJ("input",function(Si){return kt._handleInput(Si.target.value)})("blur",function(){return kt.onTouched()})("compositionstart",function(){return kt._compositionStart()})("compositionend",function(Si){return kt._compositionEnd(Si.target.value)})},features:[a._Bn([ce]),a.qOj]}),tt})();function ge(tt){return null==tt||0===tt.length}function fe(tt){return null!=tt&&"number"==typeof tt.length}const Ce=new a.OlP("NgValidators"),e=new a.OlP("NgAsyncValidators"),z=/^(?=.{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 je{static min($e){return tt=$e,$e=>{if(ge($e.value)||ge(tt))return null;const De=parseFloat($e.value);return!isNaN(De)&&De{if(ge($e.value)||ge(tt))return null;const De=parseFloat($e.value);return!isNaN(De)&&De>tt?{max:{max:tt,actual:$e.value}}:null};var tt}static required($e){return ct($e)}static requiredTrue($e){return g($e)}static email($e){return qe($e)}static minLength($e){return tt=$e,$e=>ge($e.value)||!fe($e.value)?null:$e.value.length{if(ge(kt.value))return null;const Ln=kt.value;return $e.test(Ln)?null:{pattern:{requiredPattern:De,actualValue:Ln}}}}($e)}static nullValidator($e){return null}static compose($e){return G($e)}static composeAsync($e){return We($e)}}function ct(tt){return ge(tt.value)?{required:!0}:null}function g(tt){return!0===tt.value?null:{required:!0}}function qe(tt){return ge(tt.value)||z.test(tt.value)?null:{email:!0}}function He(tt){return $e=>fe($e.value)&&$e.value.length>tt?{maxlength:{requiredLength:tt,actualLength:$e.value.length}}:null}function Le(tt){return null}function Te(tt){return null!=tt}function Ze(tt){const $e=(0,a.QGY)(tt)?(0,E.D)(tt):tt;return(0,a.CqO)($e),$e}function he(tt){let $e={};return tt.forEach(De=>{$e=null!=De?Object.assign(Object.assign({},$e),De):$e}),0===Object.keys($e).length?null:$e}function Ne(tt,$e){return $e.map(De=>De(tt))}function ke(tt){return tt.map($e=>function(tt){return!tt.validate}($e)?$e:De=>$e.validate(De))}function G(tt){if(!tt)return null;const $e=tt.filter(Te);return 0==$e.length?null:function(De){return he(Ne(De,$e))}}function ot(tt){return null!=tt?G(ke(tt)):null}function We(tt){if(!tt)return null;const $e=tt.filter(Te);return 0==$e.length?null:function(De){return function(...tt){const $e=(0,K.jO)(tt),{args:De,keys:kt}=(0,ze.D)(tt),Ln=new N.y(Si=>{const{length:gs}=De;if(!gs)return void Si.complete();const Ni=new Array(gs);let wr=gs,Qs=gs;for(let Vr=0;Vr{us||(us=!0,Qs--),Ni[Vr]=Do},()=>wr--,void 0,()=>{(!wr||!us)&&(Qs||Si.next(kt?(0,P.n)(kt,Ni):Ni),Si.complete())}))}});return $e?Ln.pipe((0,O.Z)($e)):Ln}(Ne(De,$e).map(Ze)).pipe((0,ee.U)(he))}}function ut(tt){return null!=tt?We(ke(tt)):null}function Mt(tt,$e){return null===tt?[$e]:Array.isArray(tt)?[...tt,$e]:[tt,$e]}function At(tt){return tt._rawValidators}function Jt(tt){return tt._rawAsyncValidators}function Wt(tt){return tt?Array.isArray(tt)?tt:[tt]:[]}function Sn(tt,$e){return Array.isArray(tt)?tt.includes($e):tt===$e}function ye(tt,$e){const De=Wt($e);return Wt(tt).forEach(Ln=>{Sn(De,Ln)||De.push(Ln)}),De}function be(tt,$e){return Wt($e).filter(De=>!Sn(tt,De))}class Je{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($e){this._rawValidators=$e||[],this._composedValidatorFn=ot(this._rawValidators)}_setAsyncValidators($e){this._rawAsyncValidators=$e||[],this._composedAsyncValidatorFn=ut(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy($e){this._onDestroyCallbacks.push($e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach($e=>$e()),this._onDestroyCallbacks=[]}reset($e){this.control&&this.control.reset($e)}hasError($e,De){return!!this.control&&this.control.hasError($e,De)}getError($e,De){return this.control?this.control.getError($e,De):null}}class gt extends Je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Nt extends Je{get formDirective(){return null}get path(){return null}}class $t{constructor($e){this._cd=$e}is($e){var De,kt,Ln;return"submitted"===$e?!!(null===(De=this._cd)||void 0===De?void 0:De.submitted):!!(null===(Ln=null===(kt=this._cd)||void 0===kt?void 0:kt.control)||void 0===Ln?void 0:Ln[$e])}}let Re=(()=>{class tt extends $t{constructor(De){super(De)}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(gt,2))},tt.\u0275dir=a.lG2({type:tt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(De,kt){2&De&&a.ekj("ng-untouched",kt.is("untouched"))("ng-touched",kt.is("touched"))("ng-pristine",kt.is("pristine"))("ng-dirty",kt.is("dirty"))("ng-valid",kt.is("valid"))("ng-invalid",kt.is("invalid"))("ng-pending",kt.is("pending"))},features:[a.qOj]}),tt})(),zt=(()=>{class tt extends $t{constructor(De){super(De)}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(Nt,10))},tt.\u0275dir=a.lG2({type:tt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(De,kt){2&De&&a.ekj("ng-untouched",kt.is("untouched"))("ng-touched",kt.is("touched"))("ng-pristine",kt.is("pristine"))("ng-dirty",kt.is("dirty"))("ng-valid",kt.is("valid"))("ng-invalid",kt.is("invalid"))("ng-pending",kt.is("pending"))("ng-submitted",kt.is("submitted"))},features:[a.qOj]}),tt})();function V(tt,$e){bt(tt,$e),$e.valueAccessor.writeValue(tt.value),function(tt,$e){$e.valueAccessor.registerOnChange(De=>{tt._pendingValue=De,tt._pendingChange=!0,tt._pendingDirty=!0,"change"===tt.updateOn&&An(tt,$e)})}(tt,$e),function(tt,$e){const De=(kt,Ln)=>{$e.valueAccessor.writeValue(kt),Ln&&$e.viewToModelUpdate(kt)};tt.registerOnChange(De),$e._registerOnDestroy(()=>{tt._unregisterOnChange(De)})}(tt,$e),function(tt,$e){$e.valueAccessor.registerOnTouched(()=>{tt._pendingTouched=!0,"blur"===tt.updateOn&&tt._pendingChange&&An(tt,$e),"submit"!==tt.updateOn&&tt.markAsTouched()})}(tt,$e),function(tt,$e){if($e.valueAccessor.setDisabledState){const De=kt=>{$e.valueAccessor.setDisabledState(kt)};tt.registerOnDisabledChange(De),$e._registerOnDestroy(()=>{tt._unregisterOnDisabledChange(De)})}}(tt,$e)}function Q(tt,$e,De=!0){const kt=()=>{};$e.valueAccessor&&($e.valueAccessor.registerOnChange(kt),$e.valueAccessor.registerOnTouched(kt)),function(tt,$e){let De=!1;if(null!==tt){if(null!==$e.validator){const Ln=At(tt);if(Array.isArray(Ln)&&Ln.length>0){const Si=Ln.filter(gs=>gs!==$e.validator);Si.length!==Ln.length&&(De=!0,tt.setValidators(Si))}}if(null!==$e.asyncValidator){const Ln=Jt(tt);if(Array.isArray(Ln)&&Ln.length>0){const Si=Ln.filter(gs=>gs!==$e.asyncValidator);Si.length!==Ln.length&&(De=!0,tt.setAsyncValidators(Si))}}}const kt=()=>{};ie($e._rawValidators,kt),ie($e._rawAsyncValidators,kt)}(tt,$e),tt&&($e._invokeOnDestroyCallbacks(),tt._registerOnCollectionChange(()=>{}))}function ie(tt,$e){tt.forEach(De=>{De.registerOnValidatorChange&&De.registerOnValidatorChange($e)})}function bt(tt,$e){const De=At(tt);null!==$e.validator?tt.setValidators(Mt(De,$e.validator)):"function"==typeof De&&tt.setValidators([De]);const kt=Jt(tt);null!==$e.asyncValidator?tt.setAsyncValidators(Mt(kt,$e.asyncValidator)):"function"==typeof kt&&tt.setAsyncValidators([kt]);const Ln=()=>tt.updateValueAndValidity();ie($e._rawValidators,Ln),ie($e._rawAsyncValidators,Ln)}function An(tt,$e){tt._pendingDirty&&tt.markAsDirty(),tt.setValue(tt._pendingValue,{emitModelToViewChange:!1}),$e.viewToModelUpdate(tt._pendingValue),tt._pendingChange=!1}function jt(tt,$e){if(!tt.hasOwnProperty("model"))return!1;const De=tt.model;return!!De.isFirstChange()||!Object.is($e,De.currentValue)}function xi(tt,$e){if(!$e)return null;let De,kt,Ln;return Array.isArray($e),$e.forEach(Si=>{Si.constructor===we?De=Si:function(tt){return Object.getPrototypeOf(tt.constructor)===U}(Si)?kt=Si:Ln=Si}),Ln||kt||De||null}function Ei(tt,$e){const De=tt.indexOf($e);De>-1&&tt.splice(De,1)}const fs="VALID",dr="INVALID",gr="PENDING",Nr="DISABLED";function js(tt){return(Hi(tt)?tt.validators:tt)||null}function vs(tt){return Array.isArray(tt)?ot(tt):tt||null}function mr(tt,$e){return(Hi($e)?$e.asyncValidators:tt)||null}function vi(tt){return Array.isArray(tt)?ut(tt):tt||null}function Hi(tt){return null!=tt&&!Array.isArray(tt)&&"object"==typeof tt}class Ms{constructor($e,De){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=$e,this._rawAsyncValidators=De,this._composedValidatorFn=vs(this._rawValidators),this._composedAsyncValidatorFn=vi(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator($e){this._rawValidators=this._composedValidatorFn=$e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator($e){this._rawAsyncValidators=this._composedAsyncValidatorFn=$e}get parent(){return this._parent}get valid(){return this.status===fs}get invalid(){return this.status===dr}get pending(){return this.status==gr}get disabled(){return this.status===Nr}get enabled(){return this.status!==Nr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators($e){this._rawValidators=$e,this._composedValidatorFn=vs($e)}setAsyncValidators($e){this._rawAsyncValidators=$e,this._composedAsyncValidatorFn=vi($e)}addValidators($e){this.setValidators(ye($e,this._rawValidators))}addAsyncValidators($e){this.setAsyncValidators(ye($e,this._rawAsyncValidators))}removeValidators($e){this.setValidators(be($e,this._rawValidators))}removeAsyncValidators($e){this.setAsyncValidators(be($e,this._rawAsyncValidators))}hasValidator($e){return Sn(this._rawValidators,$e)}hasAsyncValidator($e){return Sn(this._rawAsyncValidators,$e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched($e={}){this.touched=!0,this._parent&&!$e.onlySelf&&this._parent.markAsTouched($e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild($e=>$e.markAllAsTouched())}markAsUntouched($e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(De=>{De.markAsUntouched({onlySelf:!0})}),this._parent&&!$e.onlySelf&&this._parent._updateTouched($e)}markAsDirty($e={}){this.pristine=!1,this._parent&&!$e.onlySelf&&this._parent.markAsDirty($e)}markAsPristine($e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(De=>{De.markAsPristine({onlySelf:!0})}),this._parent&&!$e.onlySelf&&this._parent._updatePristine($e)}markAsPending($e={}){this.status=gr,!1!==$e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!$e.onlySelf&&this._parent.markAsPending($e)}disable($e={}){const De=this._parentMarkedDirty($e.onlySelf);this.status=Nr,this.errors=null,this._forEachChild(kt=>{kt.disable(Object.assign(Object.assign({},$e),{onlySelf:!0}))}),this._updateValue(),!1!==$e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},$e),{skipPristineCheck:De})),this._onDisabledChange.forEach(kt=>kt(!0))}enable($e={}){const De=this._parentMarkedDirty($e.onlySelf);this.status=fs,this._forEachChild(kt=>{kt.enable(Object.assign(Object.assign({},$e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:$e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},$e),{skipPristineCheck:De})),this._onDisabledChange.forEach(kt=>kt(!1))}_updateAncestors($e){this._parent&&!$e.onlySelf&&(this._parent.updateValueAndValidity($e),$e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent($e){this._parent=$e}updateValueAndValidity($e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===fs||this.status===gr)&&this._runAsyncValidator($e.emitEvent)),!1!==$e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!$e.onlySelf&&this._parent.updateValueAndValidity($e)}_updateTreeValidity($e={emitEvent:!0}){this._forEachChild(De=>De._updateTreeValidity($e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:$e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nr:fs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator($e){if(this.asyncValidator){this.status=gr,this._hasOwnPendingAsyncValidator=!0;const De=Ze(this.asyncValidator(this));this._asyncValidationSubscription=De.subscribe(kt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(kt,{emitEvent:$e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors($e,De={}){this.errors=$e,this._updateControlsErrors(!1!==De.emitEvent)}get($e){return function(tt,$e,De){if(null==$e||(Array.isArray($e)||($e=$e.split(".")),Array.isArray($e)&&0===$e.length))return null;let kt=tt;return $e.forEach(Ln=>{kt=kt instanceof pr?kt.controls.hasOwnProperty(Ln)?kt.controls[Ln]:null:kt instanceof Ps&&kt.at(Ln)||null}),kt}(this,$e)}getError($e,De){const kt=De?this.get(De):this;return kt&&kt.errors?kt.errors[$e]:null}hasError($e,De){return!!this.getError($e,De)}get root(){let $e=this;for(;$e._parent;)$e=$e._parent;return $e}_updateControlsErrors($e){this.status=this._calculateStatus(),$e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors($e)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?Nr:this.errors?dr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gr)?gr:this._anyControlsHaveStatus(dr)?dr:fs}_anyControlsHaveStatus($e){return this._anyControls(De=>De.status===$e)}_anyControlsDirty(){return this._anyControls($e=>$e.dirty)}_anyControlsTouched(){return this._anyControls($e=>$e.touched)}_updatePristine($e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!$e.onlySelf&&this._parent._updatePristine($e)}_updateTouched($e={}){this.touched=this._anyControlsTouched(),this._parent&&!$e.onlySelf&&this._parent._updateTouched($e)}_isBoxedValue($e){return"object"==typeof $e&&null!==$e&&2===Object.keys($e).length&&"value"in $e&&"disabled"in $e}_registerOnCollectionChange($e){this._onCollectionChange=$e}_setUpdateStrategy($e){Hi($e)&&null!=$e.updateOn&&(this._updateOn=$e.updateOn)}_parentMarkedDirty($e){return!$e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ur extends Ms{constructor($e=null,De,kt){super(js(De),mr(kt,De)),this._onChange=[],this._pendingChange=!1,this._applyFormState($e),this._setUpdateStrategy(De),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue($e,De={}){this.value=this._pendingValue=$e,this._onChange.length&&!1!==De.emitModelToViewChange&&this._onChange.forEach(kt=>kt(this.value,!1!==De.emitViewToModelChange)),this.updateValueAndValidity(De)}patchValue($e,De={}){this.setValue($e,De)}reset($e=null,De={}){this._applyFormState($e),this.markAsPristine(De),this.markAsUntouched(De),this.setValue(this.value,De),this._pendingChange=!1}_updateValue(){}_anyControls($e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange($e){this._onChange.push($e)}_unregisterOnChange($e){Ei(this._onChange,$e)}registerOnDisabledChange($e){this._onDisabledChange.push($e)}_unregisterOnDisabledChange($e){Ei(this._onDisabledChange,$e)}_forEachChild($e){}_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($e){this._isBoxedValue($e)?(this.value=this._pendingValue=$e.value,$e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=$e}}class pr extends Ms{constructor($e,De,kt){super(js(De),mr(kt,De)),this.controls=$e,this._initObservables(),this._setUpdateStrategy(De),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl($e,De){return this.controls[$e]?this.controls[$e]:(this.controls[$e]=De,De.setParent(this),De._registerOnCollectionChange(this._onCollectionChange),De)}addControl($e,De,kt={}){this.registerControl($e,De),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}removeControl($e,De={}){this.controls[$e]&&this.controls[$e]._registerOnCollectionChange(()=>{}),delete this.controls[$e],this.updateValueAndValidity({emitEvent:De.emitEvent}),this._onCollectionChange()}setControl($e,De,kt={}){this.controls[$e]&&this.controls[$e]._registerOnCollectionChange(()=>{}),delete this.controls[$e],De&&this.registerControl($e,De),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}contains($e){return this.controls.hasOwnProperty($e)&&this.controls[$e].enabled}setValue($e,De={}){this._checkAllValuesPresent($e),Object.keys($e).forEach(kt=>{this._throwIfControlMissing(kt),this.controls[kt].setValue($e[kt],{onlySelf:!0,emitEvent:De.emitEvent})}),this.updateValueAndValidity(De)}patchValue($e,De={}){null!=$e&&(Object.keys($e).forEach(kt=>{this.controls[kt]&&this.controls[kt].patchValue($e[kt],{onlySelf:!0,emitEvent:De.emitEvent})}),this.updateValueAndValidity(De))}reset($e={},De={}){this._forEachChild((kt,Ln)=>{kt.reset($e[Ln],{onlySelf:!0,emitEvent:De.emitEvent})}),this._updatePristine(De),this._updateTouched(De),this.updateValueAndValidity(De)}getRawValue(){return this._reduceChildren({},($e,De,kt)=>($e[kt]=De instanceof ur?De.value:De.getRawValue(),$e))}_syncPendingControls(){let $e=this._reduceChildren(!1,(De,kt)=>!!kt._syncPendingControls()||De);return $e&&this.updateValueAndValidity({onlySelf:!0}),$e}_throwIfControlMissing($e){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[$e])throw new Error(`Cannot find form control with name: ${$e}.`)}_forEachChild($e){Object.keys(this.controls).forEach(De=>{const kt=this.controls[De];kt&&$e(kt,De)})}_setUpControls(){this._forEachChild($e=>{$e.setParent(this),$e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls($e){for(const De of Object.keys(this.controls)){const kt=this.controls[De];if(this.contains(De)&&$e(kt))return!0}return!1}_reduceValue(){return this._reduceChildren({},($e,De,kt)=>((De.enabled||this.disabled)&&($e[kt]=De.value),$e))}_reduceChildren($e,De){let kt=$e;return this._forEachChild((Ln,Si)=>{kt=De(kt,Ln,Si)}),kt}_allControlsDisabled(){for(const $e of Object.keys(this.controls))if(this.controls[$e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent($e){this._forEachChild((De,kt)=>{if(void 0===$e[kt])throw new Error(`Must supply a value for form control with name: '${kt}'.`)})}}class Ps extends Ms{constructor($e,De,kt){super(js(De),mr(kt,De)),this.controls=$e,this._initObservables(),this._setUpdateStrategy(De),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at($e){return this.controls[$e]}push($e,De={}){this.controls.push($e),this._registerControl($e),this.updateValueAndValidity({emitEvent:De.emitEvent}),this._onCollectionChange()}insert($e,De,kt={}){this.controls.splice($e,0,De),this._registerControl(De),this.updateValueAndValidity({emitEvent:kt.emitEvent})}removeAt($e,De={}){this.controls[$e]&&this.controls[$e]._registerOnCollectionChange(()=>{}),this.controls.splice($e,1),this.updateValueAndValidity({emitEvent:De.emitEvent})}setControl($e,De,kt={}){this.controls[$e]&&this.controls[$e]._registerOnCollectionChange(()=>{}),this.controls.splice($e,1),De&&(this.controls.splice($e,0,De),this._registerControl(De)),this.updateValueAndValidity({emitEvent:kt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue($e,De={}){this._checkAllValuesPresent($e),$e.forEach((kt,Ln)=>{this._throwIfControlMissing(Ln),this.at(Ln).setValue(kt,{onlySelf:!0,emitEvent:De.emitEvent})}),this.updateValueAndValidity(De)}patchValue($e,De={}){null!=$e&&($e.forEach((kt,Ln)=>{this.at(Ln)&&this.at(Ln).patchValue(kt,{onlySelf:!0,emitEvent:De.emitEvent})}),this.updateValueAndValidity(De))}reset($e=[],De={}){this._forEachChild((kt,Ln)=>{kt.reset($e[Ln],{onlySelf:!0,emitEvent:De.emitEvent})}),this._updatePristine(De),this._updateTouched(De),this.updateValueAndValidity(De)}getRawValue(){return this.controls.map($e=>$e instanceof ur?$e.value:$e.getRawValue())}clear($e={}){this.controls.length<1||(this._forEachChild(De=>De._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:$e.emitEvent}))}_syncPendingControls(){let $e=this.controls.reduce((De,kt)=>!!kt._syncPendingControls()||De,!1);return $e&&this.updateValueAndValidity({onlySelf:!0}),$e}_throwIfControlMissing($e){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($e))throw new Error(`Cannot find form control at index ${$e}`)}_forEachChild($e){this.controls.forEach((De,kt)=>{$e(De,kt)})}_updateValue(){this.value=this.controls.filter($e=>$e.enabled||this.disabled).map($e=>$e.value)}_anyControls($e){return this.controls.some(De=>De.enabled&&$e(De))}_setUpControls(){this._forEachChild($e=>this._registerControl($e))}_checkAllValuesPresent($e){this._forEachChild((De,kt)=>{if(void 0===$e[kt])throw new Error(`Must supply a value for form control at index: ${kt}.`)})}_allControlsDisabled(){for(const $e of this.controls)if($e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl($e){$e.setParent(this),$e._registerOnCollectionChange(this._onCollectionChange)}}const Sr={provide:Nt,useExisting:(0,a.Gpc)(()=>Or)},Ns=(()=>Promise.resolve(null))();let Or=(()=>{class tt extends Nt{constructor(De,kt){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new pr({},ot(De),ut(kt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(De){Ns.then(()=>{const kt=this._findContainer(De.path);De.control=kt.registerControl(De.name,De.control),V(De.control,De),De.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(De)})}getControl(De){return this.form.get(De.path)}removeControl(De){Ns.then(()=>{const kt=this._findContainer(De.path);kt&&kt.removeControl(De.name),Ei(this._directives,De)})}addFormGroup(De){Ns.then(()=>{const kt=this._findContainer(De.path),Ln=new pr({});(function(tt,$e){bt(tt,$e)})(Ln,De),kt.registerControl(De.name,Ln),Ln.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(De){Ns.then(()=>{const kt=this._findContainer(De.path);kt&&kt.removeControl(De.name)})}getFormGroup(De){return this.form.get(De.path)}updateModel(De,kt){Ns.then(()=>{this.form.get(De.path).setValue(kt)})}setValue(De){this.control.setValue(De)}onSubmit(De){return this.submitted=!0,function(tt,$e){tt._syncPendingControls(),$e.forEach(De=>{const kt=De.control;"submit"===kt.updateOn&&kt._pendingChange&&(De.viewToModelUpdate(kt._pendingValue),kt._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(De),!1}onReset(){this.resetForm()}resetForm(De){this.form.reset(De),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(De){return De.pop(),De.length?this.form.get(De):this.form}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(Ce,10),a.Y36(e,10))},tt.\u0275dir=a.lG2({type:tt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(De,kt){1&De&&a.NdJ("submit",function(Si){return kt.onSubmit(Si)})("reset",function(){return kt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([Sr]),a.qOj]}),tt})();const _i={provide:gt,useExisting:(0,a.Gpc)(()=>qi)},vn=(()=>Promise.resolve(null))();let qi=(()=>{class tt extends gt{constructor(De,kt,Ln,Si){super(),this.control=new ur,this._registered=!1,this.update=new a.vpe,this._parent=De,this._setValidators(kt),this._setAsyncValidators(Ln),this.valueAccessor=xi(0,Si)}ngOnChanges(De){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in De&&this._updateDisabled(De),jt(De,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(tt,$e){return[...$e.path,tt]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(De){this.viewModel=De,this.update.emit(De)}_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(){V(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(De){vn.then(()=>{this.control.setValue(De,{emitViewToModelChange:!1})})}_updateDisabled(De){const kt=De.isDisabled.currentValue,Ln=""===kt||kt&&"false"!==kt;vn.then(()=>{Ln&&!this.control.disabled?this.control.disable():!Ln&&this.control.disabled&&this.control.enable()})}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(Nt,9),a.Y36(Ce,10),a.Y36(e,10),a.Y36(le,10))},tt.\u0275dir=a.lG2({type:tt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([_i]),a.qOj,a.TTD]}),tt})(),Qi=(()=>{class tt{}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275dir=a.lG2({type:tt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),tt})();const Ss={provide:le,useExisting:(0,a.Gpc)(()=>Tr),multi:!0};let Yr=(()=>{class tt{}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275mod=a.oAB({type:tt}),tt.\u0275inj=a.cJS({}),tt})(),Fr=(()=>{class tt{constructor(){this._accessors=[]}add(De,kt){this._accessors.push([De,kt])}remove(De){for(let kt=this._accessors.length-1;kt>=0;--kt)if(this._accessors[kt][1]===De)return void this._accessors.splice(kt,1)}select(De){this._accessors.forEach(kt=>{this._isSameGroup(kt,De)&&kt[1]!==De&&kt[1].fireUncheck(De.value)})}_isSameGroup(De,kt){return!!De[0].control&&De[0]._parent===kt._control._parent&&De[1].name===kt.name}}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275prov=a.Yz7({token:tt,factory:tt.\u0275fac,providedIn:Yr}),tt})(),Tr=(()=>{class tt extends U{constructor(De,kt,Ln,Si){super(De,kt),this._registry=Ln,this._injector=Si,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(gt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(De){this._state=De===this.value,this.setProperty("checked",this._state)}registerOnChange(De){this._fn=De,this.onChange=()=>{De(this.value),this._registry.select(this)}}fireUncheck(De){this.writeValue(De)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(Fr),a.Y36(a.zs3))},tt.\u0275dir=a.lG2({type:tt,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(De,kt){1&De&&a.NdJ("change",function(){return kt.onChange()})("blur",function(){return kt.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[a._Bn([Ss]),a.qOj]}),tt})();const No=new a.OlP("NgModelWithFormControlWarning"),Rr={provide:gt,useExisting:(0,a.Gpc)(()=>Xs)};let Xs=(()=>{class tt extends gt{constructor(De,kt,Ln,Si){super(),this._ngModelWarningConfig=Si,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(De),this._setAsyncValidators(kt),this.valueAccessor=xi(0,Ln)}set isDisabled(De){}ngOnChanges(De){if(this._isControlChanged(De)){const kt=De.form.previousValue;kt&&Q(kt,this,!1),V(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}jt(De,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Q(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(De){this.viewModel=De,this.update.emit(De)}_isControlChanged(De){return De.hasOwnProperty("form")}}return tt._ngModelWarningSentOnce=!1,tt.\u0275fac=function(De){return new(De||tt)(a.Y36(Ce,10),a.Y36(e,10),a.Y36(le,10),a.Y36(No,8))},tt.\u0275dir=a.lG2({type:tt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([Rr]),a.qOj,a.TTD]}),tt})();const Wr={provide:le,useExisting:(0,a.Gpc)(()=>ln),multi:!0};function Zr(tt,$e){return null==tt?`${$e}`:($e&&"object"==typeof $e&&($e="Object"),`${tt}: ${$e}`.slice(0,50))}let ln=(()=>{class tt extends U{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(De){this._compareWith=De}writeValue(De){this.value=De;const kt=this._getOptionId(De);null==kt&&this.setProperty("selectedIndex",-1);const Ln=Zr(kt,De);this.setProperty("value",Ln)}registerOnChange(De){this.onChange=kt=>{this.value=this._getOptionValue(kt),De(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(De){for(const kt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(kt),De))return kt;return null}_getOptionValue(De){const kt=function(tt){return tt.split(":")[0]}(De);return this._optionMap.has(kt)?this._optionMap.get(kt):De}}return tt.\u0275fac=function(){let $e;return function(kt){return($e||($e=a.n5z(tt)))(kt||tt)}}(),tt.\u0275dir=a.lG2({type:tt,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(De,kt){1&De&&a.NdJ("change",function(Si){return kt.onChange(Si.target.value)})("blur",function(){return kt.onTouched()})},inputs:{compareWith:"compareWith"},features:[a._Bn([Wr]),a.qOj]}),tt})(),de=(()=>{class tt{constructor(De,kt,Ln){this._element=De,this._renderer=kt,this._select=Ln,this._select&&(this.id=this._select._registerOption())}set ngValue(De){null!=this._select&&(this._select._optionMap.set(this.id,De),this._setElementValue(Zr(this.id,De)),this._select.writeValue(this._select.value))}set value(De){this._setElementValue(De),this._select&&this._select.writeValue(this._select.value)}_setElementValue(De){this._renderer.setProperty(this._element.nativeElement,"value",De)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(a.SBq),a.Y36(a.Qsj),a.Y36(ln,9))},tt.\u0275dir=a.lG2({type:tt,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),tt})();const ht={provide:le,useExisting:(0,a.Gpc)(()=>xt),multi:!0};function cn(tt,$e){return null==tt?`${$e}`:("string"==typeof $e&&($e=`'${$e}'`),$e&&"object"==typeof $e&&($e="Object"),`${tt}: ${$e}`.slice(0,50))}let xt=(()=>{class tt extends U{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(De){this._compareWith=De}writeValue(De){let kt;if(this.value=De,Array.isArray(De)){const Ln=De.map(Si=>this._getOptionId(Si));kt=(Si,gs)=>{Si._setSelected(Ln.indexOf(gs.toString())>-1)}}else kt=(Ln,Si)=>{Ln._setSelected(!1)};this._optionMap.forEach(kt)}registerOnChange(De){this.onChange=kt=>{const Ln=[],Si=kt.selectedOptions;if(void 0!==Si){const gs=Si;for(let Ni=0;Ni{class tt{constructor(De,kt,Ln){this._element=De,this._renderer=kt,this._select=Ln,this._select&&(this.id=this._select._registerOption(this))}set ngValue(De){null!=this._select&&(this._value=De,this._setElementValue(cn(this.id,De)),this._select.writeValue(this._select.value))}set value(De){this._select?(this._value=De,this._setElementValue(cn(this.id,De)),this._select.writeValue(this._select.value)):this._setElementValue(De)}_setElementValue(De){this._renderer.setProperty(this._element.nativeElement,"value",De)}_setSelected(De){this._renderer.setProperty(this._element.nativeElement,"selected",De)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return tt.\u0275fac=function(De){return new(De||tt)(a.Y36(a.SBq),a.Y36(a.Qsj),a.Y36(xt,9))},tt.\u0275dir=a.lG2({type:tt,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),tt})();let ai=(()=>{class tt{constructor(){this._validator=Le}ngOnChanges(De){if(this.inputName in De){const kt=this.normalizeInput(De[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(kt):Le,this._onChange&&this._onChange()}}validate(De){return this._validator(De)}registerOnValidatorChange(De){this._onChange=De}enabled(){return null!=this[this.inputName]}}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275dir=a.lG2({type:tt,features:[a.TTD]}),tt})();const os={provide:Ce,useExisting:(0,a.Gpc)(()=>Es),multi:!0},ws={provide:Ce,useExisting:(0,a.Gpc)(()=>ir),multi:!0};let Es=(()=>{class tt{constructor(){this._required=!1}get required(){return this._required}set required(De){this._required=null!=De&&!1!==De&&"false"!=`${De}`,this._onChange&&this._onChange()}validate(De){return this.required?ct(De):null}registerOnValidatorChange(De){this._onChange=De}}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275dir=a.lG2({type:tt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(De,kt){2&De&&a.uIk("required",kt.required?"":null)},inputs:{required:"required"},features:[a._Bn([os])]}),tt})(),ir=(()=>{class tt extends Es{validate(De){return this.required?g(De):null}}return tt.\u0275fac=function(){let $e;return function(kt){return($e||($e=a.n5z(tt)))(kt||tt)}}(),tt.\u0275dir=a.lG2({type:tt,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(De,kt){2&De&&a.uIk("required",kt.required?"":null)},features:[a._Bn([ws]),a.qOj]}),tt})();const hr={provide:Ce,useExisting:(0,a.Gpc)(()=>Hr),multi:!0};let Hr=(()=>{class tt{constructor(){this._enabled=!1}set email(De){this._enabled=""===De||!0===De||"true"===De,this._onChange&&this._onChange()}validate(De){return this._enabled?qe(De):null}registerOnValidatorChange(De){this._onChange=De}}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275dir=a.lG2({type:tt,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a._Bn([hr])]}),tt})();const Ds={provide:Ce,useExisting:(0,a.Gpc)(()=>So),multi:!0};let So=(()=>{class tt extends ai{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=De=>function(tt){return"number"==typeof tt?tt:parseInt(tt,10)}(De),this.createValidator=De=>He(De)}}return tt.\u0275fac=function(){let $e;return function(kt){return($e||($e=a.n5z(tt)))(kt||tt)}}(),tt.\u0275dir=a.lG2({type:tt,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(De,kt){2&De&&a.uIk("maxlength",kt.enabled()?kt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a._Bn([Ds]),a.qOj]}),tt})(),et=(()=>{class tt{}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275mod=a.oAB({type:tt}),tt.\u0275inj=a.cJS({imports:[[Yr]]}),tt})(),Pt=(()=>{class tt{}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275mod=a.oAB({type:tt}),tt.\u0275inj=a.cJS({imports:[et]}),tt})(),dn=(()=>{class tt{static withConfig(De){return{ngModule:tt,providers:[{provide:No,useValue:De.warnOnNgModelWithFormControl}]}}}return tt.\u0275fac=function(De){return new(De||tt)},tt.\u0275mod=a.oAB({type:tt}),tt.\u0275inj=a.cJS({imports:[et]}),tt})()},7423:(St,oe,S)=>{"use strict";S.d(oe,{lW:()=>E,ot:()=>x});var a=S(5e3),C=S(508),N=S(6360),ze=S(5664);const p=["mat-button",""],K=["*"],P=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],H=(0,C.pj)((0,C.Id)((0,C.Kr)(class{constructor(U){this._elementRef=U}})));let E=(()=>{class U extends H{constructor(xe,re,ce){super(xe),this._focusMonitor=re,this._animationMode=ce,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const L of P)this._hasHostAttributes(L)&&this._getHostElement().classList.add(L);xe.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(xe,re){xe?this._focusMonitor.focusVia(this._getHostElement(),xe,re):this._getHostElement().focus(re)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...xe){return xe.some(re=>this._getHostElement().hasAttribute(re))}}return U.\u0275fac=function(xe){return new(xe||U)(a.Y36(a.SBq),a.Y36(ze.tE),a.Y36(N.Qb,8))},U.\u0275cmp=a.Xpm({type:U,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(xe,re){if(1&xe&&a.Gf(C.wG,5),2&xe){let ce;a.iGM(ce=a.CRH())&&(re.ripple=ce.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(xe,re){2&xe&&(a.uIk("disabled",re.disabled||null),a.ekj("_mat-animation-noopable","NoopAnimations"===re._animationMode)("mat-button-disabled",re.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[a.qOj],attrs:p,ngContentSelectors:K,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(xe,re){1&xe&&(a.F$t(),a.TgZ(0,"span",0),a.Hsn(1),a.qZA(),a._UZ(2,"span",1),a._UZ(3,"span",2)),2&xe&&(a.xp6(2),a.ekj("mat-button-ripple-round",re.isRoundButton||re.isIconButton),a.Q6J("matRippleDisabled",re._isRippleDisabled())("matRippleCentered",re.isIconButton)("matRippleTrigger",re._getHostElement()))},directives:[C.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}),U})(),x=(()=>{class U{}return U.\u0275fac=function(xe){return new(xe||U)},U.\u0275mod=a.oAB({type:U}),U.\u0275inj=a.cJS({imports:[[C.si,C.BQ],C.BQ]}),U})()},508:(St,oe,S)=>{"use strict";S.d(oe,{_A:()=>Ve,rD:()=>ke,sG:()=>He,BQ:()=>we,XK:()=>Ne,Ng:()=>Ft,rN:()=>Yn,wG:()=>$t,si:()=>ft,CB:()=>Gt,jH:()=>Rt,pj:()=>z,Kr:()=>je,Id:()=>e,sb:()=>rt});var a=S(5e3),C=S(226),ze=S(9808),p=S(925),K=S(5664),r=S(3191),O=S(7579),P=S(6360);const J=new a.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let we=(()=>{class F{constructor(Q,ie,nt){this._sanityChecks=ie,this._document=nt,this._hasDoneGlobalChecks=!1,Q._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Q){return!(0,p.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Q])}}return F.\u0275fac=function(Q){return new(Q||F)(a.LFG(K.qm),a.LFG(J,8),a.LFG(ze.K0))},F.\u0275mod=a.oAB({type:F}),F.\u0275inj=a.cJS({imports:[[C.vT],C.vT]}),F})();function e(F){return class extends F{constructor(...V){super(...V),this._disabled=!1}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,r.Ig)(V)}}}function z(F,V){return class extends F{constructor(...Q){super(...Q),this.defaultColor=V,this.color=V}get color(){return this._color}set color(Q){const ie=Q||this.defaultColor;ie!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ie&&this._elementRef.nativeElement.classList.add(`mat-${ie}`),this._color=ie)}}}function je(F){return class extends F{constructor(...V){super(...V),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=(0,r.Ig)(V)}}}function rt(F,V=0){return class extends F{constructor(...Q){super(...Q),this._tabIndex=V,this.defaultTabIndex=V}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Q){this._tabIndex=null!=Q?(0,r.su)(Q):this.defaultTabIndex}}}const g=new a.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,a.f3M)(a.soG)}});class Ve{constructor(){this._localeChanges=new O.x,this.localeChanges=this._localeChanges}getValidDateOrNull(V){return this.isDateInstance(V)&&this.isValid(V)?V:null}deserialize(V){return null==V||this.isDateInstance(V)&&this.isValid(V)?V:this.invalid()}setLocale(V){this.locale=V,this._localeChanges.next()}compareDate(V,Q){return this.getYear(V)-this.getYear(Q)||this.getMonth(V)-this.getMonth(Q)||this.getDate(V)-this.getDate(Q)}sameDate(V,Q){if(V&&Q){let ie=this.isValid(V),nt=this.isValid(Q);return ie&&nt?!this.compareDate(V,Q):ie==nt}return V==Q}clampDate(V,Q,ie){return Q&&this.compareDate(V,Q)<0?Q:ie&&this.compareDate(V,ie)>0?ie:V}}const He=new a.OlP("mat-date-formats"),X=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Le(F,V){const Q=Array(F);for(let ie=0;ie{class F extends Ve{constructor(Q,ie){super(),this.useUtcForDisplay=!1,super.setLocale(Q)}getYear(Q){return Q.getFullYear()}getMonth(Q){return Q.getMonth()}getDate(Q){return Q.getDate()}getDayOfWeek(Q){return Q.getDay()}getMonthNames(Q){const ie=new Intl.DateTimeFormat(this.locale,{month:Q,timeZone:"utc"});return Le(12,nt=>this._format(ie,new Date(2017,nt,1)))}getDateNames(){const Q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Le(31,ie=>this._format(Q,new Date(2017,0,ie+1)))}getDayOfWeekNames(Q){const ie=new Intl.DateTimeFormat(this.locale,{weekday:Q,timeZone:"utc"});return Le(7,nt=>this._format(ie,new Date(2017,0,nt+1)))}getYearName(Q){const ie=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ie,Q)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Q){return this.getDate(this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+1,0))}clone(Q){return new Date(Q.getTime())}createDate(Q,ie,nt){let bt=this._createDateWithOverflow(Q,ie,nt);return bt.getMonth(),bt}today(){return new Date}parse(Q){return"number"==typeof Q?new Date(Q):Q?new Date(Date.parse(Q)):null}format(Q,ie){if(!this.isValid(Q))throw Error("NativeDateAdapter: Cannot format invalid date.");const nt=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ie),{timeZone:"utc"}));return this._format(nt,Q)}addCalendarYears(Q,ie){return this.addCalendarMonths(Q,12*ie)}addCalendarMonths(Q,ie){let nt=this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+ie,this.getDate(Q));return this.getMonth(nt)!=((this.getMonth(Q)+ie)%12+12)%12&&(nt=this._createDateWithOverflow(this.getYear(nt),this.getMonth(nt),0)),nt}addCalendarDays(Q,ie){return this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q),this.getDate(Q)+ie)}toIso8601(Q){return[Q.getUTCFullYear(),this._2digit(Q.getUTCMonth()+1),this._2digit(Q.getUTCDate())].join("-")}deserialize(Q){if("string"==typeof Q){if(!Q)return null;if(X.test(Q)){let ie=new Date(Q);if(this.isValid(ie))return ie}}return super.deserialize(Q)}isDateInstance(Q){return Q instanceof Date}isValid(Q){return!isNaN(Q.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Q,ie,nt){const bt=new Date;return bt.setFullYear(Q,ie,nt),bt.setHours(0,0,0,0),bt}_2digit(Q){return("00"+Q).slice(-2)}_format(Q,ie){const nt=new Date;return nt.setUTCFullYear(ie.getFullYear(),ie.getMonth(),ie.getDate()),nt.setUTCHours(ie.getHours(),ie.getMinutes(),ie.getSeconds(),ie.getMilliseconds()),Q.format(nt)}}return F.\u0275fac=function(Q){return new(Q||F)(a.LFG(g,8),a.LFG(p.t4))},F.\u0275prov=a.Yz7({token:F,factory:F.\u0275fac}),F})();const Ze={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 he=(()=>{class F{}return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=a.oAB({type:F}),F.\u0275inj=a.cJS({providers:[{provide:Ve,useClass:Te}],imports:[[p.ud]]}),F})(),Ne=(()=>{class F{}return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=a.oAB({type:F}),F.\u0275inj=a.cJS({providers:[{provide:He,useValue:Ze}],imports:[[he]]}),F})(),ke=(()=>{class F{isErrorState(Q,ie){return!!(Q&&Q.invalid&&(Q.touched||ie&&ie.submitted))}}return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275prov=a.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();class Mt{constructor(V,Q,ie){this._renderer=V,this.element=Q,this.config=ie,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const At={enterDuration:225,exitDuration:150},Wt=(0,p.i$)({passive:!0}),Sn=["mousedown","touchstart"],ye=["mouseup","mouseleave","touchend","touchcancel"];class be{constructor(V,Q,ie,nt){this._target=V,this._ngZone=Q,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,nt.isBrowser&&(this._containerElement=(0,r.fI)(ie))}fadeInRipple(V,Q,ie={}){const nt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),bt=Object.assign(Object.assign({},At),ie.animation);ie.centered&&(V=nt.left+nt.width/2,Q=nt.top+nt.height/2);const an=ie.radius||function(F,V,Q){const ie=Math.max(Math.abs(F-Q.left),Math.abs(F-Q.right)),nt=Math.max(Math.abs(V-Q.top),Math.abs(V-Q.bottom));return Math.sqrt(ie*ie+nt*nt)}(V,Q,nt),Qn=V-nt.left,ni=Q-nt.top,An=bt.enterDuration,Ii=document.createElement("div");Ii.classList.add("mat-ripple-element"),Ii.style.left=Qn-an+"px",Ii.style.top=ni-an+"px",Ii.style.height=2*an+"px",Ii.style.width=2*an+"px",null!=ie.color&&(Ii.style.backgroundColor=ie.color),Ii.style.transitionDuration=`${An}ms`,this._containerElement.appendChild(Ii),window.getComputedStyle(Ii).getPropertyValue("opacity"),Ii.style.transform="scale(1)";const Zi=new Mt(this,Ii,ie);return Zi.state=0,this._activeRipples.add(Zi),ie.persistent||(this._mostRecentTransientRipple=Zi),this._runTimeoutOutsideZone(()=>{const Ti=Zi===this._mostRecentTransientRipple;Zi.state=1,!ie.persistent&&(!Ti||!this._isPointerDown)&&Zi.fadeOut()},An),Zi}fadeOutRipple(V){const Q=this._activeRipples.delete(V);if(V===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Q)return;const ie=V.element,nt=Object.assign(Object.assign({},At),V.config.animation);ie.style.transitionDuration=`${nt.exitDuration}ms`,ie.style.opacity="0",V.state=2,this._runTimeoutOutsideZone(()=>{V.state=3,ie.remove()},nt.exitDuration)}fadeOutAll(){this._activeRipples.forEach(V=>V.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(V=>{V.config.persistent||V.fadeOut()})}setupTriggerEvents(V){const Q=(0,r.fI)(V);!Q||Q===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Q,this._registerEvents(Sn))}handleEvent(V){"mousedown"===V.type?this._onMousedown(V):"touchstart"===V.type?this._onTouchStart(V):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ye),this._pointerUpEventsRegistered=!0)}_onMousedown(V){const Q=(0,K.X6)(V),ie=this._lastTouchStartEvent&&Date.now(){!V.config.persistent&&(1===V.state||V.config.terminateOnPointerUp&&0===V.state)&&V.fadeOut()}))}_runTimeoutOutsideZone(V,Q=0){this._ngZone.runOutsideAngular(()=>setTimeout(V,Q))}_registerEvents(V){this._ngZone.runOutsideAngular(()=>{V.forEach(Q=>{this._triggerElement.addEventListener(Q,this,Wt)})})}_removeTriggerEvents(){this._triggerElement&&(Sn.forEach(V=>{this._triggerElement.removeEventListener(V,this,Wt)}),this._pointerUpEventsRegistered&&ye.forEach(V=>{this._triggerElement.removeEventListener(V,this,Wt)}))}}const Nt=new a.OlP("mat-ripple-global-options");let $t=(()=>{class F{constructor(Q,ie,nt,bt,an){this._elementRef=Q,this._animationMode=an,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=bt||{},this._rippleRenderer=new be(this,ie,Q,nt)}get disabled(){return this._disabled}set disabled(Q){Q&&this.fadeOutAllNonPersistent(),this._disabled=Q,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Q){this._trigger=Q,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(Q,ie=0,nt){return"number"==typeof Q?this._rippleRenderer.fadeInRipple(Q,ie,Object.assign(Object.assign({},this.rippleConfig),nt)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Q))}}return F.\u0275fac=function(Q){return new(Q||F)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(p.t4),a.Y36(Nt,8),a.Y36(P.Qb,8))},F.\u0275dir=a.lG2({type:F,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Q,ie){2&Q&&a.ekj("mat-ripple-unbounded",ie.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"]}),F})(),ft=(()=>{class F{}return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=a.oAB({type:F}),F.\u0275inj=a.cJS({imports:[[we,p.ud],we]}),F})(),Re=(()=>{class F{}return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=a.oAB({type:F}),F.\u0275inj=a.cJS({imports:[[we]]}),F})();class Yn{constructor(V,Q=!1){this.source=V,this.isUserInput=Q}}function Gt(F,V,Q){if(Q.length){let ie=V.toArray(),nt=Q.toArray(),bt=0;for(let an=0;anQ+ie?Math.max(0,F-ie+V):Q}let Ft=(()=>{class F{}return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=a.oAB({type:F}),F.\u0275inj=a.cJS({imports:[[ft,ze.ez,we,Re]]}),F})()},8966:(St,oe,S)=>{"use strict";S.d(oe,{Bq:()=>it,uw:()=>X,H8:()=>Me,xY:()=>Ne,Is:()=>G,so:()=>z,uh:()=>he});var a=S(1314),C=S(7429),N=S(5e3),ze=S(508),p=S(226),K=S(7579),r=S(9770),O=S(727),P=S(9646),H=S(9300),E=S(5698),ee=S(8675),x=S(925),U=S(9808),le=S(1777),xe=S(5664),re=S(1159),ce=S(6360);function L(ot,We){}class J{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 we={dialogContainer:(0,le.X$)("dialogContainer",[(0,le.SB)("void, exit",(0,le.oB)({opacity:0,transform:"scale(0.7)"})),(0,le.SB)("enter",(0,le.oB)({transform:"none"})),(0,le.eR)("* => enter",(0,le.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,le.oB)({transform:"none",opacity:1}))),(0,le.eR)("* => void, * => exit",(0,le.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,le.oB)({opacity:0})))])};let fe=(()=>{class ot extends C.en{constructor(ut,Mt,At,Jt,Wt,Sn,ye,be){super(),this._elementRef=ut,this._focusTrapFactory=Mt,this._changeDetectorRef=At,this._config=Wt,this._interactivityChecker=Sn,this._ngZone=ye,this._focusMonitor=be,this._animationStateChanged=new N.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Je=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Je)),this._ariaLabelledBy=Wt.ariaLabelledBy||null,this._document=Jt}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(ut){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(ut)}attachTemplatePortal(ut){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(ut)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ut,Mt){this._interactivityChecker.isFocusable(ut)||(ut.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{ut.addEventListener("blur",()=>ut.removeAttribute("tabindex")),ut.addEventListener("mousedown",()=>ut.removeAttribute("tabindex"))})),ut.focus(Mt)}_focusByCssSelector(ut,Mt){let At=this._elementRef.nativeElement.querySelector(ut);At&&this._forceFocus(At,Mt)}_trapFocus(){const ut=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ut.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Mt=>{Mt||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 ut=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&ut&&"function"==typeof ut.focus){const Mt=(0,x.ht)(),At=this._elementRef.nativeElement;(!Mt||Mt===this._document.body||Mt===At||At.contains(Mt))&&(this._focusMonitor?(this._focusMonitor.focusVia(ut,this._closeInteractionType),this._closeInteractionType=null):ut.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,x.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ut=this._elementRef.nativeElement,Mt=(0,x.ht)();return ut===Mt||ut.contains(Mt)}}return ot.\u0275fac=function(ut){return new(ut||ot)(N.Y36(N.SBq),N.Y36(xe.qV),N.Y36(N.sBO),N.Y36(U.K0,8),N.Y36(J),N.Y36(xe.ic),N.Y36(N.R0b),N.Y36(xe.tE))},ot.\u0275dir=N.lG2({type:ot,viewQuery:function(ut,Mt){if(1&ut&&N.Gf(C.Pl,7),2&ut){let At;N.iGM(At=N.CRH())&&(Mt._portalOutlet=At.first)}},features:[N.qOj]}),ot})(),Ce=(()=>{class ot extends fe{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:ut,totalTime:Mt}){"enter"===ut?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Mt})):"exit"===ut&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Mt}))}_onAnimationStart({toState:ut,totalTime:Mt}){"enter"===ut?this._animationStateChanged.next({state:"opening",totalTime:Mt}):("exit"===ut||"void"===ut)&&this._animationStateChanged.next({state:"closing",totalTime:Mt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return ot.\u0275fac=function(){let We;return function(Mt){return(We||(We=N.n5z(ot)))(Mt||ot)}}(),ot.\u0275cmp=N.Xpm({type:ot,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(ut,Mt){1&ut&&N.WFA("@dialogContainer.start",function(Jt){return Mt._onAnimationStart(Jt)})("@dialogContainer.done",function(Jt){return Mt._onAnimationDone(Jt)}),2&ut&&(N.Ikx("id",Mt._id),N.uIk("role",Mt._config.role)("aria-labelledby",Mt._config.ariaLabel?null:Mt._ariaLabelledBy)("aria-label",Mt._config.ariaLabel)("aria-describedby",Mt._config.ariaDescribedBy||null),N.d8E("@dialogContainer",Mt._state))},features:[N.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ut,Mt){1&ut&&N.YNc(0,L,0,0,"ng-template",0)},directives:[C.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:[we.dialogContainer]}}),ot})(),e=0;class z{constructor(We,ut,Mt="mat-dialog-"+e++){this._overlayRef=We,this._containerInstance=ut,this.id=Mt,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new K.x,this._afterClosed=new K.x,this._beforeClosed=new K.x,this._state=0,ut._id=Mt,ut._animationStateChanged.pipe((0,H.h)(At=>"opened"===At.state),(0,E.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ut._animationStateChanged.pipe((0,H.h)(At=>"closed"===At.state),(0,E.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),We.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),We.keydownEvents().pipe((0,H.h)(At=>At.keyCode===re.hY&&!this.disableClose&&!(0,re.Vb)(At))).subscribe(At=>{At.preventDefault(),je(this,"keyboard")}),We.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():je(this,"mouse")})}close(We){this._result=We,this._containerInstance._animationStateChanged.pipe((0,H.h)(ut=>"closing"===ut.state),(0,E.q)(1)).subscribe(ut=>{this._beforeClosed.next(We),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ut.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(We){let ut=this._getPositionStrategy();return We&&(We.left||We.right)?We.left?ut.left(We.left):ut.right(We.right):ut.centerHorizontally(),We&&(We.top||We.bottom)?We.top?ut.top(We.top):ut.bottom(We.bottom):ut.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(We="",ut=""){return this._overlayRef.updateSize({width:We,height:ut}),this._overlayRef.updatePosition(),this}addPanelClass(We){return this._overlayRef.addPanelClass(We),this}removePanelClass(We){return this._overlayRef.removePanelClass(We),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function je(ot,We,ut){return void 0!==ot._containerInstance&&(ot._containerInstance._closeInteractionType=We),ot.close(ut)}const rt=new N.OlP("MatDialogData"),it=new N.OlP("mat-dialog-default-options"),ct=new N.OlP("mat-dialog-scroll-strategy"),Ve={provide:ct,deps:[a.aV],useFactory:function(ot){return()=>ot.scrollStrategies.block()}};let He=(()=>{class ot{constructor(ut,Mt,At,Jt,Wt,Sn,ye,be,Je,gt){this._overlay=ut,this._injector=Mt,this._defaultOptions=At,this._parentDialog=Jt,this._overlayContainer=Wt,this._dialogRefConstructor=ye,this._dialogContainerType=be,this._dialogDataToken=Je,this._animationMode=gt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new K.x,this._afterOpenedAtThisLevel=new K.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,r.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,ee.O)(void 0))),this._scrollStrategy=Sn}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ut=this._parentDialog;return ut?ut._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ut,Mt){if(Mt=function(ot,We){return Object.assign(Object.assign({},We),ot)}(Mt,this._defaultOptions||new J),Mt.id&&this.getDialogById(Mt.id),this._dialogAnimatingOpen)return this._lastDialogRef;const At=this._createOverlay(Mt),Jt=this._attachDialogContainer(At,Mt);if("NoopAnimations"!==this._animationMode){const Sn=Jt._animationStateChanged.subscribe(ye=>{"opening"===ye.state&&(this._dialogAnimatingOpen=!0),"opened"===ye.state&&(this._dialogAnimatingOpen=!1,Sn.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new O.w0),this._animationStateSubscriptions.add(Sn)}const Wt=this._attachDialogContent(ut,Jt,At,Mt);return this._lastDialogRef=Wt,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Wt),Wt.afterClosed().subscribe(()=>this._removeOpenDialog(Wt)),this.afterOpened.next(Wt),Jt._initializeWithAttachedContent(),Wt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ut){return this.openDialogs.find(Mt=>Mt.id===ut)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(ut){const Mt=this._getOverlayConfig(ut);return this._overlay.create(Mt)}_getOverlayConfig(ut){const Mt=new a.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:ut.scrollStrategy||this._scrollStrategy(),panelClass:ut.panelClass,hasBackdrop:ut.hasBackdrop,direction:ut.direction,minWidth:ut.minWidth,minHeight:ut.minHeight,maxWidth:ut.maxWidth,maxHeight:ut.maxHeight,disposeOnNavigation:ut.closeOnNavigation});return ut.backdropClass&&(Mt.backdropClass=ut.backdropClass),Mt}_attachDialogContainer(ut,Mt){const Jt=N.zs3.create({parent:Mt&&Mt.viewContainerRef&&Mt.viewContainerRef.injector||this._injector,providers:[{provide:J,useValue:Mt}]}),Wt=new C.C5(this._dialogContainerType,Mt.viewContainerRef,Jt,Mt.componentFactoryResolver);return ut.attach(Wt).instance}_attachDialogContent(ut,Mt,At,Jt){const Wt=new this._dialogRefConstructor(At,Mt,Jt.id);if(ut instanceof N.Rgc)Mt.attachTemplatePortal(new C.UE(ut,null,{$implicit:Jt.data,dialogRef:Wt}));else{const Sn=this._createInjector(Jt,Wt,Mt),ye=Mt.attachComponentPortal(new C.C5(ut,Jt.viewContainerRef,Sn));Wt.componentInstance=ye.instance}return Wt.updateSize(Jt.width,Jt.height).updatePosition(Jt.position),Wt}_createInjector(ut,Mt,At){const Jt=ut&&ut.viewContainerRef&&ut.viewContainerRef.injector,Wt=[{provide:this._dialogContainerType,useValue:At},{provide:this._dialogDataToken,useValue:ut.data},{provide:this._dialogRefConstructor,useValue:Mt}];return ut.direction&&(!Jt||!Jt.get(p.Is,null,N.XFs.Optional))&&Wt.push({provide:p.Is,useValue:{value:ut.direction,change:(0,P.of)()}}),N.zs3.create({parent:Jt||this._injector,providers:Wt})}_removeOpenDialog(ut){const Mt=this.openDialogs.indexOf(ut);Mt>-1&&(this.openDialogs.splice(Mt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((At,Jt)=>{At?Jt.setAttribute("aria-hidden",At):Jt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ut=this._overlayContainer.getContainerElement();if(ut.parentElement){const Mt=ut.parentElement.children;for(let At=Mt.length-1;At>-1;At--){let Jt=Mt[At];Jt!==ut&&"SCRIPT"!==Jt.nodeName&&"STYLE"!==Jt.nodeName&&!Jt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Jt,Jt.getAttribute("aria-hidden")),Jt.setAttribute("aria-hidden","true"))}}}_closeDialogs(ut){let Mt=ut.length;for(;Mt--;)ut[Mt].close()}}return ot.\u0275fac=function(ut){N.$Z()},ot.\u0275dir=N.lG2({type:ot}),ot})(),X=(()=>{class ot extends He{constructor(ut,Mt,At,Jt,Wt,Sn,ye,be){super(ut,Mt,Jt,Sn,ye,Wt,z,Ce,rt,be)}}return ot.\u0275fac=function(ut){return new(ut||ot)(N.LFG(a.aV),N.LFG(N.zs3),N.LFG(U.Ye,8),N.LFG(it,8),N.LFG(ct),N.LFG(ot,12),N.LFG(a.Xj),N.LFG(ce.Qb,8))},ot.\u0275prov=N.Yz7({token:ot,factory:ot.\u0275fac}),ot})(),Te=0,he=(()=>{class ot{constructor(ut,Mt,At){this._dialogRef=ut,this._elementRef=Mt,this._dialog=At,this.id="mat-dialog-title-"+Te++}ngOnInit(){this._dialogRef||(this._dialogRef=function(ot,We){let ut=ot.nativeElement.parentElement;for(;ut&&!ut.classList.contains("mat-dialog-container");)ut=ut.parentElement;return ut?We.find(Mt=>Mt.id===ut.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const ut=this._dialogRef._containerInstance;ut&&!ut._ariaLabelledBy&&(ut._ariaLabelledBy=this.id)})}}return ot.\u0275fac=function(ut){return new(ut||ot)(N.Y36(z,8),N.Y36(N.SBq),N.Y36(X))},ot.\u0275dir=N.lG2({type:ot,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(ut,Mt){2&ut&&N.Ikx("id",Mt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ot})(),Ne=(()=>{class ot{}return ot.\u0275fac=function(ut){return new(ut||ot)},ot.\u0275dir=N.lG2({type:ot,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),ot})(),Me=(()=>{class ot{}return ot.\u0275fac=function(ut){return new(ut||ot)},ot.\u0275dir=N.lG2({type:ot,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),ot})(),G=(()=>{class ot{}return ot.\u0275fac=function(ut){return new(ut||ot)},ot.\u0275mod=N.oAB({type:ot}),ot.\u0275inj=N.cJS({providers:[X,Ve],imports:[[a.U8,C.eL,ze.BQ],ze.BQ]}),ot})()},6360:(St,oe,S)=>{"use strict";S.d(oe,{Qb:()=>Qs,PW:()=>wa});var a=S(5e3),C=S(2313),N=S(1777);function ze(){return"undefined"!=typeof window&&void 0!==window.document}function p(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function K(st){switch(st.length){case 0:return new N.ZN;case 1:return st[0];default:return new N.ZE(st)}}function r(st,$,ne,Ae,Ct={},Ke={}){const nn=[],un=[];let Fn=-1,ti=null;if(Ae.forEach(gi=>{const Fi=gi.offset,Ge=Fi==Fn,Xe=Ge&&ti||{};Object.keys(gi).forEach(dt=>{let It=dt,ue=gi[dt];if("offset"!==dt)switch(It=$.normalizePropertyName(It,nn),ue){case N.k1:ue=Ct[dt];break;case N.l3:ue=Ke[dt];break;default:ue=$.normalizeStyleValue(dt,It,ue,nn)}Xe[It]=ue}),Ge||un.push(Xe),ti=Xe,Fn=Fi}),nn.length){const gi="\n - ";throw new Error(`Unable to animate due to the following errors:${gi}${nn.join(gi)}`)}return un}function O(st,$,ne,Ae){switch($){case"start":st.onStart(()=>Ae(ne&&P(ne,"start",st)));break;case"done":st.onDone(()=>Ae(ne&&P(ne,"done",st)));break;case"destroy":st.onDestroy(()=>Ae(ne&&P(ne,"destroy",st)))}}function P(st,$,ne){const Ae=ne.totalTime,Ke=H(st.element,st.triggerName,st.fromState,st.toState,$||st.phaseName,null==Ae?st.totalTime:Ae,!!ne.disabled),nn=st._data;return null!=nn&&(Ke._data=nn),Ke}function H(st,$,ne,Ae,Ct="",Ke=0,nn){return{element:st,triggerName:$,fromState:ne,toState:Ae,phaseName:Ct,totalTime:Ke,disabled:!!nn}}function E(st,$,ne){let Ae;return st instanceof Map?(Ae=st.get($),Ae||st.set($,Ae=ne)):(Ae=st[$],Ae||(Ae=st[$]=ne)),Ae}function ee(st){const $=st.indexOf(":");return[st.substring(1,$),st.substr($+1)]}let x=(st,$)=>!1,U=(st,$,ne)=>[];(p()||"undefined"!=typeof Element)&&(x=ze()?(st,$)=>{for(;$&&$!==document.documentElement;){if($===st)return!0;$=$.parentNode||$.host}return!1}:(st,$)=>st.contains($),U=(st,$,ne)=>{let Ae=[];if(ne){const Ct=st.querySelectorAll($);for(let Ke=0;Ke{const Ae=ne.replace(/([a-z])([A-Z])/g,"$1-$2");$[Ae]=st[ne]}),$}let Ce=(()=>{class st{validateStyleProperty(ne){return L(ne)}matchesElement(ne,Ae){return!1}containsElement(ne,Ae){return we(ne,Ae)}query(ne,Ae,Ct){return ge(ne,Ae,Ct)}computeStyle(ne,Ae,Ct){return Ct||""}animate(ne,Ae,Ct,Ke,nn,un=[],Fn){return new N.ZN(Ct,Ke)}}return st.\u0275fac=function(ne){return new(ne||st)},st.\u0275prov=a.Yz7({token:st,factory:st.\u0275fac}),st})(),e=(()=>{class st{}return st.NOOP=new Ce,st})();const it="ng-enter",ct="ng-leave",g="ng-trigger",qe=".ng-trigger",Ve="ng-animating",He=".ng-animating";function X(st){if("number"==typeof st)return st;const $=st.match(/^(-?[\.\d]+)(m?s)/);return!$||$.length<2?0:Le(parseFloat($[1]),$[2])}function Le(st,$){return"s"===$?1e3*st:st}function Te(st,$,ne){return st.hasOwnProperty("duration")?st:function(st,$,ne){let Ct,Ke=0,nn="";if("string"==typeof st){const un=st.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===un)return $.push(`The provided timing value "${st}" is invalid.`),{duration:0,delay:0,easing:""};Ct=Le(parseFloat(un[1]),un[2]);const Fn=un[3];null!=Fn&&(Ke=Le(parseFloat(Fn),un[4]));const ti=un[5];ti&&(nn=ti)}else Ct=st;if(!ne){let un=!1,Fn=$.length;Ct<0&&($.push("Duration values below 0 are not allowed for this animation step."),un=!0),Ke<0&&($.push("Delay values below 0 are not allowed for this animation step."),un=!0),un&&$.splice(Fn,0,`The provided timing value "${st}" is invalid.`)}return{duration:Ct,delay:Ke,easing:nn}}(st,$,ne)}function he(st,$={}){return Object.keys(st).forEach(ne=>{$[ne]=st[ne]}),$}function Me(st,$,ne={}){if($)for(let Ae in st)ne[Ae]=st[Ae];else he(st,ne);return ne}function ke(st,$,ne){return ne?$+":"+ne+";":""}function G(st){let $="";for(let ne=0;ne{const Ct=be(Ae);ne&&!ne.hasOwnProperty(Ae)&&(ne[Ae]=st.style[Ct]),st.style[Ct]=$[Ae]}),p()&&G(st))}function We(st,$){st.style&&(Object.keys($).forEach(ne=>{const Ae=be(ne);st.style[Ae]=""}),p()&&G(st))}function ut(st){return Array.isArray(st)?1==st.length?st[0]:(0,N.vP)(st):st}const At=new RegExp("{{\\s*(.+?)\\s*}}","g");function Jt(st){let $=[];if("string"==typeof st){let ne;for(;ne=At.exec(st);)$.push(ne[1]);At.lastIndex=0}return $}function Wt(st,$,ne){const Ae=st.toString(),Ct=Ae.replace(At,(Ke,nn)=>{let un=$[nn];return $.hasOwnProperty(nn)||(ne.push(`Please provide a value for the animation param ${nn}`),un=""),un.toString()});return Ct==Ae?st:Ct}function Sn(st){const $=[];let ne=st.next();for(;!ne.done;)$.push(ne.value),ne=st.next();return $}const ye=/-+([a-z0-9])/g;function be(st){return st.replace(ye,(...$)=>$[1].toUpperCase())}function Je(st){return st.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function gt(st,$){return 0===st||0===$}function Nt(st,$,ne){const Ae=Object.keys(ne);if(Ae.length&&$.length){let Ke=$[0],nn=[];if(Ae.forEach(un=>{Ke.hasOwnProperty(un)||nn.push(un),Ke[un]=ne[un]}),nn.length)for(var Ct=1;Ct<$.length;Ct++){let un=$[Ct];nn.forEach(function(Fn){un[Fn]=ft(st,Fn)})}}return $}function $t(st,$,ne){switch($.type){case 7:return st.visitTrigger($,ne);case 0:return st.visitState($,ne);case 1:return st.visitTransition($,ne);case 2:return st.visitSequence($,ne);case 3:return st.visitGroup($,ne);case 4:return st.visitAnimate($,ne);case 5:return st.visitKeyframes($,ne);case 6:return st.visitStyle($,ne);case 8:return st.visitReference($,ne);case 9:return st.visitAnimateChild($,ne);case 10:return st.visitAnimateRef($,ne);case 11:return st.visitQuery($,ne);case 12:return st.visitStagger($,ne);default:throw new Error(`Unable to resolve animation metadata node #${$.type}`)}}function ft(st,$){return window.getComputedStyle(st)[$]}function Re(st,$){const ne=[];return"string"==typeof st?st.split(/\s*,\s*/).forEach(Ae=>function(st,$,ne){if(":"==st[0]){const Fn=function(st,$){switch(st){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(ne,Ae)=>parseFloat(Ae)>parseFloat(ne);case":decrement":return(ne,Ae)=>parseFloat(Ae) *"}}(st,ne);if("function"==typeof Fn)return void $.push(Fn);st=Fn}const Ae=st.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Ae||Ae.length<4)return ne.push(`The provided transition expression "${st}" is not supported`),$;const Ct=Ae[1],Ke=Ae[2],nn=Ae[3];$.push(Mn(Ct,nn));"<"==Ke[0]&&!("*"==Ct&&"*"==nn)&&$.push(Mn(nn,Ct))}(Ae,ne,$)):ne.push(st),ne}const hn=new Set(["true","1"]),xn=new Set(["false","0"]);function Mn(st,$){const ne=hn.has(st)||xn.has(st),Ae=hn.has($)||xn.has($);return(Ct,Ke)=>{let nn="*"==st||st==Ct,un="*"==$||$==Ke;return!nn&&ne&&"boolean"==typeof Ct&&(nn=Ct?hn.has(st):xn.has(st)),!un&&Ae&&"boolean"==typeof Ke&&(un=Ke?hn.has($):xn.has($)),nn&&un}}const pn=new RegExp("s*:selfs*,?","g");function Yn(st,$,ne){return new Tt(st).build($,ne)}class Tt{constructor($){this._driver=$}build($,ne){const Ae=new Ft(ne);return this._resetContextStyleTimingState(Ae),$t(this,ut($),Ae)}_resetContextStyleTimingState($){$.currentQuerySelector="",$.collectedStyles={},$.collectedStyles[""]={},$.currentTime=0}visitTrigger($,ne){let Ae=ne.queryCount=0,Ct=ne.depCount=0;const Ke=[],nn=[];return"@"==$.name.charAt(0)&&ne.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),$.definitions.forEach(un=>{if(this._resetContextStyleTimingState(ne),0==un.type){const Fn=un,ti=Fn.name;ti.toString().split(/\s*,\s*/).forEach(gi=>{Fn.name=gi,Ke.push(this.visitState(Fn,ne))}),Fn.name=ti}else if(1==un.type){const Fn=this.visitTransition(un,ne);Ae+=Fn.queryCount,Ct+=Fn.depCount,nn.push(Fn)}else ne.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:$.name,states:Ke,transitions:nn,queryCount:Ae,depCount:Ct,options:null}}visitState($,ne){const Ae=this.visitStyle($.styles,ne),Ct=$.options&&$.options.params||null;if(Ae.containsDynamicStyles){const Ke=new Set,nn=Ct||{};if(Ae.styles.forEach(un=>{if(V(un)){const Fn=un;Object.keys(Fn).forEach(ti=>{Jt(Fn[ti]).forEach(gi=>{nn.hasOwnProperty(gi)||Ke.add(gi)})})}}),Ke.size){const un=Sn(Ke.values());ne.errors.push(`state("${$.name}", ...) must define default values for all the following style substitutions: ${un.join(", ")}`)}}return{type:0,name:$.name,style:Ae,options:Ct?{params:Ct}:null}}visitTransition($,ne){ne.queryCount=0,ne.depCount=0;const Ae=$t(this,ut($.animation),ne);return{type:1,matchers:Re($.expr,ne.errors),animation:Ae,queryCount:ne.queryCount,depCount:ne.depCount,options:ie($.options)}}visitSequence($,ne){return{type:2,steps:$.steps.map(Ae=>$t(this,Ae,ne)),options:ie($.options)}}visitGroup($,ne){const Ae=ne.currentTime;let Ct=0;const Ke=$.steps.map(nn=>{ne.currentTime=Ae;const un=$t(this,nn,ne);return Ct=Math.max(Ct,ne.currentTime),un});return ne.currentTime=Ct,{type:3,steps:Ke,options:ie($.options)}}visitAnimate($,ne){const Ae=function(st,$){let ne=null;if(st.hasOwnProperty("duration"))ne=st;else if("number"==typeof st)return nt(Te(st,$).duration,0,"");const Ae=st;if(Ae.split(/\s+/).some(Ke=>"{"==Ke.charAt(0)&&"{"==Ke.charAt(1))){const Ke=nt(0,0,"");return Ke.dynamic=!0,Ke.strValue=Ae,Ke}return ne=ne||Te(Ae,$),nt(ne.duration,ne.delay,ne.easing)}($.timings,ne.errors);ne.currentAnimateTimings=Ae;let Ct,Ke=$.styles?$.styles:(0,N.oB)({});if(5==Ke.type)Ct=this.visitKeyframes(Ke,ne);else{let nn=$.styles,un=!1;if(!nn){un=!0;const ti={};Ae.easing&&(ti.easing=Ae.easing),nn=(0,N.oB)(ti)}ne.currentTime+=Ae.duration+Ae.delay;const Fn=this.visitStyle(nn,ne);Fn.isEmptyStep=un,Ct=Fn}return ne.currentAnimateTimings=null,{type:4,timings:Ae,style:Ct,options:null}}visitStyle($,ne){const Ae=this._makeStyleAst($,ne);return this._validateStyleAst(Ae,ne),Ae}_makeStyleAst($,ne){const Ae=[];Array.isArray($.styles)?$.styles.forEach(nn=>{"string"==typeof nn?nn==N.l3?Ae.push(nn):ne.errors.push(`The provided style string value ${nn} is not allowed.`):Ae.push(nn)}):Ae.push($.styles);let Ct=!1,Ke=null;return Ae.forEach(nn=>{if(V(nn)){const un=nn,Fn=un.easing;if(Fn&&(Ke=Fn,delete un.easing),!Ct)for(let ti in un)if(un[ti].toString().indexOf("{{")>=0){Ct=!0;break}}}),{type:6,styles:Ae,easing:Ke,offset:$.offset,containsDynamicStyles:Ct,options:null}}_validateStyleAst($,ne){const Ae=ne.currentAnimateTimings;let Ct=ne.currentTime,Ke=ne.currentTime;Ae&&Ke>0&&(Ke-=Ae.duration+Ae.delay),$.styles.forEach(nn=>{"string"!=typeof nn&&Object.keys(nn).forEach(un=>{if(!this._driver.validateStyleProperty(un))return void ne.errors.push(`The provided animation property "${un}" is not a supported CSS property for animations`);const Fn=ne.collectedStyles[ne.currentQuerySelector],ti=Fn[un];let gi=!0;ti&&(Ke!=Ct&&Ke>=ti.startTime&&Ct<=ti.endTime&&(ne.errors.push(`The CSS property "${un}" 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 "${Ke}ms" and "${Ct}ms"`),gi=!1),Ke=ti.startTime),gi&&(Fn[un]={startTime:Ke,endTime:Ct}),ne.options&&function(st,$,ne){const Ae=$.params||{},Ct=Jt(st);Ct.length&&Ct.forEach(Ke=>{Ae.hasOwnProperty(Ke)||ne.push(`Unable to resolve the local animation param ${Ke} in the given list of values`)})}(nn[un],ne.options,ne.errors)})})}visitKeyframes($,ne){const Ae={type:5,styles:[],options:null};if(!ne.currentAnimateTimings)return ne.errors.push("keyframes() must be placed inside of a call to animate()"),Ae;let Ke=0;const nn=[];let un=!1,Fn=!1,ti=0;const gi=$.steps.map(fn=>{const me=this._makeStyleAst(fn,ne);let wi=null!=me.offset?me.offset:function(st){if("string"==typeof st)return null;let $=null;if(Array.isArray(st))st.forEach(ne=>{if(V(ne)&&ne.hasOwnProperty("offset")){const Ae=ne;$=parseFloat(Ae.offset),delete Ae.offset}});else if(V(st)&&st.hasOwnProperty("offset")){const ne=st;$=parseFloat(ne.offset),delete ne.offset}return $}(me.styles),Ue=0;return null!=wi&&(Ke++,Ue=me.offset=wi),Fn=Fn||Ue<0||Ue>1,un=un||Ue0&&Ke{const wi=Ge>0?me==Xe?1:Ge*me:nn[me],Ue=wi*ue;ne.currentTime=dt+It.delay+Ue,It.duration=Ue,this._validateStyleAst(fn,ne),fn.offset=wi,Ae.styles.push(fn)}),Ae}visitReference($,ne){return{type:8,animation:$t(this,ut($.animation),ne),options:ie($.options)}}visitAnimateChild($,ne){return ne.depCount++,{type:9,options:ie($.options)}}visitAnimateRef($,ne){return{type:10,animation:this.visitReference($.animation,ne),options:ie($.options)}}visitQuery($,ne){const Ae=ne.currentQuerySelector,Ct=$.options||{};ne.queryCount++,ne.currentQuery=$;const[Ke,nn]=function(st){const $=!!st.split(/\s*,\s*/).find(ne=>":self"==ne);return $&&(st=st.replace(pn,"")),st=st.replace(/@\*/g,qe).replace(/@\w+/g,ne=>qe+"-"+ne.substr(1)).replace(/:animating/g,He),[st,$]}($.selector);ne.currentQuerySelector=Ae.length?Ae+" "+Ke:Ke,E(ne.collectedStyles,ne.currentQuerySelector,{});const un=$t(this,ut($.animation),ne);return ne.currentQuery=null,ne.currentQuerySelector=Ae,{type:11,selector:Ke,limit:Ct.limit||0,optional:!!Ct.optional,includeSelf:nn,animation:un,originalSelector:$.selector,options:ie($.options)}}visitStagger($,ne){ne.currentQuery||ne.errors.push("stagger() can only be used inside of query()");const Ae="full"===$.timings?{duration:0,delay:0,easing:"full"}:Te($.timings,ne.errors,!0);return{type:12,animation:$t(this,ut($.animation),ne),timings:Ae,options:null}}}class Ft{constructor($){this.errors=$,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 V(st){return!Array.isArray(st)&&"object"==typeof st}function ie(st){return st?(st=he(st)).params&&(st.params=function(st){return st?he(st):null}(st.params)):st={},st}function nt(st,$,ne){return{duration:st,delay:$,easing:ne}}function bt(st,$,ne,Ae,Ct,Ke,nn=null,un=!1){return{type:1,element:st,keyframes:$,preStyleProps:ne,postStyleProps:Ae,duration:Ct,delay:Ke,totalTime:Ct+Ke,easing:nn,subTimeline:un}}class an{constructor(){this._map=new Map}get($){return this._map.get($)||[]}append($,ne){let Ae=this._map.get($);Ae||this._map.set($,Ae=[]),Ae.push(...ne)}has($){return this._map.has($)}clear(){this._map.clear()}}const An=new RegExp(":enter","g"),Zi=new RegExp(":leave","g");function Ti(st,$,ne,Ae,Ct,Ke={},nn={},un,Fn,ti=[]){return(new yn).buildKeyframes(st,$,ne,Ae,Ct,Ke,nn,un,Fn,ti)}class yn{buildKeyframes($,ne,Ae,Ct,Ke,nn,un,Fn,ti,gi=[]){ti=ti||new an;const Fi=new jt($,ne,ti,Ct,Ke,gi,[]);Fi.options=Fn,Fi.currentTimeline.setStyles([nn],null,Fi.errors,Fn),$t(this,Ae,Fi);const Ge=Fi.timelines.filter(Xe=>Xe.containsAnimation());if(Ge.length&&Object.keys(un).length){const Xe=Ge[Ge.length-1];Xe.allowOnlyTimelineStyles()||Xe.setStyles([un],null,Fi.errors,Fn)}return Ge.length?Ge.map(Xe=>Xe.buildKeyframes()):[bt(ne,[],[],[],0,0,"",!1)]}visitTrigger($,ne){}visitState($,ne){}visitTransition($,ne){}visitAnimateChild($,ne){const Ae=ne.subInstructions.get(ne.element);if(Ae){const Ct=ne.createSubContext($.options),Ke=ne.currentTimeline.currentTime,nn=this._visitSubInstructions(Ae,Ct,Ct.options);Ke!=nn&&ne.transformIntoNewTimeline(nn)}ne.previousNode=$}visitAnimateRef($,ne){const Ae=ne.createSubContext($.options);Ae.transformIntoNewTimeline(),this.visitReference($.animation,Ae),ne.transformIntoNewTimeline(Ae.currentTimeline.currentTime),ne.previousNode=$}_visitSubInstructions($,ne,Ae){let Ke=ne.currentTimeline.currentTime;const nn=null!=Ae.duration?X(Ae.duration):null,un=null!=Ae.delay?X(Ae.delay):null;return 0!==nn&&$.forEach(Fn=>{const ti=ne.appendInstructionToTimeline(Fn,nn,un);Ke=Math.max(Ke,ti.duration+ti.delay)}),Ke}visitReference($,ne){ne.updateOptions($.options,!0),$t(this,$.animation,ne),ne.previousNode=$}visitSequence($,ne){const Ae=ne.subContextCount;let Ct=ne;const Ke=$.options;if(Ke&&(Ke.params||Ke.delay)&&(Ct=ne.createSubContext(Ke),Ct.transformIntoNewTimeline(),null!=Ke.delay)){6==Ct.previousNode.type&&(Ct.currentTimeline.snapshotCurrentStyles(),Ct.previousNode=qt);const nn=X(Ke.delay);Ct.delayNextStep(nn)}$.steps.length&&($.steps.forEach(nn=>$t(this,nn,Ct)),Ct.currentTimeline.applyStylesToKeyframe(),Ct.subContextCount>Ae&&Ct.transformIntoNewTimeline()),ne.previousNode=$}visitGroup($,ne){const Ae=[];let Ct=ne.currentTimeline.currentTime;const Ke=$.options&&$.options.delay?X($.options.delay):0;$.steps.forEach(nn=>{const un=ne.createSubContext($.options);Ke&&un.delayNextStep(Ke),$t(this,nn,un),Ct=Math.max(Ct,un.currentTimeline.currentTime),Ae.push(un.currentTimeline)}),Ae.forEach(nn=>ne.currentTimeline.mergeTimelineCollectedStyles(nn)),ne.transformIntoNewTimeline(Ct),ne.previousNode=$}_visitTiming($,ne){if($.dynamic){const Ae=$.strValue;return Te(ne.params?Wt(Ae,ne.params,ne.errors):Ae,ne.errors)}return{duration:$.duration,delay:$.delay,easing:$.easing}}visitAnimate($,ne){const Ae=ne.currentAnimateTimings=this._visitTiming($.timings,ne),Ct=ne.currentTimeline;Ae.delay&&(ne.incrementTime(Ae.delay),Ct.snapshotCurrentStyles());const Ke=$.style;5==Ke.type?this.visitKeyframes(Ke,ne):(ne.incrementTime(Ae.duration),this.visitStyle(Ke,ne),Ct.applyStylesToKeyframe()),ne.currentAnimateTimings=null,ne.previousNode=$}visitStyle($,ne){const Ae=ne.currentTimeline,Ct=ne.currentAnimateTimings;!Ct&&Ae.getCurrentStyleProperties().length&&Ae.forwardFrame();const Ke=Ct&&Ct.easing||$.easing;$.isEmptyStep?Ae.applyEmptyStep(Ke):Ae.setStyles($.styles,Ke,ne.errors,ne.options),ne.previousNode=$}visitKeyframes($,ne){const Ae=ne.currentAnimateTimings,Ct=ne.currentTimeline.duration,Ke=Ae.duration,un=ne.createSubContext().currentTimeline;un.easing=Ae.easing,$.styles.forEach(Fn=>{un.forwardTime((Fn.offset||0)*Ke),un.setStyles(Fn.styles,Fn.easing,ne.errors,ne.options),un.applyStylesToKeyframe()}),ne.currentTimeline.mergeTimelineCollectedStyles(un),ne.transformIntoNewTimeline(Ct+Ke),ne.previousNode=$}visitQuery($,ne){const Ae=ne.currentTimeline.currentTime,Ct=$.options||{},Ke=Ct.delay?X(Ct.delay):0;Ke&&(6===ne.previousNode.type||0==Ae&&ne.currentTimeline.getCurrentStyleProperties().length)&&(ne.currentTimeline.snapshotCurrentStyles(),ne.previousNode=qt);let nn=Ae;const un=ne.invokeQuery($.selector,$.originalSelector,$.limit,$.includeSelf,!!Ct.optional,ne.errors);ne.currentQueryTotal=un.length;let Fn=null;un.forEach((ti,gi)=>{ne.currentQueryIndex=gi;const Fi=ne.createSubContext($.options,ti);Ke&&Fi.delayNextStep(Ke),ti===ne.element&&(Fn=Fi.currentTimeline),$t(this,$.animation,Fi),Fi.currentTimeline.applyStylesToKeyframe(),nn=Math.max(nn,Fi.currentTimeline.currentTime)}),ne.currentQueryIndex=0,ne.currentQueryTotal=0,ne.transformIntoNewTimeline(nn),Fn&&(ne.currentTimeline.mergeTimelineCollectedStyles(Fn),ne.currentTimeline.snapshotCurrentStyles()),ne.previousNode=$}visitStagger($,ne){const Ae=ne.parentContext,Ct=ne.currentTimeline,Ke=$.timings,nn=Math.abs(Ke.duration),un=nn*(ne.currentQueryTotal-1);let Fn=nn*ne.currentQueryIndex;switch(Ke.duration<0?"reverse":Ke.easing){case"reverse":Fn=un-Fn;break;case"full":Fn=Ae.currentStaggerTime}const gi=ne.currentTimeline;Fn&&gi.delayNextStep(Fn);const Fi=gi.currentTime;$t(this,$.animation,ne),ne.previousNode=$,Ae.currentStaggerTime=Ct.currentTime-Fi+(Ct.startTime-Ae.currentTimeline.startTime)}}const qt={};class jt{constructor($,ne,Ae,Ct,Ke,nn,un,Fn){this._driver=$,this.element=ne,this.subInstructions=Ae,this._enterClassName=Ct,this._leaveClassName=Ke,this.errors=nn,this.timelines=un,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Fn||new on(this._driver,ne,0),un.push(this.currentTimeline)}get params(){return this.options.params}updateOptions($,ne){if(!$)return;const Ae=$;let Ct=this.options;null!=Ae.duration&&(Ct.duration=X(Ae.duration)),null!=Ae.delay&&(Ct.delay=X(Ae.delay));const Ke=Ae.params;if(Ke){let nn=Ct.params;nn||(nn=this.options.params={}),Object.keys(Ke).forEach(un=>{(!ne||!nn.hasOwnProperty(un))&&(nn[un]=Wt(Ke[un],nn,this.errors))})}}_copyOptions(){const $={};if(this.options){const ne=this.options.params;if(ne){const Ae=$.params={};Object.keys(ne).forEach(Ct=>{Ae[Ct]=ne[Ct]})}}return $}createSubContext($=null,ne,Ae){const Ct=ne||this.element,Ke=new jt(this._driver,Ct,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ct,Ae||0));return Ke.previousNode=this.previousNode,Ke.currentAnimateTimings=this.currentAnimateTimings,Ke.options=this._copyOptions(),Ke.updateOptions($),Ke.currentQueryIndex=this.currentQueryIndex,Ke.currentQueryTotal=this.currentQueryTotal,Ke.parentContext=this,this.subContextCount++,Ke}transformIntoNewTimeline($){return this.previousNode=qt,this.currentTimeline=this.currentTimeline.fork(this.element,$),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline($,ne,Ae){const Ct={duration:null!=ne?ne:$.duration,delay:this.currentTimeline.currentTime+(null!=Ae?Ae:0)+$.delay,easing:""},Ke=new kn(this._driver,$.element,$.keyframes,$.preStyleProps,$.postStyleProps,Ct,$.stretchStartingKeyframe);return this.timelines.push(Ke),Ct}incrementTime($){this.currentTimeline.forwardTime(this.currentTimeline.duration+$)}delayNextStep($){$>0&&this.currentTimeline.delayNextStep($)}invokeQuery($,ne,Ae,Ct,Ke,nn){let un=[];if(Ct&&un.push(this.element),$.length>0){$=($=$.replace(An,"."+this._enterClassName)).replace(Zi,"."+this._leaveClassName);let ti=this._driver.query(this.element,$,1!=Ae);0!==Ae&&(ti=Ae<0?ti.slice(ti.length+Ae,ti.length):ti.slice(0,Ae)),un.push(...ti)}return!Ke&&0==un.length&&nn.push(`\`query("${ne}")\` returned zero elements. (Use \`query("${ne}", { optional: true })\` if you wish to allow this.)`),un}}class on{constructor($,ne,Ae,Ct){this._driver=$,this.element=ne,this.startTime=Ae,this._elementTimelineStylesLookup=Ct,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(ne),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ne,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($){const ne=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||ne?(this.forwardTime(this.currentTime+$),ne&&this.snapshotCurrentStyles()):this.startTime+=$}fork($,ne){return this.applyStylesToKeyframe(),new on(this._driver,$,ne||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($){this.applyStylesToKeyframe(),this.duration=$,this._loadKeyframe()}_updateStyle($,ne){this._localTimelineStyles[$]=ne,this._globalTimelineStyles[$]=ne,this._styleSummary[$]={time:this.currentTime,value:ne}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep($){$&&(this._previousKeyframe.easing=$),Object.keys(this._globalTimelineStyles).forEach(ne=>{this._backFill[ne]=this._globalTimelineStyles[ne]||N.l3,this._currentKeyframe[ne]=N.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles($,ne,Ae,Ct){ne&&(this._previousKeyframe.easing=ne);const Ke=Ct&&Ct.params||{},nn=function(st,$){const ne={};let Ae;return st.forEach(Ct=>{"*"===Ct?(Ae=Ae||Object.keys($),Ae.forEach(Ke=>{ne[Ke]=N.l3})):Me(Ct,!1,ne)}),ne}($,this._globalTimelineStyles);Object.keys(nn).forEach(un=>{const Fn=Wt(nn[un],Ke,Ae);this._pendingStyles[un]=Fn,this._localTimelineStyles.hasOwnProperty(un)||(this._backFill[un]=this._globalTimelineStyles.hasOwnProperty(un)?this._globalTimelineStyles[un]:N.l3),this._updateStyle(un,Fn)})}applyStylesToKeyframe(){const $=this._pendingStyles,ne=Object.keys($);0!=ne.length&&(this._pendingStyles={},ne.forEach(Ae=>{this._currentKeyframe[Ae]=$[Ae]}),Object.keys(this._localTimelineStyles).forEach(Ae=>{this._currentKeyframe.hasOwnProperty(Ae)||(this._currentKeyframe[Ae]=this._localTimelineStyles[Ae])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach($=>{const ne=this._localTimelineStyles[$];this._pendingStyles[$]=ne,this._updateStyle($,ne)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const $=[];for(let ne in this._currentKeyframe)$.push(ne);return $}mergeTimelineCollectedStyles($){Object.keys($._styleSummary).forEach(ne=>{const Ae=this._styleSummary[ne],Ct=$._styleSummary[ne];(!Ae||Ct.time>Ae.time)&&this._updateStyle(ne,Ct.value)})}buildKeyframes(){this.applyStylesToKeyframe();const $=new Set,ne=new Set,Ae=1===this._keyframes.size&&0===this.duration;let Ct=[];this._keyframes.forEach((un,Fn)=>{const ti=Me(un,!0);Object.keys(ti).forEach(gi=>{const Fi=ti[gi];Fi==N.k1?$.add(gi):Fi==N.l3&&ne.add(gi)}),Ae||(ti.offset=Fn/this.duration),Ct.push(ti)});const Ke=$.size?Sn($.values()):[],nn=ne.size?Sn(ne.values()):[];if(Ae){const un=Ct[0],Fn=he(un);un.offset=0,Fn.offset=1,Ct=[un,Fn]}return bt(this.element,Ct,Ke,nn,this.duration,this.startTime,this.easing,!1)}}class kn extends on{constructor($,ne,Ae,Ct,Ke,nn,un=!1){super($,ne,nn.delay),this.keyframes=Ae,this.preStyleProps=Ct,this.postStyleProps=Ke,this._stretchStartingKeyframe=un,this.timings={duration:nn.duration,delay:nn.delay,easing:nn.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let $=this.keyframes,{delay:ne,duration:Ae,easing:Ct}=this.timings;if(this._stretchStartingKeyframe&&ne){const Ke=[],nn=Ae+ne,un=ne/nn,Fn=Me($[0],!1);Fn.offset=0,Ke.push(Fn);const ti=Me($[0],!1);ti.offset=xi(un),Ke.push(ti);const gi=$.length-1;for(let Fi=1;Fi<=gi;Fi++){let Ge=Me($[Fi],!1);Ge.offset=xi((ne+Ge.offset*Ae)/nn),Ke.push(Ge)}Ae=nn,ne=0,Ct="",$=Ke}return bt(this.element,$,this.preStyleProps,this.postStyleProps,Ae,ne,Ct,!0)}}function xi(st,$=3){const ne=Math.pow(10,$-1);return Math.round(st*ne)/ne}class fs{}class gr extends fs{normalizePropertyName($,ne){return be($)}normalizeStyleValue($,ne,Ae,Ct){let Ke="";const nn=Ae.toString().trim();if(Nr[ne]&&0!==Ae&&"0"!==Ae)if("number"==typeof Ae)Ke="px";else{const un=Ae.match(/^[+-]?[\d\.]+([a-z]*)$/);un&&0==un[1].length&&Ct.push(`Please provide a CSS unit value for ${$}:${Ae}`)}return nn+Ke}}const Nr=(()=>function(st){const $={};return st.forEach(ne=>$[ne]=!0),$}("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 js(st,$,ne,Ae,Ct,Ke,nn,un,Fn,ti,gi,Fi,Ge){return{type:0,element:st,triggerName:$,isRemovalTransition:Ct,fromState:ne,fromStyles:Ke,toState:Ae,toStyles:nn,timelines:un,queriedElements:Fn,preStyleProps:ti,postStyleProps:gi,totalTime:Fi,errors:Ge}}const vs={};class mr{constructor($,ne,Ae){this._triggerName=$,this.ast=ne,this._stateStyles=Ae}match($,ne,Ae,Ct){return function(st,$,ne,Ae,Ct){return st.some(Ke=>Ke($,ne,Ae,Ct))}(this.ast.matchers,$,ne,Ae,Ct)}buildStyles($,ne,Ae){const Ct=this._stateStyles["*"],Ke=this._stateStyles[$],nn=Ct?Ct.buildStyles(ne,Ae):{};return Ke?Ke.buildStyles(ne,Ae):nn}build($,ne,Ae,Ct,Ke,nn,un,Fn,ti,gi){const Fi=[],Ge=this.ast.options&&this.ast.options.params||vs,dt=this.buildStyles(Ae,un&&un.params||vs,Fi),It=Fn&&Fn.params||vs,ue=this.buildStyles(Ct,It,Fi),fn=new Set,me=new Map,wi=new Map,Ue="void"===Ct,wt={params:Object.assign(Object.assign({},Ge),It)},Bt=gi?[]:Ti($,ne,this.ast.animation,Ke,nn,dt,ue,wt,ti,Fi);let Ut=0;if(Bt.forEach(In=>{Ut=Math.max(In.duration+In.delay,Ut)}),Fi.length)return js(ne,this._triggerName,Ae,Ct,Ue,dt,ue,[],[],me,wi,Ut,Fi);Bt.forEach(In=>{const En=In.element,Jn=E(me,En,{});In.preStyleProps.forEach(as=>Jn[as]=!0);const mi=E(wi,En,{});In.postStyleProps.forEach(as=>mi[as]=!0),En!==ne&&fn.add(En)});const mn=Sn(fn.values());return js(ne,this._triggerName,Ae,Ct,Ue,dt,ue,Bt,mn,me,wi,Ut)}}class Hi{constructor($,ne,Ae){this.styles=$,this.defaultParams=ne,this.normalizer=Ae}buildStyles($,ne){const Ae={},Ct=he(this.defaultParams);return Object.keys($).forEach(Ke=>{const nn=$[Ke];null!=nn&&(Ct[Ke]=nn)}),this.styles.styles.forEach(Ke=>{if("string"!=typeof Ke){const nn=Ke;Object.keys(nn).forEach(un=>{let Fn=nn[un];Fn.length>1&&(Fn=Wt(Fn,Ct,ne));const ti=this.normalizer.normalizePropertyName(un,ne);Fn=this.normalizer.normalizeStyleValue(un,ti,Fn,ne),Ae[ti]=Fn})}}),Ae}}class ur{constructor($,ne,Ae){this.name=$,this.ast=ne,this._normalizer=Ae,this.transitionFactories=[],this.states={},ne.states.forEach(Ct=>{this.states[Ct.name]=new Hi(Ct.style,Ct.options&&Ct.options.params||{},Ae)}),Ps(this.states,"true","1"),Ps(this.states,"false","0"),ne.transitions.forEach(Ct=>{this.transitionFactories.push(new mr($,Ct,this.states))}),this.fallbackTransition=function(st,$,ne){return new mr(st,{type:1,animation:{type:2,steps:[],options:null},matchers:[(nn,un)=>!0],options:null,queryCount:0,depCount:0},$)}($,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition($,ne,Ae,Ct){return this.transitionFactories.find(nn=>nn.match($,ne,Ae,Ct))||null}matchStyles($,ne,Ae){return this.fallbackTransition.buildStyles($,ne,Ae)}}function Ps(st,$,ne){st.hasOwnProperty($)?st.hasOwnProperty(ne)||(st[ne]=st[$]):st.hasOwnProperty(ne)&&(st[$]=st[ne])}const Sr=new an;class Ns{constructor($,ne,Ae){this.bodyNode=$,this._driver=ne,this._normalizer=Ae,this._animations={},this._playersById={},this.players=[]}register($,ne){const Ae=[],Ct=Yn(this._driver,ne,Ae);if(Ae.length)throw new Error(`Unable to build the animation due to the following errors: ${Ae.join("\n")}`);this._animations[$]=Ct}_buildPlayer($,ne,Ae){const Ct=$.element,Ke=r(0,this._normalizer,0,$.keyframes,ne,Ae);return this._driver.animate(Ct,Ke,$.duration,$.delay,$.easing,[],!0)}create($,ne,Ae={}){const Ct=[],Ke=this._animations[$];let nn;const un=new Map;if(Ke?(nn=Ti(this._driver,ne,Ke,it,ct,{},{},Ae,Sr,Ct),nn.forEach(gi=>{const Fi=E(un,gi.element,{});gi.postStyleProps.forEach(Ge=>Fi[Ge]=null)})):(Ct.push("The requested animation doesn't exist or has already been destroyed"),nn=[]),Ct.length)throw new Error(`Unable to create the animation due to the following errors: ${Ct.join("\n")}`);un.forEach((gi,Fi)=>{Object.keys(gi).forEach(Ge=>{gi[Ge]=this._driver.computeStyle(Fi,Ge,N.l3)})});const ti=K(nn.map(gi=>{const Fi=un.get(gi.element);return this._buildPlayer(gi,{},Fi)}));return this._playersById[$]=ti,ti.onDestroy(()=>this.destroy($)),this.players.push(ti),ti}destroy($){const ne=this._getPlayer($);ne.destroy(),delete this._playersById[$];const Ae=this.players.indexOf(ne);Ae>=0&&this.players.splice(Ae,1)}_getPlayer($){const ne=this._playersById[$];if(!ne)throw new Error(`Unable to find the timeline player referenced by ${$}`);return ne}listen($,ne,Ae,Ct){const Ke=H(ne,"","","");return O(this._getPlayer($),Ae,Ke,Ct),()=>{}}command($,ne,Ae,Ct){if("register"==Ae)return void this.register($,Ct[0]);if("create"==Ae)return void this.create($,ne,Ct[0]||{});const Ke=this._getPlayer($);switch(Ae){case"play":Ke.play();break;case"pause":Ke.pause();break;case"reset":Ke.reset();break;case"restart":Ke.restart();break;case"finish":Ke.finish();break;case"init":Ke.init();break;case"setPosition":Ke.setPosition(parseFloat(Ct[0]));break;case"destroy":this.destroy($)}}}const Or="ng-animate-queued",Ri="ng-animate-disabled",wn=[],On={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_i={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vn="__ng_removed";class qi{constructor($,ne=""){this.namespaceId=ne;const Ae=$&&$.hasOwnProperty("value");if(this.value=null!=(st=Ae?$.value:$)?st:null,Ae){const Ke=he($);delete Ke.value,this.options=Ke}else this.options={};var st;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions($){const ne=$.params;if(ne){const Ae=this.options.params;Object.keys(ne).forEach(Ct=>{null==Ae[Ct]&&(Ae[Ct]=ne[Ct])})}}}const Qi="void",Us=new qi(Qi);class vr{constructor($,ne,Ae){this.id=$,this.hostElement=ne,this._engine=Ae,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+$,Xs(ne,this._hostClassName)}listen($,ne,Ae,Ct){if(!this._triggers.hasOwnProperty(ne))throw new Error(`Unable to listen on the animation trigger event "${Ae}" because the animation trigger "${ne}" doesn't exist!`);if(null==Ae||0==Ae.length)throw new Error(`Unable to listen on the animation trigger "${ne}" because the provided event is undefined!`);if("start"!=(st=Ae)&&"done"!=st)throw new Error(`The provided animation trigger event "${Ae}" for the animation trigger "${ne}" is not supported!`);var st;const Ke=E(this._elementListeners,$,[]),nn={name:ne,phase:Ae,callback:Ct};Ke.push(nn);const un=E(this._engine.statesByElement,$,{});return un.hasOwnProperty(ne)||(Xs($,g),Xs($,g+"-"+ne),un[ne]=Us),()=>{this._engine.afterFlush(()=>{const Fn=Ke.indexOf(nn);Fn>=0&&Ke.splice(Fn,1),this._triggers[ne]||delete un[ne]})}}register($,ne){return!this._triggers[$]&&(this._triggers[$]=ne,!0)}_getTrigger($){const ne=this._triggers[$];if(!ne)throw new Error(`The provided animation trigger "${$}" has not been registered!`);return ne}trigger($,ne,Ae,Ct=!0){const Ke=this._getTrigger(ne),nn=new ds(this.id,ne,$);let un=this._engine.statesByElement.get($);un||(Xs($,g),Xs($,g+"-"+ne),this._engine.statesByElement.set($,un={}));let Fn=un[ne];const ti=new qi(Ae,this.id);if(!(Ae&&Ae.hasOwnProperty("value"))&&Fn&&ti.absorbOptions(Fn.options),un[ne]=ti,Fn||(Fn=Us),ti.value!==Qi&&Fn.value===ti.value){if(!function(st,$){const ne=Object.keys(st),Ae=Object.keys($);if(ne.length!=Ae.length)return!1;for(let Ct=0;Ct{We($,ue),ot($,fn)})}return}const Ge=E(this._engine.playersByElement,$,[]);Ge.forEach(It=>{It.namespaceId==this.id&&It.triggerName==ne&&It.queued&&It.destroy()});let Xe=Ke.matchTransition(Fn.value,ti.value,$,ti.params),dt=!1;if(!Xe){if(!Ct)return;Xe=Ke.fallbackTransition,dt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:$,triggerName:ne,transition:Xe,fromState:Fn,toState:ti,player:nn,isFallbackTransition:dt}),dt||(Xs($,Or),nn.onStart(()=>{$i($,Or)})),nn.onDone(()=>{let It=this.players.indexOf(nn);It>=0&&this.players.splice(It,1);const ue=this._engine.playersByElement.get($);if(ue){let fn=ue.indexOf(nn);fn>=0&&ue.splice(fn,1)}}),this.players.push(nn),Ge.push(nn),nn}deregister($){delete this._triggers[$],this._engine.statesByElement.forEach((ne,Ae)=>{delete ne[$]}),this._elementListeners.forEach((ne,Ae)=>{this._elementListeners.set(Ae,ne.filter(Ct=>Ct.name!=$))})}clearElementCache($){this._engine.statesByElement.delete($),this._elementListeners.delete($);const ne=this._engine.playersByElement.get($);ne&&(ne.forEach(Ae=>Ae.destroy()),this._engine.playersByElement.delete($))}_signalRemovalForInnerTriggers($,ne){const Ae=this._engine.driver.query($,qe,!0);Ae.forEach(Ct=>{if(Ct[vn])return;const Ke=this._engine.fetchNamespacesByElement(Ct);Ke.size?Ke.forEach(nn=>nn.triggerLeaveAnimation(Ct,ne,!1,!0)):this.clearElementCache(Ct)}),this._engine.afterFlushAnimationsDone(()=>Ae.forEach(Ct=>this.clearElementCache(Ct)))}triggerLeaveAnimation($,ne,Ae,Ct){const Ke=this._engine.statesByElement.get($);if(Ke){const nn=[];if(Object.keys(Ke).forEach(un=>{if(this._triggers[un]){const Fn=this.trigger($,un,Qi,Ct);Fn&&nn.push(Fn)}}),nn.length)return this._engine.markElementAsRemoved(this.id,$,!0,ne),Ae&&K(nn).onDone(()=>this._engine.processLeaveNode($)),!0}return!1}prepareLeaveAnimationListeners($){const ne=this._elementListeners.get($),Ae=this._engine.statesByElement.get($);if(ne&&Ae){const Ct=new Set;ne.forEach(Ke=>{const nn=Ke.name;if(Ct.has(nn))return;Ct.add(nn);const Fn=this._triggers[nn].fallbackTransition,ti=Ae[nn]||Us,gi=new qi(Qi),Fi=new ds(this.id,nn,$);this._engine.totalQueuedPlayers++,this._queue.push({element:$,triggerName:nn,transition:Fn,fromState:ti,toState:gi,player:Fi,isFallbackTransition:!0})})}}removeNode($,ne){const Ae=this._engine;if($.childElementCount&&this._signalRemovalForInnerTriggers($,ne),this.triggerLeaveAnimation($,ne,!0))return;let Ct=!1;if(Ae.totalAnimations){const Ke=Ae.players.length?Ae.playersByQueriedElement.get($):[];if(Ke&&Ke.length)Ct=!0;else{let nn=$;for(;nn=nn.parentNode;)if(Ae.statesByElement.get(nn)){Ct=!0;break}}}if(this.prepareLeaveAnimationListeners($),Ct)Ae.markElementAsRemoved(this.id,$,!1,ne);else{const Ke=$[vn];(!Ke||Ke===On)&&(Ae.afterFlush(()=>this.clearElementCache($)),Ae.destroyInnerAnimations($),Ae._onRemovalComplete($,ne))}}insertNode($,ne){Xs($,this._hostClassName)}drainQueuedTransitions($){const ne=[];return this._queue.forEach(Ae=>{const Ct=Ae.player;if(Ct.destroyed)return;const Ke=Ae.element,nn=this._elementListeners.get(Ke);nn&&nn.forEach(un=>{if(un.name==Ae.triggerName){const Fn=H(Ke,Ae.triggerName,Ae.fromState.value,Ae.toState.value);Fn._data=$,O(Ae.player,un.phase,Fn,un.callback)}}),Ct.markedForDestroy?this._engine.afterFlush(()=>{Ct.destroy()}):ne.push(Ae)}),this._queue=[],ne.sort((Ae,Ct)=>{const Ke=Ae.transition.ast.depCount,nn=Ct.transition.ast.depCount;return 0==Ke||0==nn?Ke-nn:this._engine.driver.containsElement(Ae.element,Ct.element)?1:-1})}destroy($){this.players.forEach(ne=>ne.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,$)}elementContainsData($){let ne=!1;return this._elementListeners.has($)&&(ne=!0),ne=!!this._queue.find(Ae=>Ae.element===$)||ne,ne}}class Ss{constructor($,ne,Ae){this.bodyNode=$,this.driver=ne,this._normalizer=Ae,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=(Ct,Ke)=>{}}_onRemovalComplete($,ne){this.onRemovalComplete($,ne)}get queuedPlayers(){const $=[];return this._namespaceList.forEach(ne=>{ne.players.forEach(Ae=>{Ae.queued&&$.push(Ae)})}),$}createNamespace($,ne){const Ae=new vr($,ne,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ne)?this._balanceNamespaceList(Ae,ne):(this.newHostElements.set(ne,Ae),this.collectEnterElement(ne)),this._namespaceLookup[$]=Ae}_balanceNamespaceList($,ne){const Ae=this._namespaceList.length-1;if(Ae>=0){let Ct=!1;for(let Ke=Ae;Ke>=0;Ke--)if(this.driver.containsElement(this._namespaceList[Ke].hostElement,ne)){this._namespaceList.splice(Ke+1,0,$),Ct=!0;break}Ct||this._namespaceList.splice(0,0,$)}else this._namespaceList.push($);return this.namespacesByHostElement.set(ne,$),$}register($,ne){let Ae=this._namespaceLookup[$];return Ae||(Ae=this.createNamespace($,ne)),Ae}registerTrigger($,ne,Ae){let Ct=this._namespaceLookup[$];Ct&&Ct.register(ne,Ae)&&this.totalAnimations++}destroy($,ne){if(!$)return;const Ae=this._fetchNamespace($);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ae.hostElement),delete this._namespaceLookup[$];const Ct=this._namespaceList.indexOf(Ae);Ct>=0&&this._namespaceList.splice(Ct,1)}),this.afterFlushAnimationsDone(()=>Ae.destroy(ne))}_fetchNamespace($){return this._namespaceLookup[$]}fetchNamespacesByElement($){const ne=new Set,Ae=this.statesByElement.get($);if(Ae){const Ct=Object.keys(Ae);for(let Ke=0;Ke=0&&this.collectedLeaveElements.splice(nn,1)}if($){const nn=this._fetchNamespace($);nn&&nn.insertNode(ne,Ae)}Ct&&this.collectEnterElement(ne)}collectEnterElement($){this.collectedEnterElements.push($)}markElementAsDisabled($,ne){ne?this.disabledNodes.has($)||(this.disabledNodes.add($),Xs($,Ri)):this.disabledNodes.has($)&&(this.disabledNodes.delete($),$i($,Ri))}removeNode($,ne,Ae,Ct){if(Tr(ne)){const Ke=$?this._fetchNamespace($):null;if(Ke?Ke.removeNode(ne,Ct):this.markElementAsRemoved($,ne,!1,Ct),Ae){const nn=this.namespacesByHostElement.get(ne);nn&&nn.id!==$&&nn.removeNode(ne,Ct)}}else this._onRemovalComplete(ne,Ct)}markElementAsRemoved($,ne,Ae,Ct){this.collectedLeaveElements.push(ne),ne[vn]={namespaceId:$,setForRemoval:Ct,hasAnimation:Ae,removedBeforeQueried:!1}}listen($,ne,Ae,Ct,Ke){return Tr(ne)?this._fetchNamespace($).listen(ne,Ae,Ct,Ke):()=>{}}_buildInstruction($,ne,Ae,Ct,Ke){return $.transition.build(this.driver,$.element,$.fromState.value,$.toState.value,Ae,Ct,$.fromState.options,$.toState.options,ne,Ke)}destroyInnerAnimations($){let ne=this.driver.query($,qe,!0);ne.forEach(Ae=>this.destroyActiveAnimationsForElement(Ae)),0!=this.playersByQueriedElement.size&&(ne=this.driver.query($,He,!0),ne.forEach(Ae=>this.finishActiveQueriedAnimationOnElement(Ae)))}destroyActiveAnimationsForElement($){const ne=this.playersByElement.get($);ne&&ne.forEach(Ae=>{Ae.queued?Ae.markedForDestroy=!0:Ae.destroy()})}finishActiveQueriedAnimationOnElement($){const ne=this.playersByQueriedElement.get($);ne&&ne.forEach(Ae=>Ae.finish())}whenRenderingDone(){return new Promise($=>{if(this.players.length)return K(this.players).onDone(()=>$());$()})}processLeaveNode($){var ne;const Ae=$[vn];if(Ae&&Ae.setForRemoval){if($[vn]=On,Ae.namespaceId){this.destroyInnerAnimations($);const Ct=this._fetchNamespace(Ae.namespaceId);Ct&&Ct.clearElementCache($)}this._onRemovalComplete($,Ae.setForRemoval)}(null===(ne=$.classList)||void 0===ne?void 0:ne.contains(Ri))&&this.markElementAsDisabled($,!1),this.driver.query($,".ng-animate-disabled",!0).forEach(Ct=>{this.markElementAsDisabled(Ct,!1)})}flush($=-1){let ne=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ae,Ct)=>this._balanceNamespaceList(Ae,Ct)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ae=0;AeAe()),this._flushFns=[],this._whenQuietFns.length){const Ae=this._whenQuietFns;this._whenQuietFns=[],ne.length?K(ne).onDone(()=>{Ae.forEach(Ct=>Ct())}):Ae.forEach(Ct=>Ct())}}reportError($){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${$.join("\n")}`)}_flushAnimations($,ne){const Ae=new an,Ct=[],Ke=new Map,nn=[],un=new Map,Fn=new Map,ti=new Map,gi=new Set;this.disabledNodes.forEach(Di=>{gi.add(Di);const Ki=this.driver.query(Di,".ng-animate-queued",!0);for(let ms=0;ms{const ms=it+It++;dt.set(Ki,ms),Di.forEach(hs=>Xs(hs,ms))});const ue=[],fn=new Set,me=new Set;for(let Di=0;Difn.add(hs)):me.add(Ki))}const wi=new Map,Ue=Rr(Ge,Array.from(fn));Ue.forEach((Di,Ki)=>{const ms=ct+It++;wi.set(Ki,ms),Di.forEach(hs=>Xs(hs,ms))}),$.push(()=>{Xe.forEach((Di,Ki)=>{const ms=dt.get(Ki);Di.forEach(hs=>$i(hs,ms))}),Ue.forEach((Di,Ki)=>{const ms=wi.get(Ki);Di.forEach(hs=>$i(hs,ms))}),ue.forEach(Di=>{this.processLeaveNode(Di)})});const wt=[],Bt=[];for(let Di=this._namespaceList.length-1;Di>=0;Di--)this._namespaceList[Di].drainQueuedTransitions(ne).forEach(ms=>{const hs=ms.player,Wn=ms.element;if(wt.push(hs),this.collectedEnterElements.length){const cs=Wn[vn];if(cs&&cs.setForMove)return void hs.destroy()}const br=!Fi||!this.driver.containsElement(Fi,Wn),_s=wi.get(Wn),zr=dt.get(Wn),Vi=this._buildInstruction(ms,Ae,zr,_s,br);if(Vi.errors&&Vi.errors.length)return void Bt.push(Vi);if(br)return hs.onStart(()=>We(Wn,Vi.fromStyles)),hs.onDestroy(()=>ot(Wn,Vi.toStyles)),void Ct.push(hs);if(ms.isFallbackTransition)return hs.onStart(()=>We(Wn,Vi.fromStyles)),hs.onDestroy(()=>ot(Wn,Vi.toStyles)),void Ct.push(hs);const sr=[];Vi.timelines.forEach(cs=>{cs.stretchStartingKeyframe=!0,this.disabledNodes.has(cs.element)||sr.push(cs)}),Vi.timelines=sr,Ae.append(Wn,Vi.timelines),nn.push({instruction:Vi,player:hs,element:Wn}),Vi.queriedElements.forEach(cs=>E(un,cs,[]).push(hs)),Vi.preStyleProps.forEach((cs,xa)=>{const _r=Object.keys(cs);if(_r.length){let ro=Fn.get(xa);ro||Fn.set(xa,ro=new Set),_r.forEach(_o=>ro.add(_o))}}),Vi.postStyleProps.forEach((cs,xa)=>{const _r=Object.keys(cs);let ro=ti.get(xa);ro||ti.set(xa,ro=new Set),_r.forEach(_o=>ro.add(_o))})});if(Bt.length){const Di=[];Bt.forEach(Ki=>{Di.push(`@${Ki.triggerName} has failed due to:\n`),Ki.errors.forEach(ms=>Di.push(`- ${ms}\n`))}),wt.forEach(Ki=>Ki.destroy()),this.reportError(Di)}const Ut=new Map,mn=new Map;nn.forEach(Di=>{const Ki=Di.element;Ae.has(Ki)&&(mn.set(Ki,Ki),this._beforeAnimationBuild(Di.player.namespaceId,Di.instruction,Ut))}),Ct.forEach(Di=>{const Ki=Di.element;this._getPreviousPlayers(Ki,!1,Di.namespaceId,Di.triggerName,null).forEach(hs=>{E(Ut,Ki,[]).push(hs),hs.destroy()})});const In=ue.filter(Di=>so(Di,Fn,ti)),En=new Map;No(En,this.driver,me,ti,N.l3).forEach(Di=>{so(Di,Fn,ti)&&In.push(Di)});const mi=new Map;Xe.forEach((Di,Ki)=>{No(mi,this.driver,new Set(Di),Fn,N.k1)}),In.forEach(Di=>{const Ki=En.get(Di),ms=mi.get(Di);En.set(Di,Object.assign(Object.assign({},Ki),ms))});const as=[],Ji=[],ls={};nn.forEach(Di=>{const{element:Ki,player:ms,instruction:hs}=Di;if(Ae.has(Ki)){if(gi.has(Ki))return ms.onDestroy(()=>ot(Ki,hs.toStyles)),ms.disabled=!0,ms.overrideTotalTime(hs.totalTime),void Ct.push(ms);let Wn=ls;if(mn.size>1){let _s=Ki;const zr=[];for(;_s=_s.parentNode;){const Vi=mn.get(_s);if(Vi){Wn=Vi;break}zr.push(_s)}zr.forEach(Vi=>mn.set(Vi,Wn))}const br=this._buildAnimation(ms.namespaceId,hs,Ut,Ke,mi,En);if(ms.setRealPlayer(br),Wn===ls)as.push(ms);else{const _s=this.playersByElement.get(Wn);_s&&_s.length&&(ms.parentPlayer=K(_s)),Ct.push(ms)}}else We(Ki,hs.fromStyles),ms.onDestroy(()=>ot(Ki,hs.toStyles)),Ji.push(ms),gi.has(Ki)&&Ct.push(ms)}),Ji.forEach(Di=>{const Ki=Ke.get(Di.element);if(Ki&&Ki.length){const ms=K(Ki);Di.setRealPlayer(ms)}}),Ct.forEach(Di=>{Di.parentPlayer?Di.syncPlayerEvents(Di.parentPlayer):Di.destroy()});for(let Di=0;Di!br.destroyed);Wn.length?Ws(this,Ki,Wn):this.processLeaveNode(Ki)}return ue.length=0,as.forEach(Di=>{this.players.push(Di),Di.onDone(()=>{Di.destroy();const Ki=this.players.indexOf(Di);this.players.splice(Ki,1)}),Di.play()}),as}elementContainsData($,ne){let Ae=!1;const Ct=ne[vn];return Ct&&Ct.setForRemoval&&(Ae=!0),this.playersByElement.has(ne)&&(Ae=!0),this.playersByQueriedElement.has(ne)&&(Ae=!0),this.statesByElement.has(ne)&&(Ae=!0),this._fetchNamespace($).elementContainsData(ne)||Ae}afterFlush($){this._flushFns.push($)}afterFlushAnimationsDone($){this._whenQuietFns.push($)}_getPreviousPlayers($,ne,Ae,Ct,Ke){let nn=[];if(ne){const un=this.playersByQueriedElement.get($);un&&(nn=un)}else{const un=this.playersByElement.get($);if(un){const Fn=!Ke||Ke==Qi;un.forEach(ti=>{ti.queued||!Fn&&ti.triggerName!=Ct||nn.push(ti)})}}return(Ae||Ct)&&(nn=nn.filter(un=>!(Ae&&Ae!=un.namespaceId||Ct&&Ct!=un.triggerName))),nn}_beforeAnimationBuild($,ne,Ae){const Ke=ne.element,nn=ne.isRemovalTransition?void 0:$,un=ne.isRemovalTransition?void 0:ne.triggerName;for(const Fn of ne.timelines){const ti=Fn.element,gi=ti!==Ke,Fi=E(Ae,ti,[]);this._getPreviousPlayers(ti,gi,nn,un,ne.toState).forEach(Xe=>{const dt=Xe.getRealPlayer();dt.beforeDestroy&&dt.beforeDestroy(),Xe.destroy(),Fi.push(Xe)})}We(Ke,ne.fromStyles)}_buildAnimation($,ne,Ae,Ct,Ke,nn){const un=ne.triggerName,Fn=ne.element,ti=[],gi=new Set,Fi=new Set,Ge=ne.timelines.map(dt=>{const It=dt.element;gi.add(It);const ue=It[vn];if(ue&&ue.removedBeforeQueried)return new N.ZN(dt.duration,dt.delay);const fn=It!==Fn,me=function(st){const $=[];return er(st,$),$}((Ae.get(It)||wn).map(Ut=>Ut.getRealPlayer())).filter(Ut=>!!Ut.element&&Ut.element===It),wi=Ke.get(It),Ue=nn.get(It),wt=r(0,this._normalizer,0,dt.keyframes,wi,Ue),Bt=this._buildPlayer(dt,wt,me);if(dt.subTimeline&&Ct&&Fi.add(It),fn){const Ut=new ds($,un,It);Ut.setRealPlayer(Bt),ti.push(Ut)}return Bt});ti.forEach(dt=>{E(this.playersByQueriedElement,dt.element,[]).push(dt),dt.onDone(()=>function(st,$,ne){let Ae;if(st instanceof Map){if(Ae=st.get($),Ae){if(Ae.length){const Ct=Ae.indexOf(ne);Ae.splice(Ct,1)}0==Ae.length&&st.delete($)}}else if(Ae=st[$],Ae){if(Ae.length){const Ct=Ae.indexOf(ne);Ae.splice(Ct,1)}0==Ae.length&&delete st[$]}return Ae}(this.playersByQueriedElement,dt.element,dt))}),gi.forEach(dt=>Xs(dt,Ve));const Xe=K(Ge);return Xe.onDestroy(()=>{gi.forEach(dt=>$i(dt,Ve)),ot(Fn,ne.toStyles)}),Fi.forEach(dt=>{E(Ct,dt,[]).push(Xe)}),Xe}_buildPlayer($,ne,Ae){return ne.length>0?this.driver.animate($.element,ne,$.duration,$.delay,$.easing,Ae):new N.ZN($.duration,$.delay)}}class ds{constructor($,ne,Ae){this.namespaceId=$,this.triggerName=ne,this.element=Ae,this._player=new N.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer($){this._containsRealPlayer||(this._player=$,Object.keys(this._queuedCallbacks).forEach(ne=>{this._queuedCallbacks[ne].forEach(Ae=>O($,ne,void 0,Ae))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime($.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime($){this.totalTime=$}syncPlayerEvents($){const ne=this._player;ne.triggerCallback&&$.onStart(()=>ne.triggerCallback("start")),$.onDone(()=>this.finish()),$.onDestroy(()=>this.destroy())}_queueEvent($,ne){E(this._queuedCallbacks,$,[]).push(ne)}onDone($){this.queued&&this._queueEvent("done",$),this._player.onDone($)}onStart($){this.queued&&this._queueEvent("start",$),this._player.onStart($)}onDestroy($){this.queued&&this._queueEvent("destroy",$),this._player.onDestroy($)}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($){this.queued||this._player.setPosition($)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback($){const ne=this._player;ne.triggerCallback&&ne.triggerCallback($)}}function Tr(st){return st&&1===st.nodeType}function eo(st,$){const ne=st.style.display;return st.style.display=null!=$?$:"none",ne}function No(st,$,ne,Ae,Ct){const Ke=[];ne.forEach(Fn=>Ke.push(eo(Fn)));const nn=[];Ae.forEach((Fn,ti)=>{const gi={};Fn.forEach(Fi=>{const Ge=gi[Fi]=$.computeStyle(ti,Fi,Ct);(!Ge||0==Ge.length)&&(ti[vn]=_i,nn.push(ti))}),st.set(ti,gi)});let un=0;return ne.forEach(Fn=>eo(Fn,Ke[un++])),nn}function Rr(st,$){const ne=new Map;if(st.forEach(un=>ne.set(un,[])),0==$.length)return ne;const Ct=new Set($),Ke=new Map;function nn(un){if(!un)return 1;let Fn=Ke.get(un);if(Fn)return Fn;const ti=un.parentNode;return Fn=ne.has(ti)?ti:Ct.has(ti)?1:nn(ti),Ke.set(un,Fn),Fn}return $.forEach(un=>{const Fn=nn(un);1!==Fn&&ne.get(Fn).push(un)}),ne}function Xs(st,$){var ne;null===(ne=st.classList)||void 0===ne||ne.add($)}function $i(st,$){var ne;null===(ne=st.classList)||void 0===ne||ne.remove($)}function Ws(st,$,ne){K(ne).onDone(()=>st.processLeaveNode($))}function er(st,$){for(let ne=0;neCt.add(Ke)):$.set(st,Ae),ne.delete(st),!0}class ao{constructor($,ne,Ae){this.bodyNode=$,this._driver=ne,this._normalizer=Ae,this._triggerCache={},this.onRemovalComplete=(Ct,Ke)=>{},this._transitionEngine=new Ss($,ne,Ae),this._timelineEngine=new Ns($,ne,Ae),this._transitionEngine.onRemovalComplete=(Ct,Ke)=>this.onRemovalComplete(Ct,Ke)}registerTrigger($,ne,Ae,Ct,Ke){const nn=$+"-"+Ct;let un=this._triggerCache[nn];if(!un){const Fn=[],ti=Yn(this._driver,Ke,Fn);if(Fn.length)throw new Error(`The animation trigger "${Ct}" has failed to build due to the following errors:\n - ${Fn.join("\n - ")}`);un=function(st,$,ne){return new ur(st,$,ne)}(Ct,ti,this._normalizer),this._triggerCache[nn]=un}this._transitionEngine.registerTrigger(ne,Ct,un)}register($,ne){this._transitionEngine.register($,ne)}destroy($,ne){this._transitionEngine.destroy($,ne)}onInsert($,ne,Ae,Ct){this._transitionEngine.insertNode($,ne,Ae,Ct)}onRemove($,ne,Ae,Ct){this._transitionEngine.removeNode($,ne,Ct||!1,Ae)}disableAnimations($,ne){this._transitionEngine.markElementAsDisabled($,ne)}process($,ne,Ae,Ct){if("@"==Ae.charAt(0)){const[Ke,nn]=ee(Ae);this._timelineEngine.command(Ke,ne,nn,Ct)}else this._transitionEngine.trigger($,ne,Ae,Ct)}listen($,ne,Ae,Ct,Ke){if("@"==Ae.charAt(0)){const[nn,un]=ee(Ae);return this._timelineEngine.listen(nn,ne,un,Ke)}return this._transitionEngine.listen($,ne,Ae,Ct,Ke)}flush($=-1){this._transitionEngine.flush($)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function vo(st,$){let ne=null,Ae=null;return Array.isArray($)&&$.length?(ne=Wr($[0]),$.length>1&&(Ae=Wr($[$.length-1]))):$&&(ne=Wr($)),ne||Ae?new zo(st,ne,Ae):null}let zo=(()=>{class st{constructor(ne,Ae,Ct){this._element=ne,this._startStyles=Ae,this._endStyles=Ct,this._state=0;let Ke=st.initialStylesByElement.get(ne);Ke||st.initialStylesByElement.set(ne,Ke={}),this._initialStyles=Ke}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(st.initialStylesByElement.delete(this._element),this._startStyles&&(We(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(We(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return st.initialStylesByElement=new WeakMap,st})();function Wr(st){let $=null;const ne=Object.keys(st);for(let Ae=0;Aethis._handleCallback(Fn)}apply(){(function(st,$){const ne=ii(st,"").trim();let Ae=0;ne.length&&(function(st,$){let ne=0;for(let Ae=0;Ae=this._delay&&Ae>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Cn(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(st,$){const Ae=ii(st,"").split(","),Ct=en(Ae,$);Ct>=0&&(Ae.splice(Ct,1),ai(st,"",Ae.join(",")))}(this._element,this._name))}}function Be(st,$,ne){ai(st,"PlayState",ne,Yt(st,$))}function Yt(st,$){const ne=ii(st,"");return ne.indexOf(",")>0?en(ne.split(","),$):en([ne],$)}function en(st,$){for(let ne=0;ne=0)return ne;return-1}function Cn(st,$,ne){ne?st.removeEventListener(de,$):st.addEventListener(de,$)}function ai(st,$,ne,Ae){const Ct=ln+$;if(null!=Ae){const Ke=st.style[Ct];if(Ke.length){const nn=Ke.split(",");nn[Ae]=ne,ne=nn.join(",")}}st.style[Ct]=ne}function ii(st,$){return st.style[ln+$]||""}class os{constructor($,ne,Ae,Ct,Ke,nn,un,Fn){this.element=$,this.keyframes=ne,this.animationName=Ae,this._duration=Ct,this._delay=Ke,this._finalStyles=un,this._specialStyles=Fn,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=nn||"linear",this.totalTime=Ct+Ke,this._buildStyler()}onStart($){this._onStartFns.push($)}onDone($){this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach($=>$()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach($=>$()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition($){this._styler.setPosition($)}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 cn(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback($){const ne="start"==$?this._onStartFns:this._onDoneFns;ne.forEach(Ae=>Ae()),ne.length=0}beforeDestroy(){this.init();const $={};if(this.hasStarted()){const ne=this._state>=3;Object.keys(this._finalStyles).forEach(Ae=>{"offset"!=Ae&&($[Ae]=ne?this._finalStyles[Ae]:ft(this.element,Ae))})}this.currentSnapshot=$}}class ws extends N.ZN{constructor($,ne){super(),this.element=$,this._startingStyles={},this.__initialized=!1,this._styles=fe(ne)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach($=>{this._startingStyles[$]=this.element.style[$]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach($=>this.element.style.setProperty($,this._styles[$])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach($=>{const ne=this._startingStyles[$];ne?this.element.style.setProperty($,ne):this.element.style.removeProperty($)}),this._startingStyles=null,super.destroy())}}class hr{constructor(){this._count=0}validateStyleProperty($){return L($)}matchesElement($,ne){return!1}containsElement($,ne){return we($,ne)}query($,ne,Ae){return ge($,ne,Ae)}computeStyle($,ne,Ae){return window.getComputedStyle($)[ne]}buildKeyframeElement($,ne,Ae){Ae=Ae.map(un=>fe(un));let Ct=`@keyframes ${ne} {\n`,Ke="";Ae.forEach(un=>{Ke=" ";const Fn=parseFloat(un.offset);Ct+=`${Ke}${100*Fn}% {\n`,Ke+=" ",Object.keys(un).forEach(ti=>{const gi=un[ti];switch(ti){case"offset":return;case"easing":return void(gi&&(Ct+=`${Ke}animation-timing-function: ${gi};\n`));default:return void(Ct+=`${Ke}${ti}: ${gi};\n`)}}),Ct+=`${Ke}}\n`}),Ct+="}\n";const nn=document.createElement("style");return nn.textContent=Ct,nn}animate($,ne,Ae,Ct,Ke,nn=[],un){const Fn=nn.filter(ue=>ue instanceof os),ti={};gt(Ae,Ct)&&Fn.forEach(ue=>{let fn=ue.currentSnapshot;Object.keys(fn).forEach(me=>ti[me]=fn[me])});const gi=function(st){let $={};return st&&(Array.isArray(st)?st:[st]).forEach(Ae=>{Object.keys(Ae).forEach(Ct=>{"offset"==Ct||"easing"==Ct||($[Ct]=Ae[Ct])})}),$}(ne=Nt($,ne,ti));if(0==Ae)return new ws($,gi);const Fi="gen_css_kf_"+this._count++,Ge=this.buildKeyframeElement($,Fi,ne);(function(st){var $;const ne=null===($=st.getRootNode)||void 0===$?void 0:$.call(st);return"undefined"!=typeof ShadowRoot&&ne instanceof ShadowRoot?ne:document.head})($).appendChild(Ge);const dt=vo($,ne),It=new os($,ne,Fi,Ae,Ct,Ke,gi,dt);return It.onDestroy(()=>{var st;(st=Ge).parentNode.removeChild(st)}),It}}class yr{constructor($,ne,Ae,Ct){this.element=$,this.keyframes=ne,this.options=Ae,this._specialStyles=Ct,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=Ae.duration,this._delay=Ae.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const $=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,$,this.options),this._finalKeyframe=$.length?$[$.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation($,ne,Ae){return $.animate(ne,Ae)}onStart($){this._onStartFns.push($)}onDone($){this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach($=>$()),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($=>$()),this._onDestroyFns=[])}setPosition($){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=$*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const $={};if(this.hasStarted()){const ne=this._finalKeyframe;Object.keys(ne).forEach(Ae=>{"offset"!=Ae&&($[Ae]=this._finished?ne[Ae]:ft(this.element,Ae))})}this.currentSnapshot=$}triggerCallback($){const ne="start"==$?this._onStartFns:this._onDoneFns;ne.forEach(Ae=>Ae()),ne.length=0}}class Wo{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ye().toString()),this._cssKeyframesDriver=new hr}validateStyleProperty($){return L($)}matchesElement($,ne){return!1}containsElement($,ne){return we($,ne)}query($,ne,Ae){return ge($,ne,Ae)}computeStyle($,ne,Ae){return window.getComputedStyle($)[ne]}overrideWebAnimationsSupport($){this._isNativeImpl=$}animate($,ne,Ae,Ct,Ke,nn=[],un){if(!un&&!this._isNativeImpl)return this._cssKeyframesDriver.animate($,ne,Ae,Ct,Ke,nn);const gi={duration:Ae,delay:Ct,fill:0==Ct?"both":"forwards"};Ke&&(gi.easing=Ke);const Fi={},Ge=nn.filter(dt=>dt instanceof yr);gt(Ae,Ct)&&Ge.forEach(dt=>{let It=dt.currentSnapshot;Object.keys(It).forEach(ue=>Fi[ue]=It[ue])});const Xe=vo($,ne=Nt($,ne=ne.map(dt=>Me(dt,!1)),Fi));return new yr($,ne,gi,Xe)}}function Ye(){return ze()&&Element.prototype.animate||{}}var Et=S(9808);let et=(()=>{class st extends N._j{constructor(ne,Ae){super(),this._nextAnimationId=0,this._renderer=ne.createRenderer(Ae.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}})}build(ne){const Ae=this._nextAnimationId.toString();this._nextAnimationId++;const Ct=Array.isArray(ne)?(0,N.vP)(ne):ne;return $n(this._renderer,null,Ae,"register",[Ct]),new Pt(Ae,this._renderer)}}return st.\u0275fac=function(ne){return new(ne||st)(a.LFG(a.FYo),a.LFG(Et.K0))},st.\u0275prov=a.Yz7({token:st,factory:st.\u0275fac}),st})();class Pt extends N.LC{constructor($,ne){super(),this._id=$,this._renderer=ne}create($,ne){return new dn(this._id,$,ne||{},this._renderer)}}class dn{constructor($,ne,Ae,Ct){this.id=$,this.element=ne,this._renderer=Ct,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ae)}_listen($,ne){return this._renderer.listen(this.element,`@@${this.id}:${$}`,ne)}_command($,...ne){return $n(this._renderer,this.element,this.id,$,ne)}onDone($){this._listen("done",$)}onStart($){this._listen("start",$)}onDestroy($){this._listen("destroy",$)}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($){this._command("setPosition",$)}getPosition(){var $,ne;return null!==(ne=null===($=this._renderer.engine.players[+this.id])||void 0===$?void 0:$.getPosition())&&void 0!==ne?ne:0}}function $n(st,$,ne,Ae,Ct){return st.setProperty($,`@@${ne}:${Ae}`,Ct)}const Bi="@.disabled";let tt=(()=>{class st{constructor(ne,Ae,Ct){this.delegate=ne,this.engine=Ae,this._zone=Ct,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ae.onRemovalComplete=(Ke,nn)=>{const un=null==nn?void 0:nn.parentNode(Ke);un&&nn.removeChild(un,Ke)}}createRenderer(ne,Ae){const Ke=this.delegate.createRenderer(ne,Ae);if(!(ne&&Ae&&Ae.data&&Ae.data.animation)){let gi=this._rendererCache.get(Ke);return gi||(gi=new $e("",Ke,this.engine),this._rendererCache.set(Ke,gi)),gi}const nn=Ae.id,un=Ae.id+"-"+this._currentId;this._currentId++,this.engine.register(un,ne);const Fn=gi=>{Array.isArray(gi)?gi.forEach(Fn):this.engine.registerTrigger(nn,un,ne,gi.name,gi)};return Ae.data.animation.forEach(Fn),new De(this,un,Ke,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(ne,Ae,Ct){ne>=0&&neAe(Ct)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ke=>{const[nn,un]=Ke;nn(un)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ae,Ct]))}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 st.\u0275fac=function(ne){return new(ne||st)(a.LFG(a.FYo),a.LFG(ao),a.LFG(a.R0b))},st.\u0275prov=a.Yz7({token:st,factory:st.\u0275fac}),st})();class $e{constructor($,ne,Ae){this.namespaceId=$,this.delegate=ne,this.engine=Ae,this.destroyNode=this.delegate.destroyNode?Ct=>ne.destroyNode(Ct):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement($,ne){return this.delegate.createElement($,ne)}createComment($){return this.delegate.createComment($)}createText($){return this.delegate.createText($)}appendChild($,ne){this.delegate.appendChild($,ne),this.engine.onInsert(this.namespaceId,ne,$,!1)}insertBefore($,ne,Ae,Ct=!0){this.delegate.insertBefore($,ne,Ae),this.engine.onInsert(this.namespaceId,ne,$,Ct)}removeChild($,ne,Ae){this.engine.onRemove(this.namespaceId,ne,this.delegate,Ae)}selectRootElement($,ne){return this.delegate.selectRootElement($,ne)}parentNode($){return this.delegate.parentNode($)}nextSibling($){return this.delegate.nextSibling($)}setAttribute($,ne,Ae,Ct){this.delegate.setAttribute($,ne,Ae,Ct)}removeAttribute($,ne,Ae){this.delegate.removeAttribute($,ne,Ae)}addClass($,ne){this.delegate.addClass($,ne)}removeClass($,ne){this.delegate.removeClass($,ne)}setStyle($,ne,Ae,Ct){this.delegate.setStyle($,ne,Ae,Ct)}removeStyle($,ne,Ae){this.delegate.removeStyle($,ne,Ae)}setProperty($,ne,Ae){"@"==ne.charAt(0)&&ne==Bi?this.disableAnimations($,!!Ae):this.delegate.setProperty($,ne,Ae)}setValue($,ne){this.delegate.setValue($,ne)}listen($,ne,Ae){return this.delegate.listen($,ne,Ae)}disableAnimations($,ne){this.engine.disableAnimations($,ne)}}class De extends $e{constructor($,ne,Ae,Ct){super(ne,Ae,Ct),this.factory=$,this.namespaceId=ne}setProperty($,ne,Ae){"@"==ne.charAt(0)?"."==ne.charAt(1)&&ne==Bi?this.disableAnimations($,Ae=void 0===Ae||!!Ae):this.engine.process(this.namespaceId,$,ne.substr(1),Ae):this.delegate.setProperty($,ne,Ae)}listen($,ne,Ae){if("@"==ne.charAt(0)){const Ct=function(st){switch(st){case"body":return document.body;case"document":return document;case"window":return window;default:return st}}($);let Ke=ne.substr(1),nn="";return"@"!=Ke.charAt(0)&&([Ke,nn]=function(st){const $=st.indexOf(".");return[st.substring(0,$),st.substr($+1)]}(Ke)),this.engine.listen(this.namespaceId,Ct,Ke,nn,un=>{this.factory.scheduleListenerCallback(un._data||-1,Ae,un)})}return this.delegate.listen($,ne,Ae)}}let Si=(()=>{class st extends ao{constructor(ne,Ae,Ct){super(ne.body,Ae,Ct)}ngOnDestroy(){this.flush()}}return st.\u0275fac=function(ne){return new(ne||st)(a.LFG(Et.K0),a.LFG(e),a.LFG(fs))},st.\u0275prov=a.Yz7({token:st,factory:st.\u0275fac}),st})();const Qs=new a.OlP("AnimationModuleType"),Vr=[{provide:N._j,useClass:et},{provide:fs,useFactory:function(){return new gr}},{provide:ao,useClass:Si},{provide:a.FYo,useFactory:function(st,$,ne){return new tt(st,$,ne)},deps:[C.se,ao,a.R0b]}],us=[{provide:e,useFactory:function(){return"function"==typeof Ye()?new Wo:new hr}},{provide:Qs,useValue:"BrowserAnimations"},...Vr],Do=[{provide:e,useClass:Ce},{provide:Qs,useValue:"NoopAnimations"},...Vr];let wa=(()=>{class st{static withConfig(ne){return{ngModule:st,providers:ne.disableAnimations?Do:us}}}return st.\u0275fac=function(ne){return new(ne||st)},st.\u0275mod=a.oAB({type:st}),st.\u0275inj=a.cJS({providers:us,imports:[C.b2]}),st})()},2313:(St,oe,S)=>{"use strict";S.d(oe,{b2:()=>Sn,H7:()=>An,q6:()=>Jt,se:()=>g});var a=S(9808),C=S(5e3);class N extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ze extends N{static makeCurrent(){(0,a.HT)(new ze)}onAndCancel(qt,jt,on){return qt.addEventListener(jt,on,!1),()=>{qt.removeEventListener(jt,on,!1)}}dispatchEvent(qt,jt){qt.dispatchEvent(jt)}remove(qt){qt.parentNode&&qt.parentNode.removeChild(qt)}createElement(qt,jt){return(jt=jt||this.getDefaultDocument()).createElement(qt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(qt){return qt.nodeType===Node.ELEMENT_NODE}isShadowRoot(qt){return qt instanceof DocumentFragment}getGlobalEventTarget(qt,jt){return"window"===jt?window:"document"===jt?qt:"body"===jt?qt.body:null}getBaseHref(qt){const jt=(p=p||document.querySelector("base"),p?p.getAttribute("href"):null);return null==jt?null:function(yn){r=r||document.createElement("a"),r.setAttribute("href",yn);const qt=r.pathname;return"/"===qt.charAt(0)?qt:`/${qt}`}(jt)}resetBaseElement(){p=null}getUserAgent(){return window.navigator.userAgent}getCookie(qt){return(0,a.Mx)(document.cookie,qt)}}let r,p=null;const P=new C.OlP("TRANSITION_ID"),E=[{provide:C.ip1,useFactory:function(yn,qt,jt){return()=>{jt.get(C.CZH).donePromise.then(()=>{const on=(0,a.q)(),kn=qt.querySelectorAll(`style[ng-transition="${yn}"]`);for(let xi=0;xi{const xi=qt.findTestabilityInTree(on,kn);if(null==xi)throw new Error("Could not find testability for element.");return xi},C.dqk.getAllAngularTestabilities=()=>qt.getAllTestabilities(),C.dqk.getAllAngularRootElements=()=>qt.getAllRootElements(),C.dqk.frameworkStabilizers||(C.dqk.frameworkStabilizers=[]),C.dqk.frameworkStabilizers.push(on=>{const kn=C.dqk.getAllAngularTestabilities();let xi=kn.length,Ei=!1;const ps=function(fs){Ei=Ei||fs,xi--,0==xi&&on(Ei)};kn.forEach(function(fs){fs.whenStable(ps)})})}findTestabilityInTree(qt,jt,on){if(null==jt)return null;const kn=qt.getTestability(jt);return null!=kn?kn:on?(0,a.q)().isShadowRoot(jt)?this.findTestabilityInTree(qt,jt.host,!0):this.findTestabilityInTree(qt,jt.parentElement,!0):null}}let x=(()=>{class yn{build(){return new XMLHttpRequest}}return yn.\u0275fac=function(jt){return new(jt||yn)},yn.\u0275prov=C.Yz7({token:yn,factory:yn.\u0275fac}),yn})();const U=new C.OlP("EventManagerPlugins");let le=(()=>{class yn{constructor(jt,on){this._zone=on,this._eventNameToPlugin=new Map,jt.forEach(kn=>kn.manager=this),this._plugins=jt.slice().reverse()}addEventListener(jt,on,kn){return this._findPluginFor(on).addEventListener(jt,on,kn)}addGlobalEventListener(jt,on,kn){return this._findPluginFor(on).addGlobalEventListener(jt,on,kn)}getZone(){return this._zone}_findPluginFor(jt){const on=this._eventNameToPlugin.get(jt);if(on)return on;const kn=this._plugins;for(let xi=0;xi{class yn{constructor(){this._stylesSet=new Set}addStyles(jt){const on=new Set;jt.forEach(kn=>{this._stylesSet.has(kn)||(this._stylesSet.add(kn),on.add(kn))}),this.onStylesAdded(on)}onStylesAdded(jt){}getAllStyles(){return Array.from(this._stylesSet)}}return yn.\u0275fac=function(jt){return new(jt||yn)},yn.\u0275prov=C.Yz7({token:yn,factory:yn.\u0275fac}),yn})(),ce=(()=>{class yn extends re{constructor(jt){super(),this._doc=jt,this._hostNodes=new Map,this._hostNodes.set(jt.head,[])}_addStylesToHost(jt,on,kn){jt.forEach(xi=>{const Ei=this._doc.createElement("style");Ei.textContent=xi,kn.push(on.appendChild(Ei))})}addHost(jt){const on=[];this._addStylesToHost(this._stylesSet,jt,on),this._hostNodes.set(jt,on)}removeHost(jt){const on=this._hostNodes.get(jt);on&&on.forEach(L),this._hostNodes.delete(jt)}onStylesAdded(jt){this._hostNodes.forEach((on,kn)=>{this._addStylesToHost(jt,kn,on)})}ngOnDestroy(){this._hostNodes.forEach(jt=>jt.forEach(L))}}return yn.\u0275fac=function(jt){return new(jt||yn)(C.LFG(a.K0))},yn.\u0275prov=C.Yz7({token:yn,factory:yn.\u0275fac}),yn})();function L(yn){(0,a.q)().remove(yn)}const J={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/"},we=/%COMP%/g;function rt(yn,qt,jt){for(let on=0;on{if("__ngUnwrap__"===qt)return yn;!1===yn(qt)&&(qt.preventDefault(),qt.returnValue=!1)}}let g=(()=>{class yn{constructor(jt,on,kn){this.eventManager=jt,this.sharedStylesHost=on,this.appId=kn,this.rendererByCompId=new Map,this.defaultRenderer=new qe(jt)}createRenderer(jt,on){if(!jt||!on)return this.defaultRenderer;switch(on.encapsulation){case C.ifc.Emulated:{let kn=this.rendererByCompId.get(on.id);return kn||(kn=new X(this.eventManager,this.sharedStylesHost,on,this.appId),this.rendererByCompId.set(on.id,kn)),kn.applyToHost(jt),kn}case 1:case C.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,jt,on);default:if(!this.rendererByCompId.has(on.id)){const kn=rt(on.id,on.styles,[]);this.sharedStylesHost.addStyles(kn),this.rendererByCompId.set(on.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return yn.\u0275fac=function(jt){return new(jt||yn)(C.LFG(le),C.LFG(ce),C.LFG(C.AFp))},yn.\u0275prov=C.Yz7({token:yn,factory:yn.\u0275fac}),yn})();class qe{constructor(qt){this.eventManager=qt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(qt,jt){return jt?document.createElementNS(J[jt]||jt,qt):document.createElement(qt)}createComment(qt){return document.createComment(qt)}createText(qt){return document.createTextNode(qt)}appendChild(qt,jt){qt.appendChild(jt)}insertBefore(qt,jt,on){qt&&qt.insertBefore(jt,on)}removeChild(qt,jt){qt&&qt.removeChild(jt)}selectRootElement(qt,jt){let on="string"==typeof qt?document.querySelector(qt):qt;if(!on)throw new Error(`The selector "${qt}" did not match any elements`);return jt||(on.textContent=""),on}parentNode(qt){return qt.parentNode}nextSibling(qt){return qt.nextSibling}setAttribute(qt,jt,on,kn){if(kn){jt=kn+":"+jt;const xi=J[kn];xi?qt.setAttributeNS(xi,jt,on):qt.setAttribute(jt,on)}else qt.setAttribute(jt,on)}removeAttribute(qt,jt,on){if(on){const kn=J[on];kn?qt.removeAttributeNS(kn,jt):qt.removeAttribute(`${on}:${jt}`)}else qt.removeAttribute(jt)}addClass(qt,jt){qt.classList.add(jt)}removeClass(qt,jt){qt.classList.remove(jt)}setStyle(qt,jt,on,kn){kn&(C.JOm.DashCase|C.JOm.Important)?qt.style.setProperty(jt,on,kn&C.JOm.Important?"important":""):qt.style[jt]=on}removeStyle(qt,jt,on){on&C.JOm.DashCase?qt.style.removeProperty(jt):qt.style[jt]=""}setProperty(qt,jt,on){qt[jt]=on}setValue(qt,jt){qt.nodeValue=jt}listen(qt,jt,on){return"string"==typeof qt?this.eventManager.addGlobalEventListener(qt,jt,it(on)):this.eventManager.addEventListener(qt,jt,it(on))}}class X extends qe{constructor(qt,jt,on,kn){super(qt),this.component=on;const xi=rt(kn+"-"+on.id,on.styles,[]);jt.addStyles(xi),this.contentAttr="_ngcontent-%COMP%".replace(we,kn+"-"+on.id),this.hostAttr="_nghost-%COMP%".replace(we,kn+"-"+on.id)}applyToHost(qt){super.setAttribute(qt,this.hostAttr,"")}createElement(qt,jt){const on=super.createElement(qt,jt);return super.setAttribute(on,this.contentAttr,""),on}}class Le extends qe{constructor(qt,jt,on,kn){super(qt),this.sharedStylesHost=jt,this.hostEl=on,this.shadowRoot=on.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const xi=rt(kn.id,kn.styles,[]);for(let Ei=0;Ei{class yn extends xe{constructor(jt){super(jt)}supports(jt){return!0}addEventListener(jt,on,kn){return jt.addEventListener(on,kn,!1),()=>this.removeEventListener(jt,on,kn)}removeEventListener(jt,on,kn){return jt.removeEventListener(on,kn)}}return yn.\u0275fac=function(jt){return new(jt||yn)(C.LFG(a.K0))},yn.\u0275prov=C.Yz7({token:yn,factory:yn.\u0275fac}),yn})();const Ze=["alt","control","meta","shift"],Ne={"\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"},Me={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"},ke={alt:yn=>yn.altKey,control:yn=>yn.ctrlKey,meta:yn=>yn.metaKey,shift:yn=>yn.shiftKey};let G=(()=>{class yn extends xe{constructor(jt){super(jt)}supports(jt){return null!=yn.parseEventName(jt)}addEventListener(jt,on,kn){const xi=yn.parseEventName(on),Ei=yn.eventCallback(xi.fullKey,kn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(jt,xi.domEventName,Ei))}static parseEventName(jt){const on=jt.toLowerCase().split("."),kn=on.shift();if(0===on.length||"keydown"!==kn&&"keyup"!==kn)return null;const xi=yn._normalizeKey(on.pop());let Ei="";if(Ze.forEach(fs=>{const dr=on.indexOf(fs);dr>-1&&(on.splice(dr,1),Ei+=fs+".")}),Ei+=xi,0!=on.length||0===xi.length)return null;const ps={};return ps.domEventName=kn,ps.fullKey=Ei,ps}static getEventFullKey(jt){let on="",kn=function(yn){let qt=yn.key;if(null==qt){if(qt=yn.keyIdentifier,null==qt)return"Unidentified";qt.startsWith("U+")&&(qt=String.fromCharCode(parseInt(qt.substring(2),16)),3===yn.location&&Me.hasOwnProperty(qt)&&(qt=Me[qt]))}return Ne[qt]||qt}(jt);return kn=kn.toLowerCase()," "===kn?kn="space":"."===kn&&(kn="dot"),Ze.forEach(xi=>{xi!=kn&&ke[xi](jt)&&(on+=xi+".")}),on+=kn,on}static eventCallback(jt,on,kn){return xi=>{yn.getEventFullKey(xi)===jt&&kn.runGuarded(()=>on(xi))}}static _normalizeKey(jt){return"esc"===jt?"escape":jt}}return yn.\u0275fac=function(jt){return new(jt||yn)(C.LFG(a.K0))},yn.\u0275prov=C.Yz7({token:yn,factory:yn.\u0275fac}),yn})();const Jt=(0,C.eFA)(C._c5,"browser",[{provide:C.Lbi,useValue:a.bD},{provide:C.g9A,useValue:function(){ze.makeCurrent(),ee.init()},multi:!0},{provide:a.K0,useFactory:function(){return(0,C.RDi)(document),document},deps:[]}]),Wt=[{provide:C.zSh,useValue:"root"},{provide:C.qLn,useFactory:function(){return new C.qLn},deps:[]},{provide:U,useClass:Te,multi:!0,deps:[a.K0,C.R0b,C.Lbi]},{provide:U,useClass:G,multi:!0,deps:[a.K0]},{provide:g,useClass:g,deps:[le,ce,C.AFp]},{provide:C.FYo,useExisting:g},{provide:re,useExisting:ce},{provide:ce,useClass:ce,deps:[a.K0]},{provide:C.dDg,useClass:C.dDg,deps:[C.R0b]},{provide:le,useClass:le,deps:[U,C.R0b]},{provide:a.JF,useClass:x,deps:[]}];let Sn=(()=>{class yn{constructor(jt){if(jt)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(jt){return{ngModule:yn,providers:[{provide:C.AFp,useValue:jt.appId},{provide:P,useExisting:C.AFp},E]}}}return yn.\u0275fac=function(jt){return new(jt||yn)(C.LFG(yn,12))},yn.\u0275mod=C.oAB({type:yn}),yn.\u0275inj=C.cJS({providers:Wt,imports:[a.ez,C.hGG]}),yn})();"undefined"!=typeof window&&window;let An=(()=>{class yn{}return yn.\u0275fac=function(jt){return new(jt||yn)},yn.\u0275prov=C.Yz7({token:yn,factory:function(jt){let on=null;return on=jt?new(jt||yn):C.LFG(Zi),on},providedIn:"root"}),yn})(),Zi=(()=>{class yn extends An{constructor(jt){super(),this._doc=jt}sanitize(jt,on){if(null==on)return null;switch(jt){case C.q3G.NONE:return on;case C.q3G.HTML:return(0,C.qzn)(on,"HTML")?(0,C.z3N)(on):(0,C.EiD)(this._doc,String(on)).toString();case C.q3G.STYLE:return(0,C.qzn)(on,"Style")?(0,C.z3N)(on):on;case C.q3G.SCRIPT:if((0,C.qzn)(on,"Script"))return(0,C.z3N)(on);throw new Error("unsafe value used in a script context");case C.q3G.URL:return(0,C.yhl)(on),(0,C.qzn)(on,"URL")?(0,C.z3N)(on):(0,C.mCW)(String(on));case C.q3G.RESOURCE_URL:if((0,C.qzn)(on,"ResourceURL"))return(0,C.z3N)(on);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${jt} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(jt){return(0,C.JVY)(jt)}bypassSecurityTrustStyle(jt){return(0,C.L6k)(jt)}bypassSecurityTrustScript(jt){return(0,C.eBb)(jt)}bypassSecurityTrustUrl(jt){return(0,C.LAX)(jt)}bypassSecurityTrustResourceUrl(jt){return(0,C.pB0)(jt)}}return yn.\u0275fac=function(jt){return new(jt||yn)(C.LFG(a.K0))},yn.\u0275prov=C.Yz7({token:yn,factory:function(jt){let on=null;return on=jt?new jt:function(yn){return new Zi(yn.get(a.K0))}(C.LFG(C.zs3)),on},providedIn:"root"}),yn})()},384:(St,oe,S)=>{"use strict";S.d(oe,{gz:()=>Ri,m2:()=>Ze,F0:()=>Vi,yS:()=>xa,Bz:()=>Mc,lC:()=>ki});var a=S(5e3),C=S(8996),N=S(9646),ze=S(1135),p=S(9841),K=S(8306),r=S(6805),O=S(7272),P=S(9770),H=S(515),E=S(4033),ee=S(7579),x=S(9300),U=S(4482),le=S(5403);function xe(Oe){return Oe<=0?()=>H.E:(0,U.e)((ve,se)=>{let Qe=[];ve.subscribe(new le.Q(se,pt=>{Qe.push(pt),Oe{for(const pt of Qe)se.next(pt);se.complete()},void 0,()=>{Qe=null}))})}function re(Oe=ce){return(0,U.e)((ve,se)=>{let Qe=!1;ve.subscribe(new le.Q(se,pt=>{Qe=!0,se.next(pt)},()=>Qe?se.complete():se.error(Oe())))})}function ce(){return new r.K}function L(Oe){return(0,U.e)((ve,se)=>{let Qe=!1;ve.subscribe(new le.Q(se,pt=>{Qe=!0,se.next(pt)},()=>{Qe||se.next(Oe),se.complete()}))})}var J=S(4671),ge=S(5698);function fe(Oe,ve){const se=arguments.length>=2;return Qe=>Qe.pipe(Oe?(0,x.h)((pt,Vt)=>Oe(pt,Vt,Qe)):J.y,(0,ge.q)(1),se?L(ve):re(()=>new r.K))}var Ce=S(4004),e=S(3900),z=S(8675),je=S(5026),rt=S(262),it=S(4351),ct=S(5577),g=S(8505),qe=S(8343),Ve=S(8746),He=S(8189),X=S(9808);class Le{constructor(ve,se){this.id=ve,this.url=se}}class Te extends Le{constructor(ve,se,Qe="imperative",pt=null){super(ve,se),this.navigationTrigger=Qe,this.restoredState=pt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ze extends Le{constructor(ve,se,Qe){super(ve,se),this.urlAfterRedirects=Qe}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class he extends Le{constructor(ve,se,Qe){super(ve,se),this.reason=Qe}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ne extends Le{constructor(ve,se,Qe){super(ve,se),this.error=Qe}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Me extends Le{constructor(ve,se,Qe,pt){super(ve,se),this.urlAfterRedirects=Qe,this.state=pt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ke extends Le{constructor(ve,se,Qe,pt){super(ve,se),this.urlAfterRedirects=Qe,this.state=pt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G extends Le{constructor(ve,se,Qe,pt,Vt){super(ve,se),this.urlAfterRedirects=Qe,this.state=pt,this.shouldActivate=Vt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ot extends Le{constructor(ve,se,Qe,pt){super(ve,se),this.urlAfterRedirects=Qe,this.state=pt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class We extends Le{constructor(ve,se,Qe,pt){super(ve,se),this.urlAfterRedirects=Qe,this.state=pt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ut{constructor(ve){this.route=ve}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Mt{constructor(ve){this.route=ve}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class At{constructor(ve){this.snapshot=ve}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jt{constructor(ve){this.snapshot=ve}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wt{constructor(ve){this.snapshot=ve}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sn{constructor(ve){this.snapshot=ve}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(ve,se,Qe){this.routerEvent=ve,this.position=se,this.anchor=Qe}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const be="primary";class Je{constructor(ve){this.params=ve||{}}has(ve){return Object.prototype.hasOwnProperty.call(this.params,ve)}get(ve){if(this.has(ve)){const se=this.params[ve];return Array.isArray(se)?se[0]:se}return null}getAll(ve){if(this.has(ve)){const se=this.params[ve];return Array.isArray(se)?se:[se]}return[]}get keys(){return Object.keys(this.params)}}function gt(Oe){return new Je(Oe)}const Nt="ngNavigationCancelingError";function $t(Oe){const ve=Error("NavigationCancelingError: "+Oe);return ve[Nt]=!0,ve}function mt(Oe,ve,se){const Qe=se.path.split("/");if(Qe.length>Oe.length||"full"===se.pathMatch&&(ve.hasChildren()||Qe.lengthQe[Vt]===pt)}return Oe===ve}function hn(Oe){return Array.prototype.concat.apply([],Oe)}function xn(Oe){return Oe.length>0?Oe[Oe.length-1]:null}function Hn(Oe,ve){for(const se in Oe)Oe.hasOwnProperty(se)&&ve(Oe[se],se)}function pn(Oe){return(0,a.CqO)(Oe)?Oe:(0,a.QGY)(Oe)?(0,C.D)(Promise.resolve(Oe)):(0,N.of)(Oe)}const _t={exact:function Ft(Oe,ve,se){if(!ni(Oe.segments,ve.segments)||!ie(Oe.segments,ve.segments,se)||Oe.numberOfChildren!==ve.numberOfChildren)return!1;for(const Qe in ve.children)if(!Oe.children[Qe]||!Ft(Oe.children[Qe],ve.children[Qe],se))return!1;return!0},subset:V},Tt={exact:function(Oe,ve){return zt(Oe,ve)},subset:function(Oe,ve){return Object.keys(ve).length<=Object.keys(Oe).length&&Object.keys(ve).every(se=>Kt(Oe[se],ve[se]))},ignored:()=>!0};function Gt(Oe,ve,se){return _t[se.paths](Oe.root,ve.root,se.matrixParams)&&Tt[se.queryParams](Oe.queryParams,ve.queryParams)&&!("exact"===se.fragment&&Oe.fragment!==ve.fragment)}function V(Oe,ve,se){return Q(Oe,ve,ve.segments,se)}function Q(Oe,ve,se,Qe){if(Oe.segments.length>se.length){const pt=Oe.segments.slice(0,se.length);return!(!ni(pt,se)||ve.hasChildren()||!ie(pt,se,Qe))}if(Oe.segments.length===se.length){if(!ni(Oe.segments,se)||!ie(Oe.segments,se,Qe))return!1;for(const pt in ve.children)if(!Oe.children[pt]||!V(Oe.children[pt],ve.children[pt],Qe))return!1;return!0}{const pt=se.slice(0,Oe.segments.length),Vt=se.slice(Oe.segments.length);return!!(ni(Oe.segments,pt)&&ie(Oe.segments,pt,Qe)&&Oe.children[be])&&Q(Oe.children[be],ve,Vt,Qe)}}function ie(Oe,ve,se){return ve.every((Qe,pt)=>Tt[se](Oe[pt].parameters,Qe.parameters))}class nt{constructor(ve,se,Qe){this.root=ve,this.queryParams=se,this.fragment=Qe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gt(this.queryParams)),this._queryParamMap}toString(){return Ti.serialize(this)}}class bt{constructor(ve,se){this.segments=ve,this.children=se,this.parent=null,Hn(se,(Qe,pt)=>Qe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yn(this)}}class an{constructor(ve,se){this.path=ve,this.parameters=se}get parameterMap(){return this._parameterMap||(this._parameterMap=gt(this.parameters)),this._parameterMap}toString(){return fs(this)}}function ni(Oe,ve){return Oe.length===ve.length&&Oe.every((se,Qe)=>se.path===ve[Qe].path)}class Ii{}class Zi{parse(ve){const se=new Hi(ve);return new nt(se.parseRootSegment(),se.parseQueryParams(),se.parseFragment())}serialize(ve){const se=`/${qt(ve.root,!0)}`,Qe=function(Oe){const ve=Object.keys(Oe).map(se=>{const Qe=Oe[se];return Array.isArray(Qe)?Qe.map(pt=>`${on(se)}=${on(pt)}`).join("&"):`${on(se)}=${on(Qe)}`}).filter(se=>!!se);return ve.length?`?${ve.join("&")}`:""}(ve.queryParams);var Oe;return`${se}${Qe}${"string"==typeof ve.fragment?`#${Oe=ve.fragment,encodeURI(Oe)}`:""}`}}const Ti=new Zi;function yn(Oe){return Oe.segments.map(ve=>fs(ve)).join("/")}function qt(Oe,ve){if(!Oe.hasChildren())return yn(Oe);if(ve){const se=Oe.children[be]?qt(Oe.children[be],!1):"",Qe=[];return Hn(Oe.children,(pt,Vt)=>{Vt!==be&&Qe.push(`${Vt}:${qt(pt,!1)}`)}),Qe.length>0?`${se}(${Qe.join("//")})`:se}{const se=function(Oe,ve){let se=[];return Hn(Oe.children,(Qe,pt)=>{pt===be&&(se=se.concat(ve(Qe,pt)))}),Hn(Oe.children,(Qe,pt)=>{pt!==be&&(se=se.concat(ve(Qe,pt)))}),se}(Oe,(Qe,pt)=>pt===be?[qt(Oe.children[be],!1)]:[`${pt}:${qt(Qe,!1)}`]);return 1===Object.keys(Oe.children).length&&null!=Oe.children[be]?`${yn(Oe)}/${se[0]}`:`${yn(Oe)}/(${se.join("//")})`}}function jt(Oe){return encodeURIComponent(Oe).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function on(Oe){return jt(Oe).replace(/%3B/gi,";")}function xi(Oe){return jt(Oe).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ei(Oe){return decodeURIComponent(Oe)}function ps(Oe){return Ei(Oe.replace(/\+/g,"%20"))}function fs(Oe){return`${xi(Oe.path)}${function(Oe){return Object.keys(Oe).map(ve=>`;${xi(ve)}=${xi(Oe[ve])}`).join("")}(Oe.parameters)}`}const Nr=/^[^\/()?;=#]+/;function Vs(Oe){const ve=Oe.match(Nr);return ve?ve[0]:""}const js=/^[^=?&#]+/,mr=/^[^&#]+/;class Hi{constructor(ve){this.url=ve,this.remaining=ve}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],this.parseChildren())}parseQueryParams(){const ve={};if(this.consumeOptional("?"))do{this.parseQueryParam(ve)}while(this.consumeOptional("&"));return ve}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ve=[];for(this.peekStartsWith("(")||ve.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ve.push(this.parseSegment());let se={};this.peekStartsWith("/(")&&(this.capture("/"),se=this.parseParens(!0));let Qe={};return this.peekStartsWith("(")&&(Qe=this.parseParens(!1)),(ve.length>0||Object.keys(se).length>0)&&(Qe[be]=new bt(ve,se)),Qe}parseSegment(){const ve=Vs(this.remaining);if(""===ve&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(ve),new an(Ei(ve),this.parseMatrixParams())}parseMatrixParams(){const ve={};for(;this.consumeOptional(";");)this.parseParam(ve);return ve}parseParam(ve){const se=Vs(this.remaining);if(!se)return;this.capture(se);let Qe="";if(this.consumeOptional("=")){const pt=Vs(this.remaining);pt&&(Qe=pt,this.capture(Qe))}ve[Ei(se)]=Ei(Qe)}parseQueryParam(ve){const se=function(Oe){const ve=Oe.match(js);return ve?ve[0]:""}(this.remaining);if(!se)return;this.capture(se);let Qe="";if(this.consumeOptional("=")){const rn=function(Oe){const ve=Oe.match(mr);return ve?ve[0]:""}(this.remaining);rn&&(Qe=rn,this.capture(Qe))}const pt=ps(se),Vt=ps(Qe);if(ve.hasOwnProperty(pt)){let rn=ve[pt];Array.isArray(rn)||(rn=[rn],ve[pt]=rn),rn.push(Vt)}else ve[pt]=Vt}parseParens(ve){const se={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Qe=Vs(this.remaining),pt=this.remaining[Qe.length];if("/"!==pt&&")"!==pt&&";"!==pt)throw new Error(`Cannot parse url '${this.url}'`);let Vt;Qe.indexOf(":")>-1?(Vt=Qe.substr(0,Qe.indexOf(":")),this.capture(Vt),this.capture(":")):ve&&(Vt=be);const rn=this.parseChildren();se[Vt]=1===Object.keys(rn).length?rn[be]:new bt([],rn),this.consumeOptional("//")}return se}peekStartsWith(ve){return this.remaining.startsWith(ve)}consumeOptional(ve){return!!this.peekStartsWith(ve)&&(this.remaining=this.remaining.substring(ve.length),!0)}capture(ve){if(!this.consumeOptional(ve))throw new Error(`Expected "${ve}".`)}}class Ms{constructor(ve){this._root=ve}get root(){return this._root.value}parent(ve){const se=this.pathFromRoot(ve);return se.length>1?se[se.length-2]:null}children(ve){const se=ur(ve,this._root);return se?se.children.map(Qe=>Qe.value):[]}firstChild(ve){const se=ur(ve,this._root);return se&&se.children.length>0?se.children[0].value:null}siblings(ve){const se=pr(ve,this._root);return se.length<2?[]:se[se.length-2].children.map(pt=>pt.value).filter(pt=>pt!==ve)}pathFromRoot(ve){return pr(ve,this._root).map(se=>se.value)}}function ur(Oe,ve){if(Oe===ve.value)return ve;for(const se of ve.children){const Qe=ur(Oe,se);if(Qe)return Qe}return null}function pr(Oe,ve){if(Oe===ve.value)return[ve];for(const se of ve.children){const Qe=pr(Oe,se);if(Qe.length)return Qe.unshift(ve),Qe}return[]}class Ps{constructor(ve,se){this.value=ve,this.children=se}toString(){return`TreeNode(${this.value})`}}function Sr(Oe){const ve={};return Oe&&Oe.children.forEach(se=>ve[se.value.outlet]=se),ve}class Ns extends Ms{constructor(ve,se){super(ve),this.snapshot=se,On(this,ve)}toString(){return this.snapshot.toString()}}function Or(Oe,ve){const se=function(Oe,ve){const rn=new Zn([],{},{},"",{},be,ve,null,Oe.root,-1,{});return new wn("",new Ps(rn,[]))}(Oe,ve),Qe=new ze.X([new an("",{})]),pt=new ze.X({}),Vt=new ze.X({}),rn=new ze.X({}),_n=new ze.X(""),Kn=new Ri(Qe,pt,rn,_n,Vt,be,ve,se.root);return Kn.snapshot=se.root,new Ns(new Ps(Kn,[]),se)}class Ri{constructor(ve,se,Qe,pt,Vt,rn,_n,Kn){this.url=ve,this.params=se,this.queryParams=Qe,this.fragment=pt,this.data=Vt,this.outlet=rn,this.component=_n,this._futureSnapshot=Kn}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,Ce.U)(ve=>gt(ve)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ce.U)(ve=>gt(ve)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Pr(Oe,ve="emptyOnly"){const se=Oe.pathFromRoot;let Qe=0;if("always"!==ve)for(Qe=se.length-1;Qe>=1;){const pt=se[Qe],Vt=se[Qe-1];if(pt.routeConfig&&""===pt.routeConfig.path)Qe--;else{if(Vt.component)break;Qe--}}return function(Oe){return Oe.reduce((ve,se)=>({params:Object.assign(Object.assign({},ve.params),se.params),data:Object.assign(Object.assign({},ve.data),se.data),resolve:Object.assign(Object.assign({},ve.resolve),se._resolvedData)}),{params:{},data:{},resolve:{}})}(se.slice(Qe))}class Zn{constructor(ve,se,Qe,pt,Vt,rn,_n,Kn,Wi,fr,Ai){this.url=ve,this.params=se,this.queryParams=Qe,this.fragment=pt,this.data=Vt,this.outlet=rn,this.component=_n,this.routeConfig=Kn,this._urlSegment=Wi,this._lastPathIndex=fr,this._resolve=Ai}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=gt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Qe=>Qe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class wn extends Ms{constructor(ve,se){super(se),this.url=ve,On(this,se)}toString(){return _i(this._root)}}function On(Oe,ve){ve.value._routerState=Oe,ve.children.forEach(se=>On(Oe,se))}function _i(Oe){const ve=Oe.children.length>0?` { ${Oe.children.map(_i).join(", ")} } `:"";return`${Oe.value}${ve}`}function vn(Oe){if(Oe.snapshot){const ve=Oe.snapshot,se=Oe._futureSnapshot;Oe.snapshot=se,zt(ve.queryParams,se.queryParams)||Oe.queryParams.next(se.queryParams),ve.fragment!==se.fragment&&Oe.fragment.next(se.fragment),zt(ve.params,se.params)||Oe.params.next(se.params),function(Oe,ve){if(Oe.length!==ve.length)return!1;for(let se=0;sezt(se.parameters,ve[Qe].parameters))}(Oe.url,ve.url);return se&&!(!Oe.parent!=!ve.parent)&&(!Oe.parent||qi(Oe.parent,ve.parent))}function Us(Oe,ve,se){if(se&&Oe.shouldReuseRoute(ve.value,se.value.snapshot)){const Qe=se.value;Qe._futureSnapshot=ve.value;const pt=function(Oe,ve,se){return ve.children.map(Qe=>{for(const pt of se.children)if(Oe.shouldReuseRoute(Qe.value,pt.value.snapshot))return Us(Oe,Qe,pt);return Us(Oe,Qe)})}(Oe,ve,se);return new Ps(Qe,pt)}{if(Oe.shouldAttach(ve.value)){const Vt=Oe.retrieve(ve.value);if(null!==Vt){const rn=Vt.route;return rn.value._futureSnapshot=ve.value,rn.children=ve.children.map(_n=>Us(Oe,_n)),rn}}const Qe=function(Oe){return new Ri(new ze.X(Oe.url),new ze.X(Oe.params),new ze.X(Oe.queryParams),new ze.X(Oe.fragment),new ze.X(Oe.data),Oe.outlet,Oe.component,Oe)}(ve.value),pt=ve.children.map(Vt=>Us(Oe,Vt));return new Ps(Qe,pt)}}function Yr(Oe){return"object"==typeof Oe&&null!=Oe&&!Oe.outlets&&!Oe.segmentPath}function Fr(Oe){return"object"==typeof Oe&&null!=Oe&&Oe.outlets}function Tr(Oe,ve,se,Qe,pt){let Vt={};return Qe&&Hn(Qe,(rn,_n)=>{Vt[_n]=Array.isArray(rn)?rn.map(Kn=>`${Kn}`):`${rn}`}),new nt(se.root===Oe?ve:Lr(se.root,Oe,ve),Vt,pt)}function Lr(Oe,ve,se){const Qe={};return Hn(Oe.children,(pt,Vt)=>{Qe[Vt]=pt===ve?se:Lr(pt,ve,se)}),new bt(Oe.segments,Qe)}class eo{constructor(ve,se,Qe){if(this.isAbsolute=ve,this.numberOfDoubleDots=se,this.commands=Qe,ve&&Qe.length>0&&Yr(Qe[0]))throw new Error("Root segment cannot have matrix parameters");const pt=Qe.find(Fr);if(pt&&pt!==xn(Qe))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rr{constructor(ve,se,Qe){this.segmentGroup=ve,this.processChildren=se,this.index=Qe}}function Qr(Oe,ve,se){if(Oe||(Oe=new bt([],{})),0===Oe.segments.length&&Oe.hasChildren())return er(Oe,ve,se);const Qe=function(Oe,ve,se){let Qe=0,pt=ve;const Vt={match:!1,pathIndex:0,commandIndex:0};for(;pt=se.length)return Vt;const rn=Oe.segments[pt],_n=se[Qe];if(Fr(_n))break;const Kn=`${_n}`,Wi=Qe0&&void 0===Kn)break;if(Kn&&Wi&&"object"==typeof Wi&&void 0===Wi.outlets){if(!zo(Kn,Wi,rn))return Vt;Qe+=2}else{if(!zo(Kn,{},rn))return Vt;Qe++}pt++}return{match:!0,pathIndex:pt,commandIndex:Qe}}(Oe,ve,se),pt=se.slice(Qe.commandIndex);if(Qe.match&&Qe.pathIndex{"string"==typeof Vt&&(Vt=[Vt]),null!==Vt&&(pt[rn]=Qr(Oe.children[rn],ve,Vt))}),Hn(Oe.children,(Vt,rn)=>{void 0===Qe[rn]&&(pt[rn]=Vt)}),new bt(Oe.segments,pt)}}function so(Oe,ve,se){const Qe=Oe.segments.slice(0,ve);let pt=0;for(;pt{"string"==typeof se&&(se=[se]),null!==se&&(ve[Qe]=so(new bt([],{}),0,se))}),ve}function vo(Oe){const ve={};return Hn(Oe,(se,Qe)=>ve[Qe]=`${se}`),ve}function zo(Oe,ve,se){return Oe==se.path&&zt(ve,se.parameters)}class Zr{constructor(ve,se,Qe,pt){this.routeReuseStrategy=ve,this.futureState=se,this.currState=Qe,this.forwardEvent=pt}activate(ve){const se=this.futureState._root,Qe=this.currState?this.currState._root:null;this.deactivateChildRoutes(se,Qe,ve),vn(this.futureState.root),this.activateChildRoutes(se,Qe,ve)}deactivateChildRoutes(ve,se,Qe){const pt=Sr(se);ve.children.forEach(Vt=>{const rn=Vt.value.outlet;this.deactivateRoutes(Vt,pt[rn],Qe),delete pt[rn]}),Hn(pt,(Vt,rn)=>{this.deactivateRouteAndItsChildren(Vt,Qe)})}deactivateRoutes(ve,se,Qe){const pt=ve.value,Vt=se?se.value:null;if(pt===Vt)if(pt.component){const rn=Qe.getContext(pt.outlet);rn&&this.deactivateChildRoutes(ve,se,rn.children)}else this.deactivateChildRoutes(ve,se,Qe);else Vt&&this.deactivateRouteAndItsChildren(se,Qe)}deactivateRouteAndItsChildren(ve,se){ve.value.component&&this.routeReuseStrategy.shouldDetach(ve.value.snapshot)?this.detachAndStoreRouteSubtree(ve,se):this.deactivateRouteAndOutlet(ve,se)}detachAndStoreRouteSubtree(ve,se){const Qe=se.getContext(ve.value.outlet),pt=Qe&&ve.value.component?Qe.children:se,Vt=Sr(ve);for(const rn of Object.keys(Vt))this.deactivateRouteAndItsChildren(Vt[rn],pt);if(Qe&&Qe.outlet){const rn=Qe.outlet.detach(),_n=Qe.children.onOutletDeactivated();this.routeReuseStrategy.store(ve.value.snapshot,{componentRef:rn,route:ve,contexts:_n})}}deactivateRouteAndOutlet(ve,se){const Qe=se.getContext(ve.value.outlet),pt=Qe&&ve.value.component?Qe.children:se,Vt=Sr(ve);for(const rn of Object.keys(Vt))this.deactivateRouteAndItsChildren(Vt[rn],pt);Qe&&Qe.outlet&&(Qe.outlet.deactivate(),Qe.children.onOutletDeactivated(),Qe.attachRef=null,Qe.resolver=null,Qe.route=null)}activateChildRoutes(ve,se,Qe){const pt=Sr(se);ve.children.forEach(Vt=>{this.activateRoutes(Vt,pt[Vt.value.outlet],Qe),this.forwardEvent(new Sn(Vt.value.snapshot))}),ve.children.length&&this.forwardEvent(new Jt(ve.value.snapshot))}activateRoutes(ve,se,Qe){const pt=ve.value,Vt=se?se.value:null;if(vn(pt),pt===Vt)if(pt.component){const rn=Qe.getOrCreateContext(pt.outlet);this.activateChildRoutes(ve,se,rn.children)}else this.activateChildRoutes(ve,se,Qe);else if(pt.component){const rn=Qe.getOrCreateContext(pt.outlet);if(this.routeReuseStrategy.shouldAttach(pt.snapshot)){const _n=this.routeReuseStrategy.retrieve(pt.snapshot);this.routeReuseStrategy.store(pt.snapshot,null),rn.children.onOutletReAttached(_n.contexts),rn.attachRef=_n.componentRef,rn.route=_n.route.value,rn.outlet&&rn.outlet.attach(_n.componentRef,_n.route.value),vn(_n.route.value),this.activateChildRoutes(ve,null,rn.children)}else{const _n=function(Oe){for(let ve=Oe.parent;ve;ve=ve.parent){const se=ve.routeConfig;if(se&&se._loadedConfig)return se._loadedConfig;if(se&&se.component)return null}return null}(pt.snapshot),Kn=_n?_n.module.componentFactoryResolver:null;rn.attachRef=null,rn.route=pt,rn.resolver=Kn,rn.outlet&&rn.outlet.activateWith(pt,Kn),this.activateChildRoutes(ve,null,rn.children)}}else this.activateChildRoutes(ve,null,Qe)}}class ln{constructor(ve,se){this.routes=ve,this.module=se}}function de(Oe){return"function"==typeof Oe}function cn(Oe){return Oe instanceof nt}const en=Symbol("INITIAL_VALUE");function Cn(){return(0,e.w)(Oe=>(0,p.a)(Oe.map(ve=>ve.pipe((0,ge.q)(1),(0,z.O)(en)))).pipe((0,je.R)((ve,se)=>{let Qe=!1;return se.reduce((pt,Vt,rn)=>pt!==en?pt:(Vt===en&&(Qe=!0),Qe||!1!==Vt&&rn!==se.length-1&&!cn(Vt)?pt:Vt),ve)},en),(0,x.h)(ve=>ve!==en),(0,Ce.U)(ve=>cn(ve)?ve:!0===ve),(0,ge.q)(1)))}class ai{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ii,this.attachRef=null}}class ii{constructor(){this.contexts=new Map}onChildOutletCreated(ve,se){const Qe=this.getOrCreateContext(ve);Qe.outlet=se,this.contexts.set(ve,Qe)}onChildOutletDestroyed(ve){const se=this.getContext(ve);se&&(se.outlet=null,se.attachRef=null)}onOutletDeactivated(){const ve=this.contexts;return this.contexts=new Map,ve}onOutletReAttached(ve){this.contexts=ve}getOrCreateContext(ve){let se=this.getContext(ve);return se||(se=new ai,this.contexts.set(ve,se)),se}getContext(ve){return this.contexts.get(ve)||null}}let ki=(()=>{class Oe{constructor(se,Qe,pt,Vt,rn){this.parentContexts=se,this.location=Qe,this.resolver=pt,this.changeDetector=rn,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.name=Vt||be,se.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const se=this.parentContexts.getContext(this.name);se&&se.route&&(se.attachRef?this.attach(se.attachRef,se.route):this.activateWith(se.route,se.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 se=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(se.instance),se}attach(se,Qe){this.activated=se,this._activatedRoute=Qe,this.location.insert(se.hostView),this.attachEvents.emit(se.instance)}deactivate(){if(this.activated){const se=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(se)}}activateWith(se,Qe){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=se;const rn=(Qe=Qe||this.resolver).resolveComponentFactory(se._futureSnapshot.routeConfig.component),_n=this.parentContexts.getOrCreateContext(this.name).children,Kn=new Ci(se,_n,this.location.injector);this.activated=this.location.createComponent(rn,this.location.length,Kn),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Oe.\u0275fac=function(se){return new(se||Oe)(a.Y36(ii),a.Y36(a.s_b),a.Y36(a._Vd),a.$8M("name"),a.Y36(a.sBO))},Oe.\u0275dir=a.lG2({type:Oe,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Oe})();class Ci{constructor(ve,se,Qe){this.route=ve,this.childContexts=se,this.parent=Qe}get(ve,se){return ve===Ri?this.route:ve===ii?this.childContexts:this.parent.get(ve,se)}}let Yi=(()=>{class Oe{}return Oe.\u0275fac=function(se){return new(se||Oe)},Oe.\u0275cmp=a.Xpm({type:Oe,selectors:[["ng-component"]],decls:1,vars:0,template:function(se,Qe){1&se&&a._UZ(0,"router-outlet")},directives:[ki],encapsulation:2}),Oe})();function os(Oe,ve=""){for(let se=0;sehr(Qe)===ve);return se.push(...Oe.filter(Qe=>hr(Qe)!==ve)),se}const qr={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function $s(Oe,ve,se){var Qe;if(""===ve.path)return"full"===ve.pathMatch&&(Oe.hasChildren()||se.length>0)?Object.assign({},qr):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Vt=(ve.matcher||mt)(se,Oe,ve);if(!Vt)return Object.assign({},qr);const rn={};Hn(Vt.posParams,(Kn,Wi)=>{rn[Wi]=Kn.path});const _n=Vt.consumed.length>0?Object.assign(Object.assign({},rn),Vt.consumed[Vt.consumed.length-1].parameters):rn;return{matched:!0,consumedSegments:Vt.consumed,lastChild:Vt.consumed.length,parameters:_n,positionalParamSegments:null!==(Qe=Vt.posParams)&&void 0!==Qe?Qe:{}}}function Ds(Oe,ve,se,Qe,pt="corrected"){if(se.length>0&&function(Oe,ve,se){return se.some(Qe=>Ye(Oe,ve,Qe)&&hr(Qe)!==be)}(Oe,se,Qe)){const rn=new bt(ve,function(Oe,ve,se,Qe){const pt={};pt[be]=Qe,Qe._sourceSegment=Oe,Qe._segmentIndexShift=ve.length;for(const Vt of se)if(""===Vt.path&&hr(Vt)!==be){const rn=new bt([],{});rn._sourceSegment=Oe,rn._segmentIndexShift=ve.length,pt[hr(Vt)]=rn}return pt}(Oe,ve,Qe,new bt(se,Oe.children)));return rn._sourceSegment=Oe,rn._segmentIndexShift=ve.length,{segmentGroup:rn,slicedSegments:[]}}if(0===se.length&&function(Oe,ve,se){return se.some(Qe=>Ye(Oe,ve,Qe))}(Oe,se,Qe)){const rn=new bt(Oe.segments,function(Oe,ve,se,Qe,pt,Vt){const rn={};for(const _n of Qe)if(Ye(Oe,se,_n)&&!pt[hr(_n)]){const Kn=new bt([],{});Kn._sourceSegment=Oe,Kn._segmentIndexShift="legacy"===Vt?Oe.segments.length:ve.length,rn[hr(_n)]=Kn}return Object.assign(Object.assign({},pt),rn)}(Oe,ve,se,Qe,Oe.children,pt));return rn._sourceSegment=Oe,rn._segmentIndexShift=ve.length,{segmentGroup:rn,slicedSegments:se}}const Vt=new bt(Oe.segments,Oe.children);return Vt._sourceSegment=Oe,Vt._segmentIndexShift=ve.length,{segmentGroup:Vt,slicedSegments:se}}function Ye(Oe,ve,se){return(!(Oe.hasChildren()||ve.length>0)||"full"!==se.pathMatch)&&""===se.path}function Et(Oe,ve,se,Qe){return!!(hr(Oe)===Qe||Qe!==be&&Ye(ve,se,Oe))&&("**"===Oe.path||$s(ve,Oe,se).matched)}function et(Oe,ve,se){return 0===ve.length&&!Oe.children[se]}class Pt{constructor(ve){this.segmentGroup=ve||null}}class dn{constructor(ve){this.urlTree=ve}}function $n(Oe){return new K.y(ve=>ve.error(new Pt(Oe)))}function li(Oe){return new K.y(ve=>ve.error(new dn(Oe)))}function Bi(Oe){return new K.y(ve=>ve.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Oe}'`)))}class De{constructor(ve,se,Qe,pt,Vt){this.configLoader=se,this.urlSerializer=Qe,this.urlTree=pt,this.config=Vt,this.allowRedirects=!0,this.ngModule=ve.get(a.h0i)}apply(){const ve=Ds(this.urlTree.root,[],[],this.config).segmentGroup,se=new bt(ve.segments,ve.children);return this.expandSegmentGroup(this.ngModule,this.config,se,be).pipe((0,Ce.U)(Vt=>this.createUrlTree(Ln(Vt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,rt.K)(Vt=>{if(Vt instanceof dn)return this.allowRedirects=!1,this.match(Vt.urlTree);throw Vt instanceof Pt?this.noMatchError(Vt):Vt}))}match(ve){return this.expandSegmentGroup(this.ngModule,this.config,ve.root,be).pipe((0,Ce.U)(pt=>this.createUrlTree(Ln(pt),ve.queryParams,ve.fragment))).pipe((0,rt.K)(pt=>{throw pt instanceof Pt?this.noMatchError(pt):pt}))}noMatchError(ve){return new Error(`Cannot match any routes. URL Segment: '${ve.segmentGroup}'`)}createUrlTree(ve,se,Qe){const pt=ve.segments.length>0?new bt([],{[be]:ve}):ve;return new nt(pt,se,Qe)}expandSegmentGroup(ve,se,Qe,pt){return 0===Qe.segments.length&&Qe.hasChildren()?this.expandChildren(ve,se,Qe).pipe((0,Ce.U)(Vt=>new bt([],Vt))):this.expandSegment(ve,Qe,se,Qe.segments,pt,!0)}expandChildren(ve,se,Qe){const pt=[];for(const Vt of Object.keys(Qe.children))"primary"===Vt?pt.unshift(Vt):pt.push(Vt);return(0,C.D)(pt).pipe((0,it.b)(Vt=>{const rn=Qe.children[Vt],_n=Hr(se,Vt);return this.expandSegmentGroup(ve,_n,rn,Vt).pipe((0,Ce.U)(Kn=>({segment:Kn,outlet:Vt})))}),(0,je.R)((Vt,rn)=>(Vt[rn.outlet]=rn.segment,Vt),{}),function(Oe,ve){const se=arguments.length>=2;return Qe=>Qe.pipe(Oe?(0,x.h)((pt,Vt)=>Oe(pt,Vt,Qe)):J.y,xe(1),se?L(ve):re(()=>new r.K))}())}expandSegment(ve,se,Qe,pt,Vt,rn){return(0,C.D)(Qe).pipe((0,it.b)(_n=>this.expandSegmentAgainstRoute(ve,se,Qe,_n,pt,Vt,rn).pipe((0,rt.K)(Wi=>{if(Wi instanceof Pt)return(0,N.of)(null);throw Wi}))),fe(_n=>!!_n),(0,rt.K)((_n,Kn)=>{if(_n instanceof r.K||"EmptyError"===_n.name){if(et(se,pt,Vt))return(0,N.of)(new bt([],{}));throw new Pt(se)}throw _n}))}expandSegmentAgainstRoute(ve,se,Qe,pt,Vt,rn,_n){return Et(pt,se,Vt,rn)?void 0===pt.redirectTo?this.matchSegmentAgainstRoute(ve,se,pt,Vt,rn):_n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ve,se,Qe,pt,Vt,rn):$n(se):$n(se)}expandSegmentAgainstRouteUsingRedirect(ve,se,Qe,pt,Vt,rn){return"**"===pt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ve,Qe,pt,rn):this.expandRegularSegmentAgainstRouteUsingRedirect(ve,se,Qe,pt,Vt,rn)}expandWildCardWithParamsAgainstRouteUsingRedirect(ve,se,Qe,pt){const Vt=this.applyRedirectCommands([],Qe.redirectTo,{});return Qe.redirectTo.startsWith("/")?li(Vt):this.lineralizeSegments(Qe,Vt).pipe((0,ct.z)(rn=>{const _n=new bt(rn,{});return this.expandSegment(ve,_n,se,rn,pt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ve,se,Qe,pt,Vt,rn){const{matched:_n,consumedSegments:Kn,lastChild:Wi,positionalParamSegments:fr}=$s(se,pt,Vt);if(!_n)return $n(se);const Ai=this.applyRedirectCommands(Kn,pt.redirectTo,fr);return pt.redirectTo.startsWith("/")?li(Ai):this.lineralizeSegments(pt,Ai).pipe((0,ct.z)(Ir=>this.expandSegment(ve,se,Qe,Ir.concat(Vt.slice(Wi)),rn,!1)))}matchSegmentAgainstRoute(ve,se,Qe,pt,Vt){if("**"===Qe.path)return Qe.loadChildren?(Qe._loadedConfig?(0,N.of)(Qe._loadedConfig):this.configLoader.load(ve.injector,Qe)).pipe((0,Ce.U)(Ir=>(Qe._loadedConfig=Ir,new bt(pt,{})))):(0,N.of)(new bt(pt,{}));const{matched:rn,consumedSegments:_n,lastChild:Kn}=$s(se,Qe,pt);if(!rn)return $n(se);const Wi=pt.slice(Kn);return this.getChildConfig(ve,Qe,pt).pipe((0,ct.z)(Ai=>{const Ir=Ai.module,Br=Ai.routes,{segmentGroup:Eo,slicedSegments:ia}=Ds(se,_n,Wi,Br),Ro=new bt(Eo.segments,Eo.children);if(0===ia.length&&Ro.hasChildren())return this.expandChildren(Ir,Br,Ro).pipe((0,Ce.U)(Gl=>new bt(_n,Gl)));if(0===Br.length&&0===ia.length)return(0,N.of)(new bt(_n,{}));const Fa=hr(Qe)===Vt;return this.expandSegment(Ir,Ro,Br,ia,Fa?be:Vt,!0).pipe((0,Ce.U)(dl=>new bt(_n.concat(dl.segments),dl.children)))}))}getChildConfig(ve,se,Qe){return se.children?(0,N.of)(new ln(se.children,ve)):se.loadChildren?void 0!==se._loadedConfig?(0,N.of)(se._loadedConfig):this.runCanLoadGuards(ve.injector,se,Qe).pipe((0,ct.z)(pt=>{return pt?this.configLoader.load(ve.injector,se).pipe((0,Ce.U)(Vt=>(se._loadedConfig=Vt,Vt))):(Oe=se,new K.y(ve=>ve.error($t(`Cannot load children because the guard of the route "path: '${Oe.path}'" returned false`))));var Oe})):(0,N.of)(new ln([],ve))}runCanLoadGuards(ve,se,Qe){const pt=se.canLoad;if(!pt||0===pt.length)return(0,N.of)(!0);const Vt=pt.map(rn=>{const _n=ve.get(rn);let Kn;if((Oe=_n)&&de(Oe.canLoad))Kn=_n.canLoad(se,Qe);else{if(!de(_n))throw new Error("Invalid CanLoad guard");Kn=_n(se,Qe)}var Oe;return pn(Kn)});return(0,N.of)(Vt).pipe(Cn(),(0,g.b)(rn=>{if(!cn(rn))return;const _n=$t(`Redirecting to "${this.urlSerializer.serialize(rn)}"`);throw _n.url=rn,_n}),(0,Ce.U)(rn=>!0===rn))}lineralizeSegments(ve,se){let Qe=[],pt=se.root;for(;;){if(Qe=Qe.concat(pt.segments),0===pt.numberOfChildren)return(0,N.of)(Qe);if(pt.numberOfChildren>1||!pt.children[be])return Bi(ve.redirectTo);pt=pt.children[be]}}applyRedirectCommands(ve,se,Qe){return this.applyRedirectCreatreUrlTree(se,this.urlSerializer.parse(se),ve,Qe)}applyRedirectCreatreUrlTree(ve,se,Qe,pt){const Vt=this.createSegmentGroup(ve,se.root,Qe,pt);return new nt(Vt,this.createQueryParams(se.queryParams,this.urlTree.queryParams),se.fragment)}createQueryParams(ve,se){const Qe={};return Hn(ve,(pt,Vt)=>{if("string"==typeof pt&&pt.startsWith(":")){const _n=pt.substring(1);Qe[Vt]=se[_n]}else Qe[Vt]=pt}),Qe}createSegmentGroup(ve,se,Qe,pt){const Vt=this.createSegments(ve,se.segments,Qe,pt);let rn={};return Hn(se.children,(_n,Kn)=>{rn[Kn]=this.createSegmentGroup(ve,_n,Qe,pt)}),new bt(Vt,rn)}createSegments(ve,se,Qe,pt){return se.map(Vt=>Vt.path.startsWith(":")?this.findPosParam(ve,Vt,pt):this.findOrReturn(Vt,Qe))}findPosParam(ve,se,Qe){const pt=Qe[se.path.substring(1)];if(!pt)throw new Error(`Cannot redirect to '${ve}'. Cannot find '${se.path}'.`);return pt}findOrReturn(ve,se){let Qe=0;for(const pt of se){if(pt.path===ve.path)return se.splice(Qe),pt;Qe++}return ve}}function Ln(Oe){const ve={};for(const Qe of Object.keys(Oe.children)){const Vt=Ln(Oe.children[Qe]);(Vt.segments.length>0||Vt.hasChildren())&&(ve[Qe]=Vt)}return function(Oe){if(1===Oe.numberOfChildren&&Oe.children[be]){const ve=Oe.children[be];return new bt(Oe.segments.concat(ve.segments),ve.children)}return Oe}(new bt(Oe.segments,ve))}class gs{constructor(ve){this.path=ve,this.route=this.path[this.path.length-1]}}class Ni{constructor(ve,se){this.component=ve,this.route=se}}function wr(Oe,ve,se){const Qe=Oe._root;return Do(Qe,ve?ve._root:null,se,[Qe.value])}function Vr(Oe,ve,se){const Qe=function(Oe){if(!Oe)return null;for(let ve=Oe.parent;ve;ve=ve.parent){const se=ve.routeConfig;if(se&&se._loadedConfig)return se._loadedConfig}return null}(ve);return(Qe?Qe.module.injector:se).get(Oe)}function Do(Oe,ve,se,Qe,pt={canDeactivateChecks:[],canActivateChecks:[]}){const Vt=Sr(ve);return Oe.children.forEach(rn=>{(function(Oe,ve,se,Qe,pt={canDeactivateChecks:[],canActivateChecks:[]}){const Vt=Oe.value,rn=ve?ve.value:null,_n=se?se.getContext(Oe.value.outlet):null;if(rn&&Vt.routeConfig===rn.routeConfig){const Kn=function(Oe,ve,se){if("function"==typeof se)return se(Oe,ve);switch(se){case"pathParamsChange":return!ni(Oe.url,ve.url);case"pathParamsOrQueryParamsChange":return!ni(Oe.url,ve.url)||!zt(Oe.queryParams,ve.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qi(Oe,ve)||!zt(Oe.queryParams,ve.queryParams);default:return!qi(Oe,ve)}}(rn,Vt,Vt.routeConfig.runGuardsAndResolvers);Kn?pt.canActivateChecks.push(new gs(Qe)):(Vt.data=rn.data,Vt._resolvedData=rn._resolvedData),Do(Oe,ve,Vt.component?_n?_n.children:null:se,Qe,pt),Kn&&_n&&_n.outlet&&_n.outlet.isActivated&&pt.canDeactivateChecks.push(new Ni(_n.outlet.component,rn))}else rn&&st(ve,_n,pt),pt.canActivateChecks.push(new gs(Qe)),Do(Oe,null,Vt.component?_n?_n.children:null:se,Qe,pt)})(rn,Vt[rn.value.outlet],se,Qe.concat([rn.value]),pt),delete Vt[rn.value.outlet]}),Hn(Vt,(rn,_n)=>st(rn,se.getContext(_n),pt)),pt}function st(Oe,ve,se){const Qe=Sr(Oe),pt=Oe.value;Hn(Qe,(Vt,rn)=>{st(Vt,pt.component?ve?ve.children.getContext(rn):null:ve,se)}),se.canDeactivateChecks.push(new Ni(pt.component&&ve&&ve.outlet&&ve.outlet.isActivated?ve.outlet.component:null,pt))}class ti{}function gi(Oe){return new K.y(ve=>ve.error(Oe))}class Ge{constructor(ve,se,Qe,pt,Vt,rn){this.rootComponentType=ve,this.config=se,this.urlTree=Qe,this.url=pt,this.paramsInheritanceStrategy=Vt,this.relativeLinkResolution=rn}recognize(){const ve=Ds(this.urlTree.root,[],[],this.config.filter(rn=>void 0===rn.redirectTo),this.relativeLinkResolution).segmentGroup,se=this.processSegmentGroup(this.config,ve,be);if(null===se)return null;const Qe=new Zn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},be,this.rootComponentType,null,this.urlTree.root,-1,{}),pt=new Ps(Qe,se),Vt=new wn(this.url,pt);return this.inheritParamsAndData(Vt._root),Vt}inheritParamsAndData(ve){const se=ve.value,Qe=Pr(se,this.paramsInheritanceStrategy);se.params=Object.freeze(Qe.params),se.data=Object.freeze(Qe.data),ve.children.forEach(pt=>this.inheritParamsAndData(pt))}processSegmentGroup(ve,se,Qe){return 0===se.segments.length&&se.hasChildren()?this.processChildren(ve,se):this.processSegment(ve,se,se.segments,Qe)}processChildren(ve,se){const Qe=[];for(const Vt of Object.keys(se.children)){const rn=se.children[Vt],_n=Hr(ve,Vt),Kn=this.processSegmentGroup(_n,rn,Vt);if(null===Kn)return null;Qe.push(...Kn)}const pt=ue(Qe);return pt.sort((ve,se)=>ve.value.outlet===be?-1:se.value.outlet===be?1:ve.value.outlet.localeCompare(se.value.outlet)),pt}processSegment(ve,se,Qe,pt){for(const Vt of ve){const rn=this.processSegmentAgainstRoute(Vt,se,Qe,pt);if(null!==rn)return rn}return et(se,Qe,pt)?[]:null}processSegmentAgainstRoute(ve,se,Qe,pt){if(ve.redirectTo||!Et(ve,se,Qe,pt))return null;let Vt,rn=[],_n=[];if("**"===ve.path){const Br=Qe.length>0?xn(Qe).parameters:{};Vt=new Zn(Qe,Br,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ue(ve),hr(ve),ve.component,ve,me(se),wi(se)+Qe.length,wt(ve))}else{const Br=$s(se,ve,Qe);if(!Br.matched)return null;rn=Br.consumedSegments,_n=Qe.slice(Br.lastChild),Vt=new Zn(rn,Br.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ue(ve),hr(ve),ve.component,ve,me(se),wi(se)+rn.length,wt(ve))}const Kn=(Oe=ve).children?Oe.children:Oe.loadChildren?Oe._loadedConfig.routes:[],{segmentGroup:Wi,slicedSegments:fr}=Ds(se,rn,_n,Kn.filter(Br=>void 0===Br.redirectTo),this.relativeLinkResolution);var Oe;if(0===fr.length&&Wi.hasChildren()){const Br=this.processChildren(Kn,Wi);return null===Br?null:[new Ps(Vt,Br)]}if(0===Kn.length&&0===fr.length)return[new Ps(Vt,[])];const Ai=hr(ve)===pt,Ir=this.processSegment(Kn,Wi,fr,Ai?be:pt);return null===Ir?null:[new Ps(Vt,Ir)]}}function It(Oe){const ve=Oe.value.routeConfig;return ve&&""===ve.path&&void 0===ve.redirectTo}function ue(Oe){const ve=[],se=new Set;for(const Qe of Oe){if(!It(Qe)){ve.push(Qe);continue}const pt=ve.find(Vt=>Qe.value.routeConfig===Vt.value.routeConfig);void 0!==pt?(pt.children.push(...Qe.children),se.add(pt)):ve.push(Qe)}for(const Qe of se){const pt=ue(Qe.children);ve.push(new Ps(Qe.value,pt))}return ve.filter(Qe=>!se.has(Qe))}function me(Oe){let ve=Oe;for(;ve._sourceSegment;)ve=ve._sourceSegment;return ve}function wi(Oe){let ve=Oe,se=ve._segmentIndexShift?ve._segmentIndexShift:0;for(;ve._sourceSegment;)ve=ve._sourceSegment,se+=ve._segmentIndexShift?ve._segmentIndexShift:0;return se-1}function Ue(Oe){return Oe.data||{}}function wt(Oe){return Oe.resolve||{}}function Jn(Oe){return(0,e.w)(ve=>{const se=Oe(ve);return se?(0,C.D)(se).pipe((0,Ce.U)(()=>ve)):(0,N.of)(ve)})}class Ji extends class{shouldDetach(ve){return!1}store(ve,se){}shouldAttach(ve){return!1}retrieve(ve){return null}shouldReuseRoute(ve,se){return ve.routeConfig===se.routeConfig}}{}const ls=new a.OlP("ROUTES");class Di{constructor(ve,se,Qe,pt){this.injector=ve,this.compiler=se,this.onLoadStartListener=Qe,this.onLoadEndListener=pt}load(ve,se){if(se._loader$)return se._loader$;this.onLoadStartListener&&this.onLoadStartListener(se);const pt=this.loadModuleFactory(se.loadChildren).pipe((0,Ce.U)(Vt=>{this.onLoadEndListener&&this.onLoadEndListener(se);const rn=Vt.create(ve);return new ln(hn(rn.injector.get(ls,void 0,a.XFs.Self|a.XFs.Optional)).map(ir),rn)}),(0,rt.K)(Vt=>{throw se._loader$=void 0,Vt}));return se._loader$=new E.c(pt,()=>new ee.x).pipe((0,qe.x)()),se._loader$}loadModuleFactory(ve){return pn(ve()).pipe((0,ct.z)(se=>se instanceof a.YKP?(0,N.of)(se):(0,C.D)(this.compiler.compileModuleAsync(se))))}}class ms{shouldProcessUrl(ve){return!0}extract(ve){return ve}merge(ve,se){return ve}}function hs(Oe){throw Oe}function Wn(Oe,ve,se){return ve.parse("/")}function br(Oe,ve){return(0,N.of)(null)}const _s={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vi=(()=>{class Oe{constructor(se,Qe,pt,Vt,rn,_n,Kn){this.rootComponentType=se,this.urlSerializer=Qe,this.rootContexts=pt,this.location=Vt,this.config=Kn,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ee.x,this.errorHandler=hs,this.malformedUriErrorHandler=Wn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:br,afterPreactivation:br},this.urlHandlingStrategy=new ms,this.routeReuseStrategy=new Ji,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=rn.get(a.h0i),this.console=rn.get(a.c2e);const Ai=rn.get(a.R0b);this.isNgZoneEnabled=Ai instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(Kn),this.currentUrlTree=new nt(new bt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Di(rn,_n,Ir=>this.triggerEvent(new ut(Ir)),Ir=>this.triggerEvent(new Mt(Ir))),this.routerState=Or(this.currentUrlTree,this.rootComponentType),this.transitions=new ze.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 se;return null===(se=this.location.getState())||void 0===se?void 0:se.\u0275routerPageId}setupNavigations(se){const Qe=this.events;return se.pipe((0,x.h)(pt=>0!==pt.id),(0,Ce.U)(pt=>Object.assign(Object.assign({},pt),{extractedUrl:this.urlHandlingStrategy.extract(pt.rawUrl)})),(0,e.w)(pt=>{let Vt=!1,rn=!1;return(0,N.of)(pt).pipe((0,g.b)(_n=>{this.currentNavigation={id:_n.id,initialUrl:_n.currentRawUrl,extractedUrl:_n.extractedUrl,trigger:_n.source,extras:_n.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,e.w)(_n=>{const Kn=this.browserUrlTree.toString(),Wi=!this.navigated||_n.extractedUrl.toString()!==Kn||Kn!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Wi)&&this.urlHandlingStrategy.shouldProcessUrl(_n.rawUrl))return lo(_n.source)&&(this.browserUrlTree=_n.extractedUrl),(0,N.of)(_n).pipe((0,e.w)(Ai=>{const Ir=this.transitions.getValue();return Qe.next(new Te(Ai.id,this.serializeUrl(Ai.extractedUrl),Ai.source,Ai.restoredState)),Ir!==this.transitions.getValue()?H.E:Promise.resolve(Ai)}),function(Oe,ve,se,Qe){return(0,e.w)(pt=>function(Oe,ve,se,Qe,pt){return new De(Oe,ve,se,Qe,pt).apply()}(Oe,ve,se,pt.extractedUrl,Qe).pipe((0,Ce.U)(Vt=>Object.assign(Object.assign({},pt),{urlAfterRedirects:Vt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,g.b)(Ai=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ai.urlAfterRedirects})}),function(Oe,ve,se,Qe,pt){return(0,ct.z)(Vt=>function(Oe,ve,se,Qe,pt="emptyOnly",Vt="legacy"){try{const rn=new Ge(Oe,ve,se,Qe,pt,Vt).recognize();return null===rn?gi(new ti):(0,N.of)(rn)}catch(rn){return gi(rn)}}(Oe,ve,Vt.urlAfterRedirects,se(Vt.urlAfterRedirects),Qe,pt).pipe((0,Ce.U)(rn=>Object.assign(Object.assign({},Vt),{targetSnapshot:rn}))))}(this.rootComponentType,this.config,Ai=>this.serializeUrl(Ai),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,g.b)(Ai=>{if("eager"===this.urlUpdateStrategy){if(!Ai.extras.skipLocationChange){const Br=this.urlHandlingStrategy.merge(Ai.urlAfterRedirects,Ai.rawUrl);this.setBrowserUrl(Br,Ai)}this.browserUrlTree=Ai.urlAfterRedirects}const Ir=new Me(Ai.id,this.serializeUrl(Ai.extractedUrl),this.serializeUrl(Ai.urlAfterRedirects),Ai.targetSnapshot);Qe.next(Ir)}));if(Wi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Ir,extractedUrl:Br,source:Eo,restoredState:ia,extras:Ro}=_n,Fa=new Te(Ir,this.serializeUrl(Br),Eo,ia);Qe.next(Fa);const jl=Or(Br,this.rootComponentType).snapshot;return(0,N.of)(Object.assign(Object.assign({},_n),{targetSnapshot:jl,urlAfterRedirects:Br,extras:Object.assign(Object.assign({},Ro),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=_n.rawUrl,_n.resolve(null),H.E}),Jn(_n=>{const{targetSnapshot:Kn,id:Wi,extractedUrl:fr,rawUrl:Ai,extras:{skipLocationChange:Ir,replaceUrl:Br}}=_n;return this.hooks.beforePreactivation(Kn,{navigationId:Wi,appliedUrlTree:fr,rawUrlTree:Ai,skipLocationChange:!!Ir,replaceUrl:!!Br})}),(0,g.b)(_n=>{const Kn=new ke(_n.id,this.serializeUrl(_n.extractedUrl),this.serializeUrl(_n.urlAfterRedirects),_n.targetSnapshot);this.triggerEvent(Kn)}),(0,Ce.U)(_n=>Object.assign(Object.assign({},_n),{guards:wr(_n.targetSnapshot,_n.currentSnapshot,this.rootContexts)})),function(Oe,ve){return(0,ct.z)(se=>{const{targetSnapshot:Qe,currentSnapshot:pt,guards:{canActivateChecks:Vt,canDeactivateChecks:rn}}=se;return 0===rn.length&&0===Vt.length?(0,N.of)(Object.assign(Object.assign({},se),{guardsResult:!0})):function(Oe,ve,se,Qe){return(0,C.D)(Oe).pipe((0,ct.z)(pt=>function(Oe,ve,se,Qe,pt){const Vt=ve&&ve.routeConfig?ve.routeConfig.canDeactivate:null;if(!Vt||0===Vt.length)return(0,N.of)(!0);const rn=Vt.map(_n=>{const Kn=Vr(_n,ve,pt);let Wi;if(function(Oe){return Oe&&de(Oe.canDeactivate)}(Kn))Wi=pn(Kn.canDeactivate(Oe,ve,se,Qe));else{if(!de(Kn))throw new Error("Invalid CanDeactivate guard");Wi=pn(Kn(Oe,ve,se,Qe))}return Wi.pipe(fe())});return(0,N.of)(rn).pipe(Cn())}(pt.component,pt.route,se,ve,Qe)),fe(pt=>!0!==pt,!0))}(rn,Qe,pt,Oe).pipe((0,ct.z)(_n=>_n&&function(Oe){return"boolean"==typeof Oe}(_n)?function(Oe,ve,se,Qe){return(0,C.D)(ve).pipe((0,it.b)(pt=>(0,O.z)(function(Oe,ve){return null!==Oe&&ve&&ve(new At(Oe)),(0,N.of)(!0)}(pt.route.parent,Qe),function(Oe,ve){return null!==Oe&&ve&&ve(new Wt(Oe)),(0,N.of)(!0)}(pt.route,Qe),function(Oe,ve,se){const Qe=ve[ve.length-1],Vt=ve.slice(0,ve.length-1).reverse().map(rn=>function(Oe){const ve=Oe.routeConfig?Oe.routeConfig.canActivateChild:null;return ve&&0!==ve.length?{node:Oe,guards:ve}:null}(rn)).filter(rn=>null!==rn).map(rn=>(0,P.P)(()=>{const _n=rn.guards.map(Kn=>{const Wi=Vr(Kn,rn.node,se);let fr;if(function(Oe){return Oe&&de(Oe.canActivateChild)}(Wi))fr=pn(Wi.canActivateChild(Qe,Oe));else{if(!de(Wi))throw new Error("Invalid CanActivateChild guard");fr=pn(Wi(Qe,Oe))}return fr.pipe(fe())});return(0,N.of)(_n).pipe(Cn())}));return(0,N.of)(Vt).pipe(Cn())}(Oe,pt.path,se),function(Oe,ve,se){const Qe=ve.routeConfig?ve.routeConfig.canActivate:null;if(!Qe||0===Qe.length)return(0,N.of)(!0);const pt=Qe.map(Vt=>(0,P.P)(()=>{const rn=Vr(Vt,ve,se);let _n;if(function(Oe){return Oe&&de(Oe.canActivate)}(rn))_n=pn(rn.canActivate(ve,Oe));else{if(!de(rn))throw new Error("Invalid CanActivate guard");_n=pn(rn(ve,Oe))}return _n.pipe(fe())}));return(0,N.of)(pt).pipe(Cn())}(Oe,pt.route,se))),fe(pt=>!0!==pt,!0))}(Qe,Vt,Oe,ve):(0,N.of)(_n)),(0,Ce.U)(_n=>Object.assign(Object.assign({},se),{guardsResult:_n})))})}(this.ngModule.injector,_n=>this.triggerEvent(_n)),(0,g.b)(_n=>{if(cn(_n.guardsResult)){const Wi=$t(`Redirecting to "${this.serializeUrl(_n.guardsResult)}"`);throw Wi.url=_n.guardsResult,Wi}const Kn=new G(_n.id,this.serializeUrl(_n.extractedUrl),this.serializeUrl(_n.urlAfterRedirects),_n.targetSnapshot,!!_n.guardsResult);this.triggerEvent(Kn)}),(0,x.h)(_n=>!!_n.guardsResult||(this.restoreHistory(_n),this.cancelNavigationTransition(_n,""),!1)),Jn(_n=>{if(_n.guards.canActivateChecks.length)return(0,N.of)(_n).pipe((0,g.b)(Kn=>{const Wi=new ot(Kn.id,this.serializeUrl(Kn.extractedUrl),this.serializeUrl(Kn.urlAfterRedirects),Kn.targetSnapshot);this.triggerEvent(Wi)}),(0,e.w)(Kn=>{let Wi=!1;return(0,N.of)(Kn).pipe(function(Oe,ve){return(0,ct.z)(se=>{const{targetSnapshot:Qe,guards:{canActivateChecks:pt}}=se;if(!pt.length)return(0,N.of)(se);let Vt=0;return(0,C.D)(pt).pipe((0,it.b)(rn=>function(Oe,ve,se,Qe){return function(Oe,ve,se,Qe){const pt=Object.keys(Oe);if(0===pt.length)return(0,N.of)({});const Vt={};return(0,C.D)(pt).pipe((0,ct.z)(rn=>function(Oe,ve,se,Qe){const pt=Vr(Oe,ve,Qe);return pn(pt.resolve?pt.resolve(ve,se):pt(ve,se))}(Oe[rn],ve,se,Qe).pipe((0,g.b)(_n=>{Vt[rn]=_n}))),xe(1),(0,ct.z)(()=>Object.keys(Vt).length===pt.length?(0,N.of)(Vt):H.E))}(Oe._resolve,Oe,ve,Qe).pipe((0,Ce.U)(Vt=>(Oe._resolvedData=Vt,Oe.data=Object.assign(Object.assign({},Oe.data),Pr(Oe,se).resolve),null)))}(rn.route,Qe,Oe,ve)),(0,g.b)(()=>Vt++),xe(1),(0,ct.z)(rn=>Vt===pt.length?(0,N.of)(se):H.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,g.b)({next:()=>Wi=!0,complete:()=>{Wi||(this.restoreHistory(Kn),this.cancelNavigationTransition(Kn,"At least one route resolver didn't emit any value."))}}))}),(0,g.b)(Kn=>{const Wi=new We(Kn.id,this.serializeUrl(Kn.extractedUrl),this.serializeUrl(Kn.urlAfterRedirects),Kn.targetSnapshot);this.triggerEvent(Wi)}))}),Jn(_n=>{const{targetSnapshot:Kn,id:Wi,extractedUrl:fr,rawUrl:Ai,extras:{skipLocationChange:Ir,replaceUrl:Br}}=_n;return this.hooks.afterPreactivation(Kn,{navigationId:Wi,appliedUrlTree:fr,rawUrlTree:Ai,skipLocationChange:!!Ir,replaceUrl:!!Br})}),(0,Ce.U)(_n=>{const Kn=function(Oe,ve,se){const Qe=Us(Oe,ve._root,se?se._root:void 0);return new Ns(Qe,ve)}(this.routeReuseStrategy,_n.targetSnapshot,_n.currentRouterState);return Object.assign(Object.assign({},_n),{targetRouterState:Kn})}),(0,g.b)(_n=>{this.currentUrlTree=_n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(_n.urlAfterRedirects,_n.rawUrl),this.routerState=_n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(_n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,_n),this.browserUrlTree=_n.urlAfterRedirects)}),((Oe,ve,se)=>(0,Ce.U)(Qe=>(new Zr(ve,Qe.targetRouterState,Qe.currentRouterState,se).activate(Oe),Qe)))(this.rootContexts,this.routeReuseStrategy,_n=>this.triggerEvent(_n)),(0,g.b)({next(){Vt=!0},complete(){Vt=!0}}),(0,Ve.x)(()=>{var _n;Vt||rn||this.cancelNavigationTransition(pt,`Navigation ID ${pt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(_n=this.currentNavigation)||void 0===_n?void 0:_n.id)===pt.id&&(this.currentNavigation=null)}),(0,rt.K)(_n=>{if(rn=!0,function(Oe){return Oe&&Oe[Nt]}(_n)){const Kn=cn(_n.url);Kn||(this.navigated=!0,this.restoreHistory(pt,!0));const Wi=new he(pt.id,this.serializeUrl(pt.extractedUrl),_n.message);Qe.next(Wi),Kn?setTimeout(()=>{const fr=this.urlHandlingStrategy.merge(_n.url,this.rawUrlTree),Ai={skipLocationChange:pt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lo(pt.source)};this.scheduleNavigation(fr,"imperative",null,Ai,{resolve:pt.resolve,reject:pt.reject,promise:pt.promise})},0):pt.resolve(!1)}else{this.restoreHistory(pt,!0);const Kn=new Ne(pt.id,this.serializeUrl(pt.extractedUrl),_n);Qe.next(Kn);try{pt.resolve(this.errorHandler(_n))}catch(Wi){pt.reject(Wi)}}return H.E}))}))}resetRootComponentType(se){this.rootComponentType=se,this.routerState.root.component=this.rootComponentType}setTransition(se){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),se))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(se=>{const Qe="popstate"===se.type?"popstate":"hashchange";"popstate"===Qe&&setTimeout(()=>{var pt;const Vt={replaceUrl:!0},rn=(null===(pt=se.state)||void 0===pt?void 0:pt.navigationId)?se.state:null;if(rn){const Kn=Object.assign({},rn);delete Kn.navigationId,delete Kn.\u0275routerPageId,0!==Object.keys(Kn).length&&(Vt.state=Kn)}const _n=this.parseUrl(se.url);this.scheduleNavigation(_n,Qe,rn,Vt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(se){this.events.next(se)}resetConfig(se){os(se),this.config=se.map(ir),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(se,Qe={}){const{relativeTo:pt,queryParams:Vt,fragment:rn,queryParamsHandling:_n,preserveFragment:Kn}=Qe,Wi=pt||this.routerState.root,fr=Kn?this.currentUrlTree.fragment:rn;let Ai=null;switch(_n){case"merge":Ai=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Vt);break;case"preserve":Ai=this.currentUrlTree.queryParams;break;default:Ai=Vt||null}return null!==Ai&&(Ai=this.removeEmptyProps(Ai)),function(Oe,ve,se,Qe,pt){if(0===se.length)return Tr(ve.root,ve.root,ve,Qe,pt);const Vt=function(Oe){if("string"==typeof Oe[0]&&1===Oe.length&&"/"===Oe[0])return new eo(!0,0,Oe);let ve=0,se=!1;const Qe=Oe.reduce((pt,Vt,rn)=>{if("object"==typeof Vt&&null!=Vt){if(Vt.outlets){const _n={};return Hn(Vt.outlets,(Kn,Wi)=>{_n[Wi]="string"==typeof Kn?Kn.split("/"):Kn}),[...pt,{outlets:_n}]}if(Vt.segmentPath)return[...pt,Vt.segmentPath]}return"string"!=typeof Vt?[...pt,Vt]:0===rn?(Vt.split("/").forEach((_n,Kn)=>{0==Kn&&"."===_n||(0==Kn&&""===_n?se=!0:".."===_n?ve++:""!=_n&&pt.push(_n))}),pt):[...pt,Vt]},[]);return new eo(se,ve,Qe)}(se);if(Vt.toRoot())return Tr(ve.root,new bt([],{}),ve,Qe,pt);const rn=function(Oe,ve,se){if(Oe.isAbsolute)return new Rr(ve.root,!0,0);if(-1===se.snapshot._lastPathIndex){const Vt=se.snapshot._urlSegment;return new Rr(Vt,Vt===ve.root,0)}const Qe=Yr(Oe.commands[0])?0:1;return function(Oe,ve,se){let Qe=Oe,pt=ve,Vt=se;for(;Vt>pt;){if(Vt-=pt,Qe=Qe.parent,!Qe)throw new Error("Invalid number of '../'");pt=Qe.segments.length}return new Rr(Qe,!1,pt-Vt)}(se.snapshot._urlSegment,se.snapshot._lastPathIndex+Qe,Oe.numberOfDoubleDots)}(Vt,ve,Oe),_n=rn.processChildren?er(rn.segmentGroup,rn.index,Vt.commands):Qr(rn.segmentGroup,rn.index,Vt.commands);return Tr(rn.segmentGroup,_n,ve,Qe,pt)}(Wi,this.currentUrlTree,se,Ai,null!=fr?fr:null)}navigateByUrl(se,Qe={skipLocationChange:!1}){const pt=cn(se)?se:this.parseUrl(se),Vt=this.urlHandlingStrategy.merge(pt,this.rawUrlTree);return this.scheduleNavigation(Vt,"imperative",null,Qe)}navigate(se,Qe={skipLocationChange:!1}){return function(Oe){for(let ve=0;ve{const Vt=se[pt];return null!=Vt&&(Qe[pt]=Vt),Qe},{})}processNavigations(){this.navigations.subscribe(se=>{this.navigated=!0,this.lastSuccessfulId=se.id,this.currentPageId=se.targetPageId,this.events.next(new Ze(se.id,this.serializeUrl(se.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,se.resolve(!0)},se=>{this.console.warn(`Unhandled Navigation Error: ${se}`)})}scheduleNavigation(se,Qe,pt,Vt,rn){var _n,Kn,Wi;if(this.disposed)return Promise.resolve(!1);const fr=this.transitions.value,Ai=lo(Qe)&&fr&&!lo(fr.source),Ir=fr.rawUrl.toString()===se.toString(),Br=fr.id===(null===(_n=this.currentNavigation)||void 0===_n?void 0:_n.id);if(Ai&&Ir&&Br)return Promise.resolve(!0);let ia,Ro,Fa;rn?(ia=rn.resolve,Ro=rn.reject,Fa=rn.promise):Fa=new Promise((Gl,bo)=>{ia=Gl,Ro=bo});const jl=++this.navigationId;let dl;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(pt=this.location.getState()),dl=pt&&pt.\u0275routerPageId?pt.\u0275routerPageId:Vt.replaceUrl||Vt.skipLocationChange?null!==(Kn=this.browserPageId)&&void 0!==Kn?Kn:0:(null!==(Wi=this.browserPageId)&&void 0!==Wi?Wi:0)+1):dl=0,this.setTransition({id:jl,targetPageId:dl,source:Qe,restoredState:pt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:se,extras:Vt,resolve:ia,reject:Ro,promise:Fa,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Fa.catch(Gl=>Promise.reject(Gl))}setBrowserUrl(se,Qe){const pt=this.urlSerializer.serialize(se),Vt=Object.assign(Object.assign({},Qe.extras.state),this.generateNgRouterState(Qe.id,Qe.targetPageId));this.location.isCurrentPathEqualTo(pt)||Qe.extras.replaceUrl?this.location.replaceState(pt,"",Vt):this.location.go(pt,"",Vt)}restoreHistory(se,Qe=!1){var pt,Vt;if("computed"===this.canceledNavigationResolution){const rn=this.currentPageId-se.targetPageId;"popstate"!==se.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(pt=this.currentNavigation)||void 0===pt?void 0:pt.finalUrl)||0===rn?this.currentUrlTree===(null===(Vt=this.currentNavigation)||void 0===Vt?void 0:Vt.finalUrl)&&0===rn&&(this.resetState(se),this.browserUrlTree=se.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(rn)}else"replace"===this.canceledNavigationResolution&&(Qe&&this.resetState(se),this.resetUrlToCurrentUrlTree())}resetState(se){this.routerState=se.currentRouterState,this.currentUrlTree=se.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,se.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(se,Qe){const pt=new he(se.id,this.serializeUrl(se.extractedUrl),Qe);this.triggerEvent(pt),se.resolve(!1)}generateNgRouterState(se,Qe){return"computed"===this.canceledNavigationResolution?{navigationId:se,\u0275routerPageId:Qe}:{navigationId:se}}}return Oe.\u0275fac=function(se){a.$Z()},Oe.\u0275prov=a.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();function lo(Oe){return"imperative"!==Oe}let xa=(()=>{class Oe{constructor(se,Qe,pt){this.router=se,this.route=Qe,this.locationStrategy=pt,this.commands=null,this.href=null,this.onChanges=new ee.x,this.subscription=se.events.subscribe(Vt=>{Vt instanceof Ze&&this.updateTargetUrlAndHref()})}set routerLink(se){this.commands=null!=se?Array.isArray(se)?se:[se]:null}ngOnChanges(se){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(se,Qe,pt,Vt,rn){if(0!==se||Qe||pt||Vt||rn||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const _n={skipLocationChange:_r(this.skipLocationChange),replaceUrl:_r(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,_n),!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 Oe.\u0275fac=function(se){return new(se||Oe)(a.Y36(Vi),a.Y36(Ri),a.Y36(X.S$))},Oe.\u0275dir=a.lG2({type:Oe,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(se,Qe){1&se&&a.NdJ("click",function(Vt){return Qe.onClick(Vt.button,Vt.ctrlKey,Vt.shiftKey,Vt.altKey,Vt.metaKey)}),2&se&&a.uIk("target",Qe.target)("href",Qe.href,a.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),Oe})();function _r(Oe){return""===Oe||!!Oe}class yo{}class yl{preload(ve,se){return(0,N.of)(null)}}let rr=(()=>{class Oe{constructor(se,Qe,pt,Vt){this.router=se,this.injector=pt,this.preloadingStrategy=Vt,this.loader=new Di(pt,Qe,Kn=>se.triggerEvent(new ut(Kn)),Kn=>se.triggerEvent(new Mt(Kn)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,x.h)(se=>se instanceof Ze),(0,it.b)(()=>this.preload())).subscribe(()=>{})}preload(){const se=this.injector.get(a.h0i);return this.processRoutes(se,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(se,Qe){const pt=[];for(const Vt of Qe)if(Vt.loadChildren&&!Vt.canLoad&&Vt._loadedConfig){const rn=Vt._loadedConfig;pt.push(this.processRoutes(rn.module,rn.routes))}else Vt.loadChildren&&!Vt.canLoad?pt.push(this.preloadConfig(se,Vt)):Vt.children&&pt.push(this.processRoutes(se,Vt.children));return(0,C.D)(pt).pipe((0,He.J)(),(0,Ce.U)(Vt=>{}))}preloadConfig(se,Qe){return this.preloadingStrategy.preload(Qe,()=>(Qe._loadedConfig?(0,N.of)(Qe._loadedConfig):this.loader.load(se.injector,Qe)).pipe((0,ct.z)(Vt=>(Qe._loadedConfig=Vt,this.processRoutes(Vt.module,Vt.routes)))))}}return Oe.\u0275fac=function(se){return new(se||Oe)(a.LFG(Vi),a.LFG(a.Sil),a.LFG(a.zs3),a.LFG(yo))},Oe.\u0275prov=a.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),ka=(()=>{class Oe{constructor(se,Qe,pt={}){this.router=se,this.viewportScroller=Qe,this.options=pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},pt.scrollPositionRestoration=pt.scrollPositionRestoration||"disabled",pt.anchorScrolling=pt.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(se=>{se instanceof Te?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=se.navigationTrigger,this.restoredId=se.restoredState?se.restoredState.navigationId:0):se instanceof Ze&&(this.lastId=se.id,this.scheduleScrollEvent(se,this.router.parseUrl(se.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(se=>{se instanceof ye&&(se.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(se.position):se.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(se.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(se,Qe){this.router.triggerEvent(new ye(se,"popstate"===this.lastSource?this.store[this.restoredId]:null,Qe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Oe.\u0275fac=function(se){a.$Z()},Oe.\u0275prov=a.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const Va=new a.OlP("ROUTER_CONFIGURATION"),Aa=new a.OlP("ROUTER_FORROOT_GUARD"),bl=[X.Ye,{provide:Ii,useClass:Zi},{provide:Vi,useFactory:function(Oe,ve,se,Qe,pt,Vt,rn={},_n,Kn){const Wi=new Vi(null,Oe,ve,se,Qe,pt,hn(Vt));return _n&&(Wi.urlHandlingStrategy=_n),Kn&&(Wi.routeReuseStrategy=Kn),function(Oe,ve){Oe.errorHandler&&(ve.errorHandler=Oe.errorHandler),Oe.malformedUriErrorHandler&&(ve.malformedUriErrorHandler=Oe.malformedUriErrorHandler),Oe.onSameUrlNavigation&&(ve.onSameUrlNavigation=Oe.onSameUrlNavigation),Oe.paramsInheritanceStrategy&&(ve.paramsInheritanceStrategy=Oe.paramsInheritanceStrategy),Oe.relativeLinkResolution&&(ve.relativeLinkResolution=Oe.relativeLinkResolution),Oe.urlUpdateStrategy&&(ve.urlUpdateStrategy=Oe.urlUpdateStrategy),Oe.canceledNavigationResolution&&(ve.canceledNavigationResolution=Oe.canceledNavigationResolution)}(rn,Wi),rn.enableTracing&&Wi.events.subscribe(fr=>{var Ai,Ir;null===(Ai=console.group)||void 0===Ai||Ai.call(console,`Router Event: ${fr.constructor.name}`),console.log(fr.toString()),console.log(fr),null===(Ir=console.groupEnd)||void 0===Ir||Ir.call(console)}),Wi},deps:[Ii,ii,X.Ye,a.zs3,a.Sil,ls,Va,[class{},new a.FiY],[class{},new a.FiY]]},ii,{provide:Ri,useFactory:function(Oe){return Oe.routerState.root},deps:[Vi]},rr,yl,class{preload(ve,se){return se().pipe((0,rt.K)(()=>(0,N.of)(null)))}},{provide:Va,useValue:{enableTracing:!1}}];function kl(){return new a.PXZ("Router",Vi)}let Mc=(()=>{class Oe{constructor(se,Qe){}static forRoot(se,Qe){return{ngModule:Oe,providers:[bl,sc(se),{provide:Aa,useFactory:Xa,deps:[[Vi,new a.FiY,new a.tp0]]},{provide:Va,useValue:Qe||{}},{provide:X.S$,useFactory:Oa,deps:[X.lw,[new a.tBr(X.mr),new a.FiY],Va]},{provide:ka,useFactory:Al,deps:[Vi,X.EM,Va]},{provide:yo,useExisting:Qe&&Qe.preloadingStrategy?Qe.preloadingStrategy:yl},{provide:a.PXZ,multi:!0,useFactory:kl},[Ol,{provide:a.ip1,multi:!0,useFactory:Cl,deps:[Ol]},{provide:la,useFactory:qd,deps:[Ol]},{provide:a.tb,multi:!0,useExisting:la}]]}}static forChild(se){return{ngModule:Oe,providers:[sc(se)]}}}return Oe.\u0275fac=function(se){return new(se||Oe)(a.LFG(Aa,8),a.LFG(Vi,8))},Oe.\u0275mod=a.oAB({type:Oe}),Oe.\u0275inj=a.cJS({}),Oe})();function Al(Oe,ve,se){return se.scrollOffset&&ve.setOffset(se.scrollOffset),new ka(Oe,ve,se)}function Oa(Oe,ve,se={}){return se.useHash?new X.Do(Oe,ve):new X.b0(Oe,ve)}function Xa(Oe){return"guarded"}function sc(Oe){return[{provide:a.deG,multi:!0,useValue:Oe},{provide:ls,multi:!0,useValue:Oe}]}let Ol=(()=>{class Oe{constructor(se){this.injector=se,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ee.x}appInitializer(){return this.injector.get(X.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Qe=null;const pt=new Promise(_n=>Qe=_n),Vt=this.injector.get(Vi),rn=this.injector.get(Va);return"disabled"===rn.initialNavigation?(Vt.setUpLocationChangeListener(),Qe(!0)):"enabled"===rn.initialNavigation||"enabledBlocking"===rn.initialNavigation?(Vt.hooks.afterPreactivation=()=>this.initNavigation?(0,N.of)(null):(this.initNavigation=!0,Qe(!0),this.resultOfPreactivationDone),Vt.initialNavigation()):Qe(!0),pt})}bootstrapListener(se){const Qe=this.injector.get(Va),pt=this.injector.get(rr),Vt=this.injector.get(ka),rn=this.injector.get(Vi),_n=this.injector.get(a.z2F);se===_n.components[0]&&(("enabledNonBlocking"===Qe.initialNavigation||void 0===Qe.initialNavigation)&&rn.initialNavigation(),pt.setUpPreloading(),Vt.init(),rn.resetRootComponentType(_n.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Oe.\u0275fac=function(se){return new(se||Oe)(a.LFG(a.zs3))},Oe.\u0275prov=a.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();function Cl(Oe){return Oe.appInitializer.bind(Oe)}function qd(Oe){return Oe.bootstrapListener.bind(Oe)}const la=new a.OlP("Router Initializer")},9444:(St,oe,S)=>{"use strict";S.d(oe,{BN:()=>Xe,by:()=>gi,uH:()=>wi});var a=S(5e3);function C(Ue){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(wt){return typeof wt}:function(wt){return wt&&"function"==typeof Symbol&&wt.constructor===Symbol&&wt!==Symbol.prototype?"symbol":typeof wt})(Ue)}function ze(Ue,wt){for(var Bt=0;Bt0;)wt+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return wt}function Vs(Ue){return"".concat(Ue).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function vs(Ue){return Object.keys(Ue||{}).reduce(function(wt,Bt){return wt+"".concat(Bt,": ").concat(Ue[Bt],";")},"")}function mr(Ue){return Ue.size!==kn.size||Ue.x!==kn.x||Ue.y!==kn.y||Ue.rotate!==kn.rotate||Ue.flipX||Ue.flipY}function vi(Ue){var wt=Ue.transform,Ut=Ue.iconWidth,mn={transform:"translate(".concat(Ue.containerWidth/2," 256)")},In="translate(".concat(32*wt.x,", ").concat(32*wt.y,") "),En="scale(".concat(wt.size/16*(wt.flipX?-1:1),", ").concat(wt.size/16*(wt.flipY?-1:1),") "),Jn="rotate(".concat(wt.rotate," 0 0)");return{outer:mn,inner:{transform:"".concat(In," ").concat(En," ").concat(Jn)},path:{transform:"translate(".concat(Ut/2*-1," -256)")}}}var Ms={x:0,y:0,width:"100%",height:"100%"};function ur(Ue){var wt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ue.attributes&&(Ue.attributes.fill||wt)&&(Ue.attributes.fill="black"),Ue}function pr(Ue){return"g"===Ue.tag?Ue.children:[Ue]}function $r(Ue){var wt=Ue.icons,Bt=wt.main,Ut=wt.mask,mn=Ue.prefix,In=Ue.iconName,En=Ue.transform,Jn=Ue.symbol,mi=Ue.title,as=Ue.maskId,Ji=Ue.titleId,ls=Ue.extra,Di=Ue.watchable,Ki=void 0!==Di&&Di,ms=Ut.found?Ut:Bt,hs=ms.width,Wn=ms.height,br="fak"===mn,_s=br?"":"fa-w-".concat(Math.ceil(hs/Wn*16)),zr=[Re.replacementClass,In?"".concat(Re.familyPrefix,"-").concat(In):"",_s].filter(function(ro){return-1===ls.classes.indexOf(ro)}).filter(function(ro){return""!==ro||!!ro}).concat(ls.classes).join(" "),Vi={children:[],attributes:r({},ls.attributes,{"data-prefix":mn,"data-icon":In,class:zr,role:ls.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(hs," ").concat(Wn)})},sr=br&&!~ls.classes.indexOf("fa-fw")?{width:"".concat(hs/Wn*16*.0625,"em")}:{};Ki&&(Vi.attributes["data-fa-i2svg"]=""),mi&&Vi.children.push({tag:"title",attributes:{id:Vi.attributes["aria-labelledby"]||"title-".concat(Ji||fs())},children:[mi]});var lo=r({},Vi,{prefix:mn,iconName:In,main:Bt,mask:Ut,maskId:as,transform:En,symbol:Jn,styles:r({},sr,ls.styles)}),cs=Ut.found&&Bt.found?function(Ue){var wt=Ue.children,Bt=Ue.attributes,Ut=Ue.main,mn=Ue.mask,In=Ue.maskId,mi=Ut.icon,Ji=mn.icon,ls=vi({transform:Ue.transform,containerWidth:mn.width,iconWidth:Ut.width}),Di={tag:"rect",attributes:r({},Ms,{fill:"white"})},Ki=mi.children?{children:mi.children.map(ur)}:{},ms={tag:"g",attributes:r({},ls.inner),children:[ur(r({tag:mi.tag,attributes:r({},mi.attributes,ls.path)},Ki))]},hs={tag:"g",attributes:r({},ls.outer),children:[ms]},Wn="mask-".concat(In||fs()),br="clip-".concat(In||fs()),_s={tag:"mask",attributes:r({},Ms,{id:Wn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Di,hs]},zr={tag:"defs",children:[{tag:"clipPath",attributes:{id:br},children:pr(Ji)},_s]};return wt.push(zr,{tag:"rect",attributes:r({fill:"currentColor","clip-path":"url(#".concat(br,")"),mask:"url(#".concat(Wn,")")},Ms)}),{children:wt,attributes:Bt}}(lo):function(Ue){var wt=Ue.children,Bt=Ue.attributes,Ut=Ue.main,mn=Ue.transform,En=vs(Ue.styles);if(En.length>0&&(Bt.style=En),mr(mn)){var Jn=vi({transform:mn,containerWidth:Ut.width,iconWidth:Ut.width});wt.push({tag:"g",attributes:r({},Jn.outer),children:[{tag:"g",attributes:r({},Jn.inner),children:[{tag:Ut.icon.tag,children:Ut.icon.children,attributes:r({},Ut.icon.attributes,Jn.path)}]}]})}else wt.push(Ut.icon);return{children:wt,attributes:Bt}}(lo),_r=cs.attributes;return lo.children=cs.children,lo.attributes=_r,Jn?function(Ue){var Bt=Ue.iconName,Ut=Ue.children,In=Ue.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:r({},Ue.attributes,{id:!0===In?"".concat(Ue.prefix,"-").concat(Re.familyPrefix,"-").concat(Bt):In}),children:Ut}]}]}(lo):function(Ue){var wt=Ue.children,Bt=Ue.main,Ut=Ue.mask,mn=Ue.attributes,In=Ue.styles,En=Ue.transform;if(mr(En)&&Bt.found&&!Ut.found){var as={x:Bt.width/Bt.height/2,y:.5};mn.style=vs(r({},In,{"transform-origin":"".concat(as.x+En.x/16,"em ").concat(as.y+En.y/16,"em")}))}return[{tag:"svg",attributes:mn,children:wt}]}(lo)}var Qi=function(wt,Bt,Ut,mn){var mi,as,Ji,In=Object.keys(wt),En=In.length,Jn=void 0!==mn?function(wt,Bt){return function(Ut,mn,In,En){return wt.call(Bt,Ut,mn,In,En)}}(Bt,mn):Bt;for(void 0===Ut?(mi=1,Ji=wt[In[0]]):(mi=0,Ji=Ut);mi2&&void 0!==arguments[2]?arguments[2]:{},Ut=Bt.skipHooks,mn=void 0!==Ut&&Ut,In=Object.keys(wt).reduce(function(En,Jn){var mi=wt[Jn];return mi.icon?En[mi.iconName]=mi.icon:En[Jn]=mi,En},{});"function"!=typeof Kt.hooks.addPack||mn?Kt.styles[Ue]=r({},Kt.styles[Ue]||{},In):Kt.hooks.addPack(Ue,In),"fas"===Ue&&vr("fa",wt)}var Ss=Kt.styles,ds=Kt.shims,Lr=function(){var wt=function(mn){return Qi(Ss,function(In,En,Jn){return In[Jn]=Qi(En,mn,{}),In},{})};wt(function(Ut,mn,In){return mn[3]&&(Ut[mn[3]]=In),Ut}),wt(function(Ut,mn,In){var En=mn[2];return Ut[In]=In,En.forEach(function(Jn){Ut[Jn]=In}),Ut});var Bt="far"in Ss;Qi(ds,function(Ut,mn){var En=mn[1];return"far"===En&&!Bt&&(En="fas"),Ut[mn[0]]={prefix:En,iconName:mn[2]},Ut},{})};function Qr(Ue,wt,Bt){if(Ue&&Ue[wt]&&Ue[wt][Bt])return{prefix:wt,iconName:Bt,icon:Ue[wt][Bt]}}function er(Ue){var wt=Ue.tag,Bt=Ue.attributes,Ut=void 0===Bt?{}:Bt,mn=Ue.children,In=void 0===mn?[]:mn;return"string"==typeof Ue?Vs(Ue):"<".concat(wt," ").concat(function(Ue){return Object.keys(Ue||{}).reduce(function(wt,Bt){return wt+"".concat(Bt,'="').concat(Vs(Ue[Bt]),'" ')},"").trim()}(Ut),">").concat(In.map(er).join(""),"")}Lr();function Ci(Ue){this.name="MissingIcon",this.message=Ue||"Icon unavailable",this.stack=(new Error).stack}(Ci.prototype=Object.create(Error.prototype)).constructor=Ci;var Yi={fill:"currentColor"},os={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Es=(r({},Yi,{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"}),r({},os,{attributeName:"opacity"}));function Ds(Ue){var wt=Ue[0],Bt=Ue[1],In=O(Ue.slice(4),1)[0];return{found:!0,width:wt,height:Bt,icon:Array.isArray(In)?{tag:"g",attributes:{class:"".concat(Re.familyPrefix,"-").concat(ye.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Re.familyPrefix,"-").concat(ye.SECONDARY),fill:"currentColor",d:In[0]}},{tag:"path",attributes:{class:"".concat(Re.familyPrefix,"-").concat(ye.PRIMARY),fill:"currentColor",d:In[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:In}}}}r({},Yi,{cx:"256",cy:"364",r:"28"}),r({},os,{attributeName:"r",values:"28;14;28;28;14;28;"}),r({},Es,{values:"1;0;1;1;0;1;"}),r({},Yi,{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"}),r({},Es,{values:"1;0;0;0;0;1;"}),r({},Yi,{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"}),r({},Es,{values:"0;0;1;1;0;0;"});var $e=function(){function Ue(){(function(Ue,wt){if(!(Ue instanceof wt))throw new TypeError("Cannot call a class as a function")})(this,Ue),this.definitions={}}return function(Ue,wt,Bt){wt&&ze(Ue.prototype,wt)}(Ue,[{key:"add",value:function(){for(var Bt=this,Ut=arguments.length,mn=new Array(Ut),In=0;In-1;mn--){var In=Bt[mn],En=(In.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(En)>-1&&(Ut=In)}e.head.insertBefore(wt,Ut)}}(function(){var wt=He,Bt=Re.familyPrefix,Ut=Re.replacementClass,mn='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"!==Bt||Ut!==wt){var In=new RegExp("\\.".concat("fa","\\-"),"g"),En=new RegExp("\\--".concat("fa","\\-"),"g"),Jn=new RegExp("\\.".concat(wt),"g");mn=mn.replace(In,".".concat(Bt,"-")).replace(En,"--".concat(Bt,"-")).replace(Jn,".".concat(Ut))}return mn}()),wr=!0)}function kt(Ue,wt){return Object.defineProperty(Ue,"abstract",{get:wt}),Object.defineProperty(Ue,"html",{get:function(){return Ue.abstract.map(function(Ut){return er(Ut)})}}),Object.defineProperty(Ue,"node",{get:function(){if(it){var Ut=e.createElement("div");return Ut.innerHTML=Ue.html,Ut.children}}}),Ue}function Ln(Ue){var wt=Ue.prefix,Bt=void 0===wt?"fa":wt,Ut=Ue.iconName;if(Ut)return Qr(gs.definitions,Bt,Ut)||Qr(Kt.styles,Bt,Ut)}var Ue,gs=new $e,wr=!1,Vr_transform=function(wt){return function(wt){var Bt={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return wt?wt.toLowerCase().split(" ").reduce(function(Ut,mn){var In=mn.toLowerCase().split("-"),En=In[0],Jn=In.slice(1).join("-");if(En&&"h"===Jn)return Ut.flipX=!0,Ut;if(En&&"v"===Jn)return Ut.flipY=!0,Ut;if(Jn=parseFloat(Jn),isNaN(Jn))return Ut;switch(En){case"grow":Ut.size=Ut.size+Jn;break;case"shrink":Ut.size=Ut.size-Jn;break;case"left":Ut.x=Ut.x-Jn;break;case"right":Ut.x=Ut.x+Jn;break;case"up":Ut.y=Ut.y-Jn;break;case"down":Ut.y=Ut.y+Jn;break;case"rotate":Ut.rotate=Ut.rotate+Jn}return Ut},Bt):Bt}(wt)},us=(Ue=function(Ue){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Bt=wt.transform,Ut=void 0===Bt?kn:Bt,mn=wt.symbol,In=void 0!==mn&&mn,En=wt.mask,Jn=void 0===En?null:En,mi=wt.maskId,as=void 0===mi?null:mi,Ji=wt.title,ls=void 0===Ji?null:Ji,Di=wt.titleId,Ki=void 0===Di?null:Di,ms=wt.classes,hs=void 0===ms?[]:ms,Wn=wt.attributes,br=void 0===Wn?{}:Wn,_s=wt.styles,zr=void 0===_s?{}:_s;if(Ue){var Vi=Ue.prefix,sr=Ue.iconName,lo=Ue.icon;return kt(r({type:"icon"},Ue),function(){return De(),Re.autoA11y&&(ls?br["aria-labelledby"]="".concat(Re.replacementClass,"-title-").concat(Ki||fs()):(br["aria-hidden"]="true",br.focusable="false")),$r({icons:{main:Ds(lo),mask:Jn?Ds(Jn.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Vi,iconName:sr,transform:r({},kn,Ut),symbol:In,title:ls,maskId:as,titleId:Ki,extra:{attributes:br,styles:zr,classes:hs}})})}},function(wt){var Bt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ut=(wt||{}).icon?wt:Ln(wt||{}),mn=Bt.mask;return mn&&(mn=(mn||{}).icon?mn:Ln(mn||{})),Ue(Ut,r({},Bt,{mask:mn}))}),ne=S(2313);const Ae=["*"],nn=Ue=>{const wt={"fa-spin":Ue.spin,"fa-pulse":Ue.pulse,"fa-fw":Ue.fixedWidth,"fa-border":Ue.border,"fa-inverse":Ue.inverse,"fa-layers-counter":Ue.counter,"fa-flip-horizontal":"horizontal"===Ue.flip||"both"===Ue.flip,"fa-flip-vertical":"vertical"===Ue.flip||"both"===Ue.flip,[`fa-${Ue.size}`]:null!==Ue.size,[`fa-rotate-${Ue.rotate}`]:null!==Ue.rotate,[`fa-pull-${Ue.pull}`]:null!==Ue.pull,[`fa-stack-${Ue.stackItemSize}`]:null!=Ue.stackItemSize};return Object.keys(wt).map(Bt=>wt[Bt]?Bt:null).filter(Bt=>Bt)};let ti=(()=>{class Ue{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return Ue.\u0275fac=function(Bt){return new(Bt||Ue)},Ue.\u0275prov=a.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),gi=(()=>{class Ue{constructor(){this.definitions={}}addIcons(...Bt){for(const Ut of Bt){Ut.prefix in this.definitions||(this.definitions[Ut.prefix]={}),this.definitions[Ut.prefix][Ut.iconName]=Ut;for(const mn of Ut.icon[2])"string"==typeof mn&&(this.definitions[Ut.prefix][mn]=Ut)}}addIconPacks(...Bt){for(const Ut of Bt){const mn=Object.keys(Ut).map(In=>Ut[In]);this.addIcons(...mn)}}getIconDefinition(Bt,Ut){return Bt in this.definitions&&Ut in this.definitions[Bt]?this.definitions[Bt][Ut]:null}}return Ue.\u0275fac=function(Bt){return new(Bt||Ue)},Ue.\u0275prov=a.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),Fi=(()=>{class Ue{constructor(){this.stackItemSize="1x"}ngOnChanges(Bt){if("size"in Bt)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return Ue.\u0275fac=function(Bt){return new(Bt||Ue)},Ue.\u0275dir=a.lG2({type:Ue,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[a.TTD]}),Ue})(),Ge=(()=>{class Ue{constructor(Bt,Ut){this.renderer=Bt,this.elementRef=Ut}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Bt){"size"in Bt&&(null!=Bt.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Bt.size.currentValue}`),null!=Bt.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Bt.size.previousValue}`))}}return Ue.\u0275fac=function(Bt){return new(Bt||Ue)(a.Y36(a.Qsj),a.Y36(a.SBq))},Ue.\u0275cmp=a.Xpm({type:Ue,selectors:[["fa-stack"]],inputs:{size:"size"},features:[a.TTD],ngContentSelectors:Ae,decls:1,vars:0,template:function(Bt,Ut){1&Bt&&(a.F$t(),a.Hsn(0))},encapsulation:2}),Ue})(),Xe=(()=>{class Ue{constructor(Bt,Ut,mn,In,En){this.sanitizer=Bt,this.config=Ut,this.iconLibrary=mn,this.stackItem=In,this.classes=[],null!=En&&null==In&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(Bt){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Ut=null;if(Ut=null==this.icon?this.config.fallbackIcon:this.icon,Bt){const mn=this.findIconDefinition(Ut);if(null!=mn){const In=this.buildParams();this.renderIcon(mn,In)}}}render(){this.ngOnChanges({})}findIconDefinition(Bt){const Ut=((Ue,wt)=>(Ue=>void 0!==Ue.prefix&&void 0!==Ue.iconName)(Ue)?Ue:Array.isArray(Ue)&&2===Ue.length?{prefix:Ue[0],iconName:Ue[1]}:"string"==typeof Ue?{prefix:wt,iconName:Ue}:void 0)(Bt,this.config.defaultPrefix);if("icon"in Ut)return Ut;const mn=this.iconLibrary.getIconDefinition(Ut.prefix,Ut.iconName);return null!=mn?mn:((Ue=>{throw new Error(`Could not find icon with iconName=${Ue.iconName} and prefix=${Ue.prefix} in the icon library.`)})(Ut),null)}buildParams(){const Bt={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},Ut="string"==typeof this.transform?Vr_transform(this.transform):this.transform;return{title:this.title,transform:Ut,classes:[...nn(Bt),...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(Bt,Ut){const mn=us(Bt,Ut);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(mn.html.join("\n"))}}return Ue.\u0275fac=function(Bt){return new(Bt||Ue)(a.Y36(ne.H7),a.Y36(ti),a.Y36(gi),a.Y36(Fi,8),a.Y36(Ge,8))},Ue.\u0275cmp=a.Xpm({type:Ue,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Bt,Ut){2&Bt&&(a.Ikx("innerHTML",Ut.renderedIconHTML,a.oJD),a.uIk("title",Ut.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:[a.TTD],decls:0,vars:0,template:function(Bt,Ut){},encapsulation:2}),Ue})(),wi=(()=>{class Ue{}return Ue.\u0275fac=function(Bt){return new(Bt||Ue)},Ue.\u0275mod=a.oAB({type:Ue}),Ue.\u0275inj=a.cJS({}),Ue})()},6642:(St,oe,S)=>{"use strict";S.d(oe,{eX:()=>G,sQ:()=>Gt,GW:()=>it,l4:()=>ot});var a=S(5620),C=S(6451),N=S(8306),ze=S(7579),p=S(515),K=S(9646),r=S(2843),O=S(576);class H{constructor(nt,bt,an){this.kind=nt,this.value=bt,this.error=an,this.hasValue="N"===nt}observe(nt){return E(this,nt)}do(nt,bt,an){const{kind:Qn,value:ni,error:An}=this;return"N"===Qn?null==nt?void 0:nt(ni):"E"===Qn?null==bt?void 0:bt(An):null==an?void 0:an()}accept(nt,bt,an){var Qn;return(0,O.m)(null===(Qn=nt)||void 0===Qn?void 0:Qn.next)?this.observe(nt):this.do(nt,bt,an)}toObservable(){const{kind:nt,value:bt,error:an}=this,Qn="N"===nt?(0,K.of)(bt):"E"===nt?(0,r._)(()=>an):"C"===nt?p.E:0;if(!Qn)throw new TypeError(`Unexpected notification kind ${nt}`);return Qn}static createNext(nt){return new H("N",nt)}static createError(nt){return new H("E",void 0,nt)}static createComplete(){return H.completeNotification}}function E(ie,nt){var bt,an,Qn;const{kind:ni,value:An,error:Ii}=ie;if("string"!=typeof ni)throw new TypeError('Invalid notification, missing "kind"');"N"===ni?null===(bt=nt.next)||void 0===bt||bt.call(nt,An):"E"===ni?null===(an=nt.error)||void 0===an||an.call(nt,Ii):null===(Qn=nt.complete)||void 0===Qn||Qn.call(nt)}H.completeNotification=new H("C");var ee=S(4482),x=S(5403),le=S(8421);function xe(ie,nt,bt,an){return(0,ee.e)((Qn,ni)=>{let An;nt&&"function"!=typeof nt?({duration:bt,element:An,connector:an}=nt):An=nt;const Ii=new Map,Zi=jt=>{Ii.forEach(jt),jt(ni)},Ti=jt=>Zi(on=>on.error(jt)),yn=new re(ni,jt=>{try{const on=ie(jt);let kn=Ii.get(on);if(!kn){Ii.set(on,kn=an?an():new ze.x);const xi=function(jt,on){const kn=new N.y(xi=>{yn.activeGroups++;const Ei=on.subscribe(xi);return()=>{Ei.unsubscribe(),0==--yn.activeGroups&&yn.teardownAttempted&&yn.unsubscribe()}});return kn.key=jt,kn}(on,kn);if(ni.next(xi),bt){const Ei=new x.Q(kn,()=>{kn.complete(),null==Ei||Ei.unsubscribe()},void 0,void 0,()=>Ii.delete(on));yn.add((0,le.Xf)(bt(xi)).subscribe(Ei))}}kn.next(An?An(jt):jt)}catch(on){Ti(on)}},()=>Zi(jt=>jt.complete()),Ti,()=>Ii.clear());Qn.subscribe(yn)})}class re extends x.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var ce=S(4004);function L(ie,nt){return nt?bt=>bt.pipe(L((an,Qn)=>(0,le.Xf)(ie(an,Qn)).pipe((0,ce.U)((ni,An)=>nt(an,ni,Qn,An))))):(0,ee.e)((bt,an)=>{let Qn=0,ni=null,An=!1;bt.subscribe(new x.Q(an,Ii=>{ni||(ni=new x.Q(an,void 0,()=>{ni=null,An&&an.complete()}),(0,le.Xf)(ie(Ii,Qn++)).subscribe(ni))},()=>{An=!0,!ni&&an.complete()}))})}var we=S(8502),ge=S(262),fe=S(9300),Ce=S(5577),e=S(5698),z=S(5e3);const je={dispatch:!0,useEffectsErrorHandler:!0},rt="__@ngrx/effects_create__";function it(ie,nt){const bt=ie(),an=Object.assign(Object.assign({},je),nt);return Object.defineProperty(bt,rt,{value:an}),bt}function ct(ie){return Object.getOwnPropertyNames(ie).filter(an=>!(!ie[an]||!ie[an].hasOwnProperty(rt))&&ie[an][rt].hasOwnProperty("dispatch")).map(an=>Object.assign({propertyName:an},ie[an][rt]))}function g(ie){return Object.getPrototypeOf(ie)}const qe="__@ngrx/effects__";function He(ie){return(0,a.qC)(Te,g)(ie)}function Te(ie){return function(ie){return ie.constructor.hasOwnProperty(qe)}(ie)?ie.constructor[qe]:[]}function Ne(ie,nt,bt){const an=g(ie).constructor.name,Qn=function(ie){return[He,ct].reduce((bt,an)=>bt.concat(an(ie)),[])}(ie).map(({propertyName:ni,dispatch:An,useEffectsErrorHandler:Ii})=>{const Zi="function"==typeof ie[ni]?ie[ni]():ie[ni],Ti=Ii?bt(Zi,nt):Zi;return!1===An?Ti.pipe((0,we.l)()):Ti.pipe((0,ee.e)((ie,nt)=>{ie.subscribe(new x.Q(nt,bt=>{nt.next(H.createNext(bt))},()=>{nt.next(H.createComplete()),nt.complete()},bt=>{nt.next(H.createError(bt)),nt.complete()}))})).pipe((0,ce.U)(qt=>({effect:ie[ni],notification:qt,propertyName:ni,sourceName:an,sourceInstance:ie})))});return(0,C.T)(...Qn)}function ke(ie,nt,bt=10){return ie.pipe((0,ge.K)(an=>(nt&&nt.handleError(an),bt<=1?ie:ke(ie,nt,bt-1))))}let G=(()=>{class ie extends N.y{constructor(bt){super(),bt&&(this.source=bt)}lift(bt){const an=new ie;return an.source=this,an.operator=bt,an}}return ie.\u0275fac=function(bt){return new(bt||ie)(z.LFG(a.Y$))},ie.\u0275prov=z.Yz7({token:ie,factory:ie.\u0275fac}),ie})();function ot(...ie){return(0,fe.h)(nt=>ie.some(bt=>"string"==typeof bt?bt===nt.type:bt.type===nt.type))}function Je(ie){return gt(ie,"ngrxOnInitEffects")}function gt(ie,nt){return ie&&nt in ie&&"function"==typeof ie[nt]}const Nt=new z.OlP("@ngrx/effects Internal Root Guard"),$t=new z.OlP("@ngrx/effects User Provided Effects"),ft=new z.OlP("@ngrx/effects Internal Root Effects"),mt=new z.OlP("@ngrx/effects Root Effects"),Re=new z.OlP("@ngrx/effects Internal Feature Effects"),zt=new z.OlP("@ngrx/effects Feature Effects"),Kt=new z.OlP("@ngrx/effects Effects Error Handler");let hn=(()=>{class ie extends ze.x{constructor(bt,an){super(),this.errorHandler=bt,this.effectsErrorHandler=an}addEffects(bt){this.next(bt)}toActions(){return this.pipe(xe(g),(0,Ce.z)(bt=>bt.pipe(xe(xn))),(0,Ce.z)(bt=>{const an=bt.pipe(L(ni=>function(ie,nt){return bt=>{const an=Ne(bt,ie,nt);return function(ie){return gt(ie,"ngrxOnRunEffects")}(bt)?bt.ngrxOnRunEffects(an):an}}(this.errorHandler,this.effectsErrorHandler)(ni)),(0,ce.U)(ni=>(function(ie,nt){if("N"===ie.notification.kind){const bt=ie.notification.value;!function(ie){return"function"!=typeof ie&&ie&&ie.type&&"string"==typeof ie.type}(bt)&&nt.handleError(new Error(`Effect ${function({propertyName:ie,sourceInstance:nt,sourceName:bt}){const an="function"==typeof nt[ie];return`"${bt}.${String(ie)}${an?"()":""}"`}(ie)} dispatched an invalid action: ${function(ie){try{return JSON.stringify(ie)}catch(nt){return ie}}(bt)}`))}}(ni,this.errorHandler),ni.notification)),(0,fe.h)(ni=>"N"===ni.kind&&null!=ni.value),(0,ee.e)((ie,nt)=>{ie.subscribe(new x.Q(nt,bt=>E(bt,nt)))})),Qn=bt.pipe((0,e.q)(1),(0,fe.h)(Je),(0,ce.U)(ni=>ni.ngrxOnInitEffects()));return(0,C.T)(an,Qn)}))}}return ie.\u0275fac=function(bt){return new(bt||ie)(z.LFG(z.qLn),z.LFG(Kt))},ie.\u0275prov=z.Yz7({token:ie,factory:ie.\u0275fac}),ie})();function xn(ie){return function(ie){return gt(ie,"ngrxOnIdentifyEffects")}(ie)?ie.ngrxOnIdentifyEffects():""}let Hn=(()=>{class ie{constructor(bt,an){this.effectSources=bt,this.store=an,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return ie.\u0275fac=function(bt){return new(bt||ie)(z.LFG(hn),z.LFG(a.yh))},ie.\u0275prov=z.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const pn="@ngrx/effects/init";(0,a.PH)(pn);let _t=(()=>{class ie{constructor(bt,an,Qn,ni,An,Ii,Zi){this.sources=bt,an.start(),ni.forEach(Ti=>bt.addEffects(Ti)),Qn.dispatch({type:pn})}addEffects(bt){this.sources.addEffects(bt)}}return ie.\u0275fac=function(bt){return new(bt||ie)(z.LFG(hn),z.LFG(Hn),z.LFG(a.yh),z.LFG(mt),z.LFG(a.cr,8),z.LFG(a.CK,8),z.LFG(Nt,8))},ie.\u0275mod=z.oAB({type:ie}),ie.\u0275inj=z.cJS({}),ie})(),Tt=(()=>{class ie{constructor(bt,an,Qn,ni){an.forEach(An=>An.forEach(Ii=>bt.addEffects(Ii)))}}return ie.\u0275fac=function(bt){return new(bt||ie)(z.LFG(_t),z.LFG(zt),z.LFG(a.cr,8),z.LFG(a.CK,8))},ie.\u0275mod=z.oAB({type:ie}),ie.\u0275inj=z.cJS({}),ie})(),Gt=(()=>{class ie{static forFeature(bt=[]){return{ngModule:Tt,providers:[bt,{provide:Re,multi:!0,useValue:bt},{provide:$t,multi:!0,useValue:[]},{provide:zt,multi:!0,useFactory:Rt,deps:[z.zs3,Re,$t]}]}}static forRoot(bt=[]){return{ngModule:_t,providers:[{provide:Kt,useValue:ke},Hn,hn,G,bt,{provide:ft,useValue:[bt]},{provide:Nt,useFactory:F,deps:[[Hn,new z.FiY,new z.tp0],[ft,new z.PiD]]},{provide:$t,multi:!0,useValue:[]},{provide:mt,useFactory:Rt,deps:[z.zs3,ft,$t]}]}}}return ie.\u0275fac=function(bt){return new(bt||ie)},ie.\u0275mod=z.oAB({type:ie}),ie.\u0275inj=z.cJS({}),ie})();function Rt(ie,nt,bt){const an=[];for(const Qn of nt)an.push(...Qn);for(const Qn of bt)an.push(...Qn);return function(ie,nt){return nt.map(bt=>ie.get(bt))}(ie,an)}function F(ie,nt){if((1!==nt.length||0!==nt[0].length)&&ie)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(St){const oe={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}},S="function"==typeof St?St():St,N=Object.assign({},oe,{features:S.features||!!S.logOnly&&{pause:!0,export:!0,test:!0}||oe.features},S);if(N.maxAge&&N.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${N.maxAge}`);return N}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(oe,S){if(this.action=oe,this.timestamp=S,this.type=PERFORM_ACTION,void 0===oe.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(oe){this.timestamp=oe,this.type=RESET}}class Rollback{constructor(oe){this.timestamp=oe,this.type=ROLLBACK}}class Commit{constructor(oe){this.timestamp=oe,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(oe){this.id=oe,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(oe,S,a=!0){this.start=oe,this.end=S,this.active=a,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(oe){this.index=oe,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(oe){this.actionId=oe,this.type=JUMP_TO_ACTION}}class ImportState{constructor(oe){this.nextLiftedState=oe,this.type=IMPORT_STATE}}class LockChanges{constructor(oe){this.status=oe,this.type=LOCK_CHANGES}}class PauseRecording{constructor(oe){this.status=oe,this.type=PAUSE_RECORDING}}function difference(St,oe){return St.filter(S=>oe.indexOf(S)<0)}function unliftState(St){const{computedStates:oe,currentStateIndex:S}=St;if(S>=oe.length){const{state:C}=oe[oe.length-1];return C}const{state:a}=oe[S];return a}function unliftAction(St){return St.actionsById[St.nextActionId-1]}function liftAction(St){return new PerformAction(St,+Date.now())}function sanitizeActions(St,oe){return Object.keys(oe).reduce((S,a)=>{const C=Number(a);return S[C]=sanitizeAction(St,oe[C],C),S},{})}function sanitizeAction(St,oe,S){return Object.assign(Object.assign({},oe),{action:St(oe.action,S)})}function sanitizeStates(St,oe){return oe.map((S,a)=>({state:sanitizeState(St,S.state,a),error:S.error}))}function sanitizeState(St,oe,S){return St(oe,S)}function shouldFilterActions(St){return St.predicate||St.actionsSafelist||St.actionsBlocklist}function filterLiftedState(St,oe,S,a){const C=[],N={},ze=[];return St.stagedActionIds.forEach((p,K)=>{const r=St.actionsById[p];!r||K&&isActionFiltered(St.computedStates[K],r,oe,S,a)||(N[p]=r,C.push(p),ze.push(St.computedStates[K]))}),Object.assign(Object.assign({},St),{stagedActionIds:C,actionsById:N,computedStates:ze})}function isActionFiltered(St,oe,S,a,C){const N=S&&!S(St,oe.action),ze=a&&!oe.action.type.match(a.map(K=>escapeRegExp(K)).join("|")),p=C&&oe.action.type.match(C.map(K=>escapeRegExp(K)).join("|"));return N||ze||p}function escapeRegExp(St){return St.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(St,oe,S,a,C){if(a)return{state:S,error:"Interrupted by an error up the chain"};let ze,N=S;try{N=St(S,oe)}catch(p){ze=p.toString(),C.handleError(p)}return{state:N,error:ze}}function recomputeStates(St,oe,S,a,C,N,ze,p,K){if(oe>=St.length&&St.length===N.length)return St;const r=St.slice(0,oe),O=N.length-(K?1:0);for(let P=oe;P-1?ee:computeNextEntry(S,E,x,U,p);r.push(xe)}return K&&r.push(St[St.length-1]),r}function liftInitialState(St,oe){return{monitorState:oe(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:St,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(St,oe,S,a,C={}){return N=>(ze,p)=>{let{monitorState:K,actionsById:r,nextActionId:O,stagedActionIds:P,skippedActionIds:H,committedState:E,currentStateIndex:ee,computedStates:x,isLocked:U,isPaused:le}=ze||oe;function xe(L){let J=L,we=P.slice(1,J+1);for(let ge=0;ge-1===we.indexOf(ge)),P=[0,...P.slice(J+1)],E=x[J].state,x=x.slice(J),ee=ee>J?ee-J:0}function re(){r={0:liftAction(INIT_ACTION)},O=1,P=[0],H=[],E=x[ee].state,ee=0,x=[]}ze||(r=Object.create(r));let ce=0;switch(p.type){case LOCK_CHANGES:U=p.status,ce=1/0;break;case PAUSE_RECORDING:le=p.status,le?(P=[...P,O],r[O]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),O++,ce=P.length-1,x=x.concat(x[x.length-1]),ee===P.length-2&&ee++,ce=1/0):re();break;case RESET:r={0:liftAction(INIT_ACTION)},O=1,P=[0],H=[],E=St,ee=0,x=[];break;case COMMIT:re();break;case ROLLBACK:r={0:liftAction(INIT_ACTION)},O=1,P=[0],H=[],ee=0,x=[];break;case TOGGLE_ACTION:{const{id:L}=p;H=-1===H.indexOf(L)?[L,...H]:H.filter(we=>we!==L),ce=P.indexOf(L);break}case SET_ACTIONS_ACTIVE:{const{start:L,end:J,active:we}=p,ge=[];for(let fe=L;feC.maxAge&&(x=recomputeStates(x,ce,N,E,r,P,H,S,le),xe(P.length-C.maxAge),ce=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(x.filter(J=>J.error).length>0)ce=0,C.maxAge&&P.length>C.maxAge&&(x=recomputeStates(x,ce,N,E,r,P,H,S,le),xe(P.length-C.maxAge),ce=1/0);else{if(!le&&!U){ee===P.length-1&&ee++;const J=O++;r[J]=new PerformAction(p,+Date.now()),P=[...P,J],ce=P.length-1,x=recomputeStates(x,ce,N,E,r,P,H,S,le)}x=x.map(J=>Object.assign(Object.assign({},J),{state:N(J.state,RECOMPUTE_ACTION)})),ee=P.length-1,C.maxAge&&P.length>C.maxAge&&xe(P.length-C.maxAge),ce=1/0}break;default:ce=1/0}return x=recomputeStates(x,ce,N,E,r,P,H,S,le),K=a(K,p),{monitorState:K,actionsById:r,nextActionId:O,stagedActionIds:P,skippedActionIds:H,committedState:E,currentStateIndex:ee,computedStates:x,isLocked:U,isPaused:le}}}let DevtoolsDispatcher=(()=>{class St extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return St.\u0275fac=function(){let oe;return function(a){return(oe||(oe=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(St)))(a||St)}}(),St.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:St,factory:St.\u0275fac}),St})();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(St,oe,S){this.config=oe,this.dispatcher=S,this.devtoolsExtension=St,this.createActionStreams()}notify(St,oe){if(this.devtoolsExtension)if(St.type===PERFORM_ACTION){if(oe.isLocked||oe.isPaused)return;const S=unliftState(oe);if(shouldFilterActions(this.config)&&isActionFiltered(S,St,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const a=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,S,oe.currentStateIndex):S,C=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,St,oe.nextActionId):St;this.sendToReduxDevtools(()=>this.extensionConnection.send(C,a))}else{const S=Object.assign(Object.assign({},oe),{stagedActionIds:oe.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,oe.actionsById):oe.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,oe.computedStates):oe.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,S,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(St=>{const oe=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=oe,oe.init(),oe.subscribe(S=>St.next(S)),oe.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const St=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),oe=St.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(p=>p.type===ExtensionActionTypes.START)),S=St.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(p=>p.type===ExtensionActionTypes.STOP)),a=St.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(p=>p.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(p=>this.unwrapAction(p.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(p=>p.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(K=>K.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)(()=>p),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(p)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(p))),N=St.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(p=>p.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(p=>this.unwrapAction(p.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(S)),ze=a.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(S));this.start$=oe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(S)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>N)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>ze))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(St){var oe;const S={name:St.name,features:St.features,serialize:St.serialize,autoPause:null!==(oe=St.autoPause)&&void 0!==oe&&oe};return!1!==St.maxAge&&(S.maxAge=St.maxAge),S}sendToReduxDevtools(St){try{St()}catch(oe){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",oe)}}}return DevtoolsExtension.\u0275fac=function(oe){return new(oe||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 St{constructor(S,a,C,N,ze,p,K,r){const O=liftInitialState(K,r.monitor),P=liftReducerWith(K,O,p,r.monitor,r),H=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(a.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),N.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),S,N.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),E=C.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(P)),ee=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),x=H.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(E),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:re},[ce,L])=>{let J=L(re,ce);return ce.type!==PERFORM_ACTION&&shouldFilterActions(r)&&(J=filterLiftedState(J,r.predicate,r.actionsSafelist,r.actionsBlocklist)),N.notify(ce,J),{state:J,action:ce}},{state:O,action:null})).subscribe(({state:re,action:ce})=>{ee.next(re),ce.type===PERFORM_ACTION&&ze.next(ce.action)}),U=N.start$.subscribe(()=>{this.refresh()}),le=ee.asObservable(),xe=le.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=U,this.stateSubscription=x,this.dispatcher=S,this.liftedState=le,this.state=xe}dispatch(S){this.dispatcher.next(S)}next(S){this.dispatcher.next(S)}error(S){}complete(){}performAction(S){this.dispatch(new PerformAction(S,+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(S){this.dispatch(new ToggleAction(S))}jumpToAction(S){this.dispatch(new JumpToAction(S))}jumpToState(S){this.dispatch(new JumpToState(S))}importState(S){this.dispatch(new ImportState(S))}lockChanges(S){this.dispatch(new LockChanges(S))}pauseRecording(S){this.dispatch(new PauseRecording(S))}}return St.\u0275fac=function(S){return new(S||St)(_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))},St.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:St,factory:St.\u0275fac}),St})();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(St,oe){return Boolean(St)||oe.monitor!==noMonitor}function createReduxDevtoolsExtension(){const St="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[St]?window[St]:null}function createStateObservable(St){return St.state}let StoreDevtoolsModule=(()=>{class St{static instrument(S={}){return{ngModule:St,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:S},{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 St.\u0275fac=function(S){return new(S||St)},St.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:St}),St.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),St})()},5620:(St,oe,S)=>{"use strict";S.d(oe,{UO:()=>L,qg:()=>ce,Y6:()=>fe,mK:()=>At,n$:()=>Mt,Y$:()=>ye,FR:()=>Je,yh:()=>ft,CK:()=>Ms,Aw:()=>ur,cr:()=>Hi,wb:()=>Jt,UY:()=>ke,qC:()=>ot,PH:()=>U,ZF:()=>Zi,Lq:()=>Pr,P1:()=>ni,on:()=>Ri,Ky:()=>le});var a=S(5e3),C=S(1135),N=S(8306),ze=S(7579),p=S(233),K=S(4004),O=S(5363),P=S(1365),H=S(5026),E=S(1884);const ee={};function U(tn,Zn){if(ee[tn]=(ee[tn]||0)+1,"function"==typeof Zn)return re(tn,(...On)=>Object.assign(Object.assign({},Zn(...On)),{type:tn}));switch(Zn?Zn._as:"empty"){case"empty":return re(tn,()=>({type:tn}));case"props":return re(tn,On=>Object.assign(Object.assign({},On),{type:tn}));default:throw new Error("Unexpected config.")}}function le(){return{_as:"props",_p:void 0}}function re(tn,Zn){return Object.defineProperty(Zn,"type",{value:tn,writable:!1})}const ce="@ngrx/store/init";let L=(()=>{class tn extends C.X{constructor(){super({type:ce})}next(wn){if("function"==typeof wn)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===wn)throw new TypeError("Actions must be objects");if(void 0===wn.type)throw new TypeError("Actions must have a type property");super.next(wn)}complete(){}ngOnDestroy(){super.complete()}}return tn.\u0275fac=function(wn){return new(wn||tn)},tn.\u0275prov=a.Yz7({token:tn,factory:tn.\u0275fac}),tn})();const J=[L],we=new a.OlP("@ngrx/store Internal Root Guard"),ge=new a.OlP("@ngrx/store Internal Initial State"),fe=new a.OlP("@ngrx/store Initial State"),Ce=new a.OlP("@ngrx/store Reducer Factory"),e=new a.OlP("@ngrx/store Internal Reducer Factory Provider"),z=new a.OlP("@ngrx/store Initial Reducers"),je=new a.OlP("@ngrx/store Internal Initial Reducers"),rt=new a.OlP("@ngrx/store Store Features"),it=new a.OlP("@ngrx/store Internal Store Reducers"),ct=new a.OlP("@ngrx/store Internal Feature Reducers"),g=new a.OlP("@ngrx/store Internal Feature Configs"),qe=new a.OlP("@ngrx/store Internal Store Features"),Ve=new a.OlP("@ngrx/store Internal Feature Reducers Token"),He=new a.OlP("@ngrx/store Feature Reducers"),X=new a.OlP("@ngrx/store User Provided Meta Reducers"),Le=new a.OlP("@ngrx/store Meta Reducers"),Te=new a.OlP("@ngrx/store Internal Resolved Meta Reducers"),Ze=new a.OlP("@ngrx/store User Runtime Checks Config"),he=new a.OlP("@ngrx/store Internal User Runtime Checks Config"),Ne=new a.OlP("@ngrx/store Internal Runtime Checks"),Me=new a.OlP("@ngrx/store Check if Action types are unique");function ke(tn,Zn={}){const wn=Object.keys(tn),On={};for(let vn=0;vnvn(_i),wn(Zn))}}function We(tn,Zn){return Array.isArray(Zn)&&Zn.length>0&&(tn=ot.apply(null,[...Zn,tn])),(wn,On)=>{const _i=tn(wn);return(vn,qi)=>_i(vn=void 0===vn?On:vn,qi)}}class Mt extends N.y{}class At extends L{}const Jt="@ngrx/store/update-reducers";let Wt=(()=>{class tn extends C.X{constructor(wn,On,_i,vn){super(vn(_i,On)),this.dispatcher=wn,this.initialState=On,this.reducers=_i,this.reducerFactory=vn}get currentReducers(){return this.reducers}addFeature(wn){this.addFeatures([wn])}addFeatures(wn){const On=wn.reduce((_i,{reducers:vn,reducerFactory:qi,metaReducers:Qi,initialState:Us,key:vr})=>{const Ss="function"==typeof vn?function(tn){const Zn=Array.isArray(tn)&&tn.length>0?ot(...tn):wn=>wn;return(wn,On)=>(wn=Zn(wn),(_i,vn)=>wn(_i=void 0===_i?On:_i,vn))}(Qi)(vn,Us):We(qi,Qi)(vn,Us);return _i[vr]=Ss,_i},{});this.addReducers(On)}removeFeature(wn){this.removeFeatures([wn])}removeFeatures(wn){this.removeReducers(wn.map(On=>On.key))}addReducer(wn,On){this.addReducers({[wn]:On})}addReducers(wn){this.reducers=Object.assign(Object.assign({},this.reducers),wn),this.updateReducers(Object.keys(wn))}removeReducer(wn){this.removeReducers([wn])}removeReducers(wn){wn.forEach(On=>{this.reducers=function(tn,Zn){return Object.keys(tn).filter(wn=>wn!==Zn).reduce((wn,On)=>Object.assign(wn,{[On]:tn[On]}),{})}(this.reducers,On)}),this.updateReducers(wn)}updateReducers(wn){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Jt,features:wn})}ngOnDestroy(){this.complete()}}return tn.\u0275fac=function(wn){return new(wn||tn)(a.LFG(At),a.LFG(fe),a.LFG(z),a.LFG(Ce))},tn.\u0275prov=a.Yz7({token:tn,factory:tn.\u0275fac}),tn})();const Sn=[Wt,{provide:Mt,useExisting:Wt},{provide:At,useExisting:L}];let ye=(()=>{class tn extends ze.x{ngOnDestroy(){this.complete()}}return tn.\u0275fac=function(){let Zn;return function(On){return(Zn||(Zn=a.n5z(tn)))(On||tn)}}(),tn.\u0275prov=a.Yz7({token:tn,factory:tn.\u0275fac}),tn})();const be=[ye];class Je extends N.y{}let gt=(()=>{class tn extends C.X{constructor(wn,On,_i,vn){super(vn);const vr=wn.pipe((0,O.Q)(p.N)).pipe((0,P.M)(On)).pipe((0,H.R)(Nt,{state:vn}));this.stateSubscription=vr.subscribe(({state:Ss,action:ds})=>{this.next(Ss),_i.next(ds)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return tn.INIT=ce,tn.\u0275fac=function(wn){return new(wn||tn)(a.LFG(L),a.LFG(Mt),a.LFG(ye),a.LFG(fe))},tn.\u0275prov=a.Yz7({token:tn,factory:tn.\u0275fac}),tn})();function Nt(tn={state:void 0},[Zn,wn]){const{state:On}=tn;return{state:wn(On,Zn),action:Zn}}const $t=[gt,{provide:Je,useExisting:gt}];let ft=(()=>{class tn extends N.y{constructor(wn,On,_i){super(),this.actionsObserver=On,this.reducerManager=_i,this.source=wn}select(wn,...On){return Re.call(null,wn,...On)(this)}lift(wn){const On=new tn(this,this.actionsObserver,this.reducerManager);return On.operator=wn,On}dispatch(wn){this.actionsObserver.next(wn)}next(wn){this.actionsObserver.next(wn)}error(wn){this.actionsObserver.error(wn)}complete(){this.actionsObserver.complete()}addReducer(wn,On){this.reducerManager.addReducer(wn,On)}removeReducer(wn){this.reducerManager.removeReducer(wn)}}return tn.\u0275fac=function(wn){return new(wn||tn)(a.LFG(Je),a.LFG(L),a.LFG(Wt))},tn.\u0275prov=a.Yz7({token:tn,factory:tn.\u0275fac}),tn})();const mt=[ft];function Re(tn,Zn,...wn){return function(_i){let vn;if("string"==typeof tn){const qi=[Zn,...wn].filter(Boolean);vn=_i.pipe(function(...tn){const Zn=tn.length;if(0===Zn)throw new Error("list of properties cannot be empty.");return(0,K.U)(wn=>{let On=wn;for(let _i=0;_itn(qi,Zn)))}return vn.pipe((0,E.x)())}}const Kt="https://ngrx.io/guide/store/configuration/runtime-checks";function hn(tn){return void 0===tn}function xn(tn){return null===tn}function Mn(tn){return Array.isArray(tn)}function _t(tn){return"object"==typeof tn&&null!==tn}function Rt(tn){return"function"==typeof tn}function nt(tn,Zn){return tn===Zn}function bt(tn,Zn,wn){for(let On=0;OnSs.release&&"function"==typeof Ss.release),Qi=tn(function(...Ss){return vn.apply(null,Ss)}),Us=Qn(function(Ss,ds){return Zn.stateFn.apply(null,[Ss,_i,ds,Qi])});return Object.assign(Us.memoized,{release:function(){Us.reset(),Qi.reset(),qi.forEach(Ss=>Ss.release())},projector:Qi.memoized,setResult:Us.setResult,clearResult:Us.clearResult})}}(Qn)(...tn)}function An(tn,Zn,wn,On){if(void 0===wn){const vn=Zn.map(qi=>qi(tn));return On.memoized.apply(null,vn)}const _i=Zn.map(vn=>vn(tn,wn));return On.memoized.apply(null,[..._i,wn])}function Zi(tn){return ni(Zn=>{const wn=Zn[tn];return(0,a.X6Q)()&&!(tn in Zn)&&console.warn(`@ngrx/store: The feature name "${tn}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${tn}', ...) or StoreModule.forFeature('${tn}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),wn},Zn=>Zn)}function on(tn){Object.freeze(tn);const Zn=Rt(tn);return Object.getOwnPropertyNames(tn).forEach(wn=>{if(!wn.startsWith("\u0275")&&function(tn,Zn){return Object.prototype.hasOwnProperty.call(tn,Zn)}(tn,wn)&&(!Zn||"caller"!==wn&&"callee"!==wn&&"arguments"!==wn)){const On=tn[wn];(_t(On)||Rt(On))&&!Object.isFrozen(On)&&on(On)}}),tn}function xi(tn,Zn=[]){return(hn(tn)||xn(tn))&&0===Zn.length?{path:["root"],value:tn}:Object.keys(tn).reduce((On,_i)=>{if(On)return On;const vn=tn[_i];return function(tn){return Rt(tn)&&tn.hasOwnProperty("\u0275cmp")}(vn)?On:!(hn(vn)||xn(vn)||function(tn){return"number"==typeof tn}(vn)||function(tn){return"boolean"==typeof tn}(vn)||function(tn){return"string"==typeof tn}(vn)||Mn(vn))&&(function(tn){if(!function(tn){return _t(tn)&&!Mn(tn)}(tn))return!1;const Zn=Object.getPrototypeOf(tn);return Zn===Object.prototype||null===Zn}(vn)?xi(vn,[...Zn,_i]):{path:[...Zn,_i],value:vn})},!1)}function Ei(tn,Zn){if(!1===tn)return;const wn=tn.path.join("."),On=new Error(`Detected unserializable ${Zn} at "${wn}". ${Kt}#strict${Zn}serializability`);throw On.value=tn.value,On.unserializablePath=wn,On}function fs(tn){return(0,a.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},tn):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function dr({strictActionSerializability:tn,strictStateSerializability:Zn}){return wn=>tn||Zn?function(tn,Zn){return function(wn,On){Zn.action(On)&&Ei(xi(On),"action");const _i=tn(wn,On);return Zn.state()&&Ei(xi(_i),"state"),_i}}(wn,{action:On=>tn&&!Nr(On),state:()=>Zn}):wn}function gr({strictActionImmutability:tn,strictStateImmutability:Zn}){return wn=>tn||Zn?function(tn,Zn){return function(wn,On){const _i=Zn.action(On)?on(On):On,vn=tn(wn,_i);return Zn.state()?on(vn):vn}}(wn,{action:On=>tn&&!Nr(On),state:()=>Zn}):wn}function Nr(tn){return tn.type.startsWith("@ngrx")}function Vs({strictActionWithinNgZone:tn}){return Zn=>tn?function(tn,Zn){return function(wn,On){if(Zn.action(On)&&!a.R0b.isInAngularZone())throw new Error(`Action '${On.type}' running outside NgZone. ${Kt}#strictactionwithinngzone`);return tn(wn,On)}}(Zn,{action:wn=>tn&&!Nr(wn)}):Zn}function js(tn){return[{provide:he,useValue:tn},{provide:Ze,useFactory:mr,deps:[he]},{provide:Ne,deps:[Ze],useFactory:fs},{provide:Le,multi:!0,deps:[Ne],useFactory:gr},{provide:Le,multi:!0,deps:[Ne],useFactory:dr},{provide:Le,multi:!0,deps:[Ne],useFactory:Vs}]}function vs(){return[{provide:Me,multi:!0,deps:[Ne],useFactory:vi}]}function mr(tn){return tn}function vi(tn){if(!tn.strictActionTypeUniqueness)return;const Zn=Object.entries(ee).filter(([,wn])=>wn>1).map(([wn])=>wn);if(Zn.length)throw new Error(`Action types are registered more than once, ${Zn.map(wn=>`"${wn}"`).join(", ")}. ${Kt}#strictactiontypeuniqueness`)}let Hi=(()=>{class tn{constructor(wn,On,_i,vn,qi,Qi){}}return tn.\u0275fac=function(wn){return new(wn||tn)(a.LFG(L),a.LFG(Mt),a.LFG(ye),a.LFG(ft),a.LFG(we,8),a.LFG(Me,8))},tn.\u0275mod=a.oAB({type:tn}),tn.\u0275inj=a.cJS({}),tn})(),Ms=(()=>{class tn{constructor(wn,On,_i,vn,qi){this.features=wn,this.featureReducers=On,this.reducerManager=_i;const Qi=wn.map((Us,vr)=>{const ds=On.shift()[vr];return Object.assign(Object.assign({},Us),{reducers:ds,initialState:Ns(Us.initialState)})});_i.addFeatures(Qi)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return tn.\u0275fac=function(wn){return new(wn||tn)(a.LFG(qe),a.LFG(He),a.LFG(Wt),a.LFG(Hi),a.LFG(Me,8))},tn.\u0275mod=a.oAB({type:tn}),tn.\u0275inj=a.cJS({}),tn})(),ur=(()=>{class tn{static forRoot(wn,On={}){return{ngModule:Hi,providers:[{provide:we,useFactory:$r,deps:[[ft,new a.FiY,new a.tp0]]},{provide:ge,useValue:On.initialState},{provide:fe,useFactory:Ns,deps:[ge]},{provide:je,useValue:wn},{provide:it,useExisting:wn instanceof a.OlP?wn:je},{provide:z,deps:[a.zs3,je,[new a.tBr(it)]],useFactory:pr},{provide:X,useValue:On.metaReducers?On.metaReducers:[]},{provide:Te,deps:[Le,X],useFactory:Or},{provide:e,useValue:On.reducerFactory?On.reducerFactory:ke},{provide:Ce,deps:[e,Te],useFactory:We},J,Sn,be,$t,mt,js(On.runtimeChecks),vs()]}}static forFeature(wn,On,_i={}){return{ngModule:Ms,providers:[{provide:g,multi:!0,useValue:wn instanceof Object?{}:_i},{provide:rt,multi:!0,useValue:{key:wn instanceof Object?wn.name:wn,reducerFactory:_i instanceof a.OlP||!_i.reducerFactory?ke:_i.reducerFactory,metaReducers:_i instanceof a.OlP||!_i.metaReducers?[]:_i.metaReducers,initialState:_i instanceof a.OlP||!_i.initialState?void 0:_i.initialState}},{provide:qe,deps:[a.zs3,g,rt],useFactory:Ps},{provide:ct,multi:!0,useValue:wn instanceof Object?wn.reducer:On},{provide:Ve,multi:!0,useExisting:On instanceof a.OlP?On:ct},{provide:He,multi:!0,deps:[a.zs3,ct,[new a.tBr(Ve)]],useFactory:Sr},vs()]}}}return tn.\u0275fac=function(wn){return new(wn||tn)},tn.\u0275mod=a.oAB({type:tn}),tn.\u0275inj=a.cJS({}),tn})();function pr(tn,Zn){return Zn instanceof a.OlP?tn.get(Zn):Zn}function Ps(tn,Zn,wn){return wn.map((On,_i)=>{if(Zn[_i]instanceof a.OlP){const vn=tn.get(Zn[_i]);return{key:On.key,reducerFactory:vn.reducerFactory?vn.reducerFactory:ke,metaReducers:vn.metaReducers?vn.metaReducers:[],initialState:vn.initialState}}return On})}function Sr(tn,Zn){return Zn.map(On=>On instanceof a.OlP?tn.get(On):On)}function Ns(tn){return"function"==typeof tn?tn():tn}function Or(tn,Zn){return tn.concat(Zn)}function $r(tn){if(tn)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Ri(...tn){return{reducer:tn.pop(),types:tn.map(On=>On.type)}}function Pr(tn,...Zn){const wn=new Map;for(const On of Zn)for(const _i of On.types){const vn=wn.get(_i);wn.set(_i,vn?(Qi,Us)=>On.reducer(vn(Qi,Us),Us):On.reducer)}return function(On=tn,_i){const vn=wn.get(_i.type);return vn?vn(On,_i):On}}},72:(St,oe,S)=>{"use strict";S.d(oe,{Ro:()=>we,ef:()=>ge,t2:()=>L});var a=S(5e3),C=S(1135),N=S(7579),ze=S(9300),p=S(2722),K=S(1777),r=S(9808),O=S(2313);const P=["overlay"];function H(fe,Ce){1&fe&&a._UZ(0,"div")}function E(fe,Ce){if(1&fe&&(a.TgZ(0,"div"),a.YNc(1,H,1,0,"div",6),a.qZA()),2&fe){const e=a.oxw(2);a.Tol(e.spinner.class),a.Udp("color",e.spinner.color),a.xp6(1),a.Q6J("ngForOf",e.spinner.divArray)}}function ee(fe,Ce){if(1&fe&&(a._UZ(0,"div",7),a.ALo(1,"safeHtml")),2&fe){const e=a.oxw(2);a.Q6J("innerHTML",a.lcZ(1,1,e.template),a.oJD)}}function x(fe,Ce){if(1&fe&&(a.TgZ(0,"div",1,2),a.YNc(2,E,2,5,"div",3),a.YNc(3,ee,2,3,"div",4),a.TgZ(4,"div",5),a.Hsn(5),a.qZA(),a.qZA()),2&fe){const e=a.oxw();a.Udp("background-color",e.spinner.bdColor)("z-index",e.spinner.zIndex)("position",e.spinner.fullScreen?"fixed":"absolute"),a.Q6J("@.disabled",e.disableAnimation)("@fadeIn","in"),a.xp6(2),a.Q6J("ngIf",!e.template),a.xp6(1),a.Q6J("ngIf",e.template),a.xp6(1),a.Udp("z-index",e.spinner.zIndex)}}const U=["*"],le={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},re="primary";class ce{constructor(Ce){Object.assign(this,Ce)}static create(Ce){return(null==(null==Ce?void 0:Ce.type)||0===Ce.type.length)&&console.warn('[ngx-spinner]: Property "type" is missed. Please, provide animation type to component\n and ensure css is added to angular.json file'),new ce(Ce)}}let L=(()=>{class fe{constructor(){this.spinnerObservable=new C.X(null)}getSpinner(e){return this.spinnerObservable.asObservable().pipe((0,ze.h)(z=>z&&z.name===e))}show(e=re,z){return new Promise((je,rt)=>{setTimeout(()=>{z&&Object.keys(z).length?(z.name=e,this.spinnerObservable.next(new ce(Object.assign(Object.assign({},z),{show:!0}))),je(!0)):(this.spinnerObservable.next(new ce({name:e,show:!0})),je(!0))},10)})}hide(e=re,z=10){return new Promise((je,rt)=>{setTimeout(()=>{this.spinnerObservable.next(new ce({name:e,show:!1})),je(!0)},z)})}}return fe.\u0275fac=function(e){return new(e||fe)},fe.\u0275prov=a.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),J=(()=>{class fe{constructor(e){this._sanitizer=e}transform(e){if(e)return this._sanitizer.bypassSecurityTrustHtml(e)}}return fe.\u0275fac=function(e){return new(e||fe)(a.Y36(O.H7,16))},fe.\u0275pipe=a.Yjl({name:"safeHtml",type:fe,pure:!0}),fe})(),we=(()=>{class fe{constructor(e,z,je){this.spinnerService=e,this.changeDetector=z,this.elementRef=je,this.disableAnimation=!1,this.spinner=new ce,this.ngUnsubscribe=new N.x,this.setDefaultOptions=()=>{this.spinner=ce.create({name:this.name,bdColor:this.bdColor,size:this.size,color:this.color,type:this.type,fullScreen:this.fullScreen,divArray:this.divArray,divCount:this.divCount,show:this.show,zIndex:this.zIndex,template:this.template,showSpinner:this.showSpinner})},this.bdColor="rgba(51,51,51,0.8)",this.zIndex=99999,this.color="#fff",this.size="large",this.fullScreen=!0,this.name=re,this.template=null,this.showSpinner=!1,this.divArray=[],this.divCount=0,this.show=!1}handleKeyboardEvent(e){this.spinnerDOM&&this.spinnerDOM.nativeElement&&(this.fullScreen||!this.fullScreen&&this.isSpinnerZone(e.target))&&(e.returnValue=!1,e.preventDefault())}initObservable(){this.spinnerService.getSpinner(this.name).pipe((0,p.R)(this.ngUnsubscribe)).subscribe(e=>{this.setDefaultOptions(),Object.assign(this.spinner,e),e.show&&this.onInputChange(),this.changeDetector.detectChanges()})}ngOnInit(){this.setDefaultOptions(),this.initObservable()}isSpinnerZone(e){return e===this.elementRef.nativeElement.parentElement||e.parentNode&&this.isSpinnerZone(e.parentNode)}ngOnChanges(e){for(const z in e)if(z){const je=e[z];if(je.isFirstChange())return;void 0!==je.currentValue&&je.currentValue!==je.previousValue&&""!==je.currentValue&&(this.spinner[z]=je.currentValue,"showSpinner"===z&&(je.currentValue?this.spinnerService.show(this.spinner.name,this.spinner):this.spinnerService.hide(this.spinner.name)),"name"===z&&this.initObservable())}}getClass(e,z){this.spinner.divCount=le[e],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((rt,it)=>it);let je="";switch(z.toLowerCase()){case"small":je="la-sm";break;case"medium":je="la-2x";break;case"large":je="la-3x"}return"la-"+e+" "+je}onInputChange(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return fe.\u0275fac=function(e){return new(e||fe)(a.Y36(L),a.Y36(a.sBO),a.Y36(a.SBq))},fe.\u0275cmp=a.Xpm({type:fe,selectors:[["ngx-spinner"]],viewQuery:function(e,z){if(1&e&&a.Gf(P,5),2&e){let je;a.iGM(je=a.CRH())&&(z.spinnerDOM=je.first)}},hostBindings:function(e,z){1&e&&a.NdJ("keydown",function(rt){return z.handleKeyboardEvent(rt)},!1,a.evT)},inputs:{bdColor:"bdColor",size:"size",color:"color",type:"type",fullScreen:"fullScreen",name:"name",zIndex:"zIndex",template:"template",showSpinner:"showSpinner",disableAnimation:"disableAnimation"},features:[a.TTD],ngContentSelectors:U,decls:1,vars:1,consts:[["class","ngx-spinner-overlay",3,"background-color","z-index","position",4,"ngIf"],[1,"ngx-spinner-overlay"],["overlay",""],[3,"class","color",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"loading-text"],[4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(e,z){1&e&&(a.F$t(),a.YNc(0,x,6,12,"div",0)),2&e&&a.Q6J("ngIf",z.spinner.show)},directives:[r.O5,r.sg],pipes:[J],styles:[".ngx-spinner-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}"],data:{animation:[(0,K.X$)("fadeIn",[(0,K.SB)("in",(0,K.oB)({opacity:1})),(0,K.eR)(":enter",[(0,K.oB)({opacity:0}),(0,K.jt)(300)]),(0,K.eR)(":leave",(0,K.jt)(200,(0,K.oB)({opacity:0})))])]},changeDetection:0}),fe})(),ge=(()=>{class fe{}return fe.\u0275fac=function(e){return new(e||fe)},fe.\u0275mod=a.oAB({type:fe}),fe.\u0275inj=a.cJS({imports:[[r.ez]]}),fe})()},2290:(St,oe,S)=>{"use strict";S.d(oe,{Rh:()=>X,_W:()=>qe});var a=S(5e3),C=S(1777),N=S(7579),ze=S(9808),p=S(2313);const K=["toast-component",""];function r(Ne,Me){if(1&Ne){const ke=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",function(){return a.CHM(ke),a.oxw().remove()}),a.TgZ(1,"span",6),a._uU(2,"\xd7"),a.qZA(),a.qZA()}}function O(Ne,Me){if(1&Ne&&(a.ynx(0),a._uU(1),a.BQk()),2&Ne){const ke=a.oxw(2);a.xp6(1),a.hij("[",ke.duplicatesCount+1,"]")}}function P(Ne,Me){if(1&Ne&&(a.TgZ(0,"div"),a._uU(1),a.YNc(2,O,2,1,"ng-container",4),a.qZA()),2&Ne){const ke=a.oxw();a.Tol(ke.options.titleClass),a.uIk("aria-label",ke.title),a.xp6(1),a.hij(" ",ke.title," "),a.xp6(1),a.Q6J("ngIf",ke.duplicatesCount)}}function H(Ne,Me){if(1&Ne&&a._UZ(0,"div",7),2&Ne){const ke=a.oxw();a.Tol(ke.options.messageClass),a.Q6J("innerHTML",ke.message,a.oJD)}}function E(Ne,Me){if(1&Ne&&(a.TgZ(0,"div",8),a._uU(1),a.qZA()),2&Ne){const ke=a.oxw();a.Tol(ke.options.messageClass),a.uIk("aria-label",ke.message),a.xp6(1),a.hij(" ",ke.message," ")}}function ee(Ne,Me){if(1&Ne&&(a.TgZ(0,"div"),a._UZ(1,"div",9),a.qZA()),2&Ne){const ke=a.oxw();a.xp6(1),a.Udp("width",ke.width+"%")}}function x(Ne,Me){if(1&Ne){const ke=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",function(){return a.CHM(ke),a.oxw().remove()}),a.TgZ(1,"span",6),a._uU(2,"\xd7"),a.qZA(),a.qZA()}}function U(Ne,Me){if(1&Ne&&(a.ynx(0),a._uU(1),a.BQk()),2&Ne){const ke=a.oxw(2);a.xp6(1),a.hij("[",ke.duplicatesCount+1,"]")}}function le(Ne,Me){if(1&Ne&&(a.TgZ(0,"div"),a._uU(1),a.YNc(2,U,2,1,"ng-container",4),a.qZA()),2&Ne){const ke=a.oxw();a.Tol(ke.options.titleClass),a.uIk("aria-label",ke.title),a.xp6(1),a.hij(" ",ke.title," "),a.xp6(1),a.Q6J("ngIf",ke.duplicatesCount)}}function xe(Ne,Me){if(1&Ne&&a._UZ(0,"div",7),2&Ne){const ke=a.oxw();a.Tol(ke.options.messageClass),a.Q6J("innerHTML",ke.message,a.oJD)}}function re(Ne,Me){if(1&Ne&&(a.TgZ(0,"div",8),a._uU(1),a.qZA()),2&Ne){const ke=a.oxw();a.Tol(ke.options.messageClass),a.uIk("aria-label",ke.message),a.xp6(1),a.hij(" ",ke.message," ")}}function ce(Ne,Me){if(1&Ne&&(a.TgZ(0,"div"),a._UZ(1,"div",9),a.qZA()),2&Ne){const ke=a.oxw();a.xp6(1),a.Udp("width",ke.width+"%")}}class we{constructor(Me,ke){this.component=Me,this.injector=ke}attach(Me,ke){return this._attachedHost=Me,Me.attach(this,ke)}detach(){const Me=this._attachedHost;if(Me)return this._attachedHost=void 0,Me.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Me){this._attachedHost=Me}}class fe{constructor(Me,ke,G,ot,We,ut){this.toastId=Me,this.config=ke,this.message=G,this.title=ot,this.toastType=We,this.toastRef=ut,this._onTap=new N.x,this._onAction=new N.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(Me){this._onAction.next(Me)}onAction(){return this._onAction.asObservable()}}const Ce={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",payload:null},e=new a.OlP("ToastConfig");class z{constructor(Me){this._overlayRef=Me,this.duplicatesCount=0,this._afterClosed=new N.x,this._activate=new N.x,this._manualClose=new N.x,this._resetTimeout=new N.x,this._countDuplicate=new N.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(Me,ke){Me&&this._resetTimeout.next(),ke&&this._countDuplicate.next(++this.duplicatesCount)}}class je{constructor(Me,ke){this._toastPackage=Me,this._parentInjector=ke}get(Me,ke,G){return Me===fe?this._toastPackage:this._parentInjector.get(Me,ke,G)}}class rt extends class{attach(Me,ke){return this._attachedPortal=Me,this.attachComponentPortal(Me,ke)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Me){this._disposeFn=Me}}{constructor(Me,ke,G){super(),this._hostDomElement=Me,this._componentFactoryResolver=ke,this._appRef=G}attachComponentPortal(Me,ke){const G=this._componentFactoryResolver.resolveComponentFactory(Me.component);let ot;return ot=G.create(Me.injector),this._appRef.attachView(ot.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ot.hostView),ot.destroy()}),ke?this._hostDomElement.insertBefore(this._getComponentRootNode(ot),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(ot)),ot}_getComponentRootNode(Me){return Me.hostView.rootNodes[0]}}class it{constructor(Me){this._portalHost=Me}attach(Me,ke=!0){return this._portalHost.attach(Me,ke)}detach(){return this._portalHost.detach()}}let ct=(()=>{class Ne{constructor(ke){this._document=ke}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ke=this._document.createElement("div");ke.classList.add("overlay-container"),this._document.body.appendChild(ke),this._containerElement=ke}}return Ne.\u0275fac=function(ke){return new(ke||Ne)(a.LFG(ze.K0))},Ne.\u0275prov=a.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),g=(()=>{class Ne{constructor(ke,G,ot,We){this._overlayContainer=ke,this._componentFactoryResolver=G,this._appRef=ot,this._document=We,this._paneElements=new Map}create(ke,G){return this._createOverlayRef(this.getPaneElement(ke,G))}getPaneElement(ke="",G){return this._paneElements.get(G)||this._paneElements.set(G,{}),this._paneElements.get(G)[ke]||(this._paneElements.get(G)[ke]=this._createPaneElement(ke,G)),this._paneElements.get(G)[ke]}_createPaneElement(ke,G){const ot=this._document.createElement("div");return ot.id="toast-container",ot.classList.add(ke),ot.classList.add("toast-container"),G?G.getContainerElement().appendChild(ot):this._overlayContainer.getContainerElement().appendChild(ot),ot}_createPortalHost(ke){return new rt(ke,this._componentFactoryResolver,this._appRef)}_createOverlayRef(ke){return new it(this._createPortalHost(ke))}}return Ne.\u0275fac=function(ke){return new(ke||Ne)(a.LFG(ct),a.LFG(a._Vd),a.LFG(a.z2F),a.LFG(ze.K0))},Ne.\u0275prov=a.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),qe=(()=>{class Ne{constructor(ke,G,ot,We,ut){this.overlay=G,this._injector=ot,this.sanitizer=We,this.ngZone=ut,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},ke.default),ke.config),ke.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},ke.default.iconClasses),ke.config.iconClasses))}show(ke,G,ot={},We=""){return this._preBuildNotification(We,ke,G,this.applyConfig(ot))}success(ke,G,ot={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",ke,G,this.applyConfig(ot))}error(ke,G,ot={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",ke,G,this.applyConfig(ot))}info(ke,G,ot={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",ke,G,this.applyConfig(ot))}warning(ke,G,ot={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",ke,G,this.applyConfig(ot))}clear(ke){for(const G of this.toasts)if(void 0!==ke){if(G.toastId===ke)return void G.toastRef.manualClose()}else G.toastRef.manualClose()}remove(ke){const G=this._findToast(ke);if(!G||(G.activeToast.toastRef.close(),this.toasts.splice(G.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(ke,G,ot,We)):this._buildNotification(ke,G,ot,We)}_buildNotification(ke,G,ot,We){if(!We.toastComponent)throw new Error("toastComponent required");const ut=this.findDuplicate(ot,G,this.toastrConfig.resetTimeoutOnDuplicate&&We.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&ot||G)&&this.toastrConfig.preventDuplicates&&null!==ut)return ut;this.previousToastMessage=G;let Mt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Mt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const At=this.overlay.create(We.positionClass,this.overlayContainer);this.index=this.index+1;let Jt=G;G&&We.enableHtml&&(Jt=this.sanitizer.sanitize(a.q3G.HTML,G));const Wt=new z(At),Sn=new fe(this.index,We,Jt,ot,ke,Wt),ye=new je(Sn,this._injector),be=new we(We.toastComponent,ye),Je=At.attach(be,this.toastrConfig.newestOnTop);Wt.componentInstance=Je.instance;const gt={toastId:this.index,title:ot||"",message:G||"",toastRef:Wt,onShown:Wt.afterActivate(),onHidden:Wt.afterClosed(),onTap:Sn.onTap(),onAction:Sn.onAction(),portal:Je};return Mt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{gt.toastRef.activate()})),this.toasts.push(gt),gt}}return Ne.\u0275fac=function(ke){return new(ke||Ne)(a.LFG(e),a.LFG(g),a.LFG(a.zs3),a.LFG(p.H7),a.LFG(a.R0b))},Ne.\u0275prov=a.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Ve=(()=>{class Ne{constructor(ke,G,ot){this.toastrService=ke,this.toastPackage=G,this.ngZone=ot,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=G.message,this.title=G.title,this.options=G.config,this.originalTimeout=G.config.timeOut,this.toastClasses=`${G.toastType} ${G.config.toastClass}`,this.sub=G.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=G.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=G.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=G.toastRef.countDuplicate().subscribe(We=>{this.duplicatesCount=We})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const ke=(new Date).getTime();this.width=(this.hideTime-ke)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(ke,G){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(ke),G)):this.timeout=setTimeout(()=>ke(),G)}outsideInterval(ke,G){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(ke),G)):this.intervalId=setInterval(()=>ke(),G)}runInsideAngular(ke){this.ngZone?this.ngZone.run(()=>ke()):ke()}}return Ne.\u0275fac=function(ke){return new(ke||Ne)(a.Y36(qe),a.Y36(fe),a.Y36(a.R0b))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(ke,G){1&ke&&a.NdJ("click",function(){return G.tapToast()})("mouseenter",function(){return G.stickAround()})("mouseleave",function(){return G.delayedHideToast()}),2&ke&&(a.d8E("@flyInOut",G.state),a.Tol(G.toastClasses),a.Udp("display",G.displayStyle))},attrs:K,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(ke,G){1&ke&&(a.YNc(0,r,3,0,"button",0),a.YNc(1,P,3,5,"div",1),a.YNc(2,H,1,3,"div",2),a.YNc(3,E,2,4,"div",3),a.YNc(4,ee,2,2,"div",4)),2&ke&&(a.Q6J("ngIf",G.options.closeButton),a.xp6(1),a.Q6J("ngIf",G.title),a.xp6(1),a.Q6J("ngIf",G.message&&G.options.enableHtml),a.xp6(1),a.Q6J("ngIf",G.message&&!G.options.enableHtml),a.xp6(1),a.Q6J("ngIf",G.options.progressBar))},directives:[ze.O5],encapsulation:2,data:{animation:[(0,C.X$)("flyInOut",[(0,C.SB)("inactive",(0,C.oB)({opacity:0})),(0,C.SB)("active",(0,C.oB)({opacity:1})),(0,C.SB)("removed",(0,C.oB)({opacity:0})),(0,C.eR)("inactive => active",(0,C.jt)("{{ easeTime }}ms {{ easing }}")),(0,C.eR)("active => removed",(0,C.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Ne})();const He=Object.assign(Object.assign({},Ce),{toastComponent:Ve});let X=(()=>{class Ne{static forRoot(ke={}){return{ngModule:Ne,providers:[{provide:e,useValue:{default:He,config:ke}}]}}}return Ne.\u0275fac=function(ke){return new(ke||Ne)},Ne.\u0275mod=a.oAB({type:Ne}),Ne.\u0275inj=a.cJS({imports:[[ze.ez]]}),Ne})(),Te=(()=>{class Ne{constructor(ke,G,ot){this.toastrService=ke,this.toastPackage=G,this.appRef=ot,this.width=-1,this.toastClasses="",this.state="inactive",this.message=G.message,this.title=G.title,this.options=G.config,this.originalTimeout=G.config.timeOut,this.toastClasses=`${G.toastType} ${G.config.toastClass}`,this.sub=G.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=G.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=G.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=G.toastRef.countDuplicate().subscribe(We=>{this.duplicatesCount=We})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const ke=(new Date).getTime();this.width=(this.hideTime-ke)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return Ne.\u0275fac=function(ke){return new(ke||Ne)(a.Y36(qe),a.Y36(fe),a.Y36(a.z2F))},Ne.\u0275cmp=a.Xpm({type:Ne,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(ke,G){1&ke&&a.NdJ("click",function(){return G.tapToast()})("mouseenter",function(){return G.stickAround()})("mouseleave",function(){return G.delayedHideToast()}),2&ke&&(a.Tol(G.toastClasses),a.Udp("display",G.displayStyle))},attrs:K,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(ke,G){1&ke&&(a.YNc(0,x,3,0,"button",0),a.YNc(1,le,3,5,"div",1),a.YNc(2,xe,1,3,"div",2),a.YNc(3,re,2,4,"div",3),a.YNc(4,ce,2,2,"div",4)),2&ke&&(a.Q6J("ngIf",G.options.closeButton),a.xp6(1),a.Q6J("ngIf",G.title),a.xp6(1),a.Q6J("ngIf",G.message&&G.options.enableHtml),a.xp6(1),a.Q6J("ngIf",G.message&&!G.options.enableHtml),a.xp6(1),a.Q6J("ngIf",G.options.progressBar))},directives:[ze.O5],encapsulation:2}),Ne})();Object.assign(Object.assign({},Ce),{toastComponent:Te})}},St=>{St(St.s=2789)}]);